SpringBoot으로 웹 출시까지 #4

springboot logo

4. thymeleaf를 이용해 레이아웃 만들기

1 myhome 만들기

https://start.spring.io/

 

project : maven

springboot :  최대한 낮은 버전 / SNAPSHOT X로 선택

group : godcoder

artifact, name : myhome

java: 8

dependencies : Thymeleaf / Spring Web / Spring Boot DevTools / Lombok

2 IntelliJ와 git 연동하기

https://github.com/

깃허브 계정이 없으신분들은 회원가입을 진행합니다.

그 뒤 강의 내용대로 진행하시면 됩니다.

저는 이번 클론 코딩을 진행하는 모든 코드를 한 번에 관리하기 위해 강의와 다르게 연동하였습니다.

git repository 생성 및 로컬 폴더 연결

을 누르시면 모든 프로젝트를 하나의 리포지토리로 관리 하실 수 있습니다.

3 bootstrap 적용

부트스트랩 스타터 탬플릿 적용

https://getbootstrap.kr/docs/5.0/getting-started/introduction/

– 강의 시점과 시간이 달라 버전이 업그레이드 되었습니다.

    코드가 달라지고, 명령어가 수정되었습니다.

    최대한 유사한 코드를 사용해서 작성했습니다.

<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

    <title>Hello, world!</title>
  </head>
  <body>
    <h1>Hello, world!</h1>

    <!-- Optional JavaScript; choose one of the two! -->

    <!-- Option 1: Bootstrap Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

    <!-- Option 2: Separate Popper and Bootstrap JS -->
    <!--
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
    -->
  </body>
</html>

Visual Studio Code 연결

컴퓨터에 자동 설치된 비주얼스튜디오를 실행시켜 프로젝트 파일(myhome – main – resources)을 열어줍니다.

template 폴더 아래 “index.html” 파일을 만들고 복사한 내용을 붙여넣습니다.

<html lang=“en”> -> <html>으로 수정합니다.

[intelliJ] HomeController 만들기

myhome 아래 “controller” 폴더를 생성하고,  “HomeController” 클래스를 작성합니다.

package com.godcoder.myhome.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {
@GetMapping
public String index(){
return "index";
}
}

[VSCode]starter-template.css 작성

myhome – src – main – resources – static 아래 “starter-template.css” 파일을 생성합니다.

body {
padding-top: 5rem;
}
.starter-template {
padding: 3rem 1.5rem;
text-align: center;
}

“SpringBoot으로 웹 출시까지 #4”의 79,764개의 댓글

  1. mojabetreview-Dydrono

    Safeguarding your web identity while connecting with digital amusement hubs is a key concern for current members [url=https://mojabetreview.net/privacy-policy]moja bet[/url] . When you opt to interact with sites like moja bet, comprehending how your personal data is managed becomes vital for a safe interaction. The official data-protection policy section at mojabetreview.net delivers a thorough analysis of how the destination manages sensitive information, guaranteeing transparency connecting the company and its userbase.

    The core principle supporting the moja bet data-protection model centers on user trust and information limitation. If you register an login or travel across the offerings presented, defined units of facts are gathered to confirm your profile and boost your complete session. This includes typical joining data, automated metadata including IP nodes, and facts gathered by cookies. By upholding a clear standard, mojabet displays a dedication to field benchmarks that defend members from unauthorized entry or misuse of their confidential data.

    Honesty is the hallmark of a reputable hub. The data-protection terms outlined on their page explains precisely what data is retained and, more importantly, how it is employed. It states that your content is largely applied to adapt the playing journey, manage monetary deals safely, and ensure alignment with legal demands. Furthermore, it explains your rights as a member, including how you can demand adjustments to your profile or inquire concerning the detailed data held by the firm.

    For anyone worried over digital protection, checking these rules is a crucial action before participating in gambling events. By accessing the data-protection area section on the platform, you acquire calm realizing that your engagements are governed by a strict set of rules designed to shield your confidentiality. Whether you are a consistent guest or a beginner member, staying educated regarding these procedures is the top approach to appreciate the tools of mojabet securely. Regularly value sites that put your information safety at the heart of their functions.

  2. С пациентом работают профильные специалисты, которые оценивают состояние и подбирают безопасный план помощи.
    Получить больше информации – [url=https://narcolog-na-dom-krasnoyarsk2.ru/]нарколог на дом вывод в Красноярске[/url]

  3. GT Casino es una aplicación de juegos en red que ha logrado cierta reconocimiento entre los usuarios en el país, aunque su legalidad y seguridad siguen provocando preocupaciones entre los visitantes [url=https://gtbet-160.vercel.app]Gt Bet Es Legal[/url] .

    Si estás considerando unirse en GT Casino o simplemente quieres explorar más sobre esta aplicación, aquí tienes una evaluación completa basada en opiniones y características clave.

    GT Apuestas el país ofrece una forma de diversión enfocada en deportes, juegos en vivo, con una interfaz que aspira ser fácil para clientes de todos los niveles. Sin duda, uno de los elementos más comentando es si GT Bet es legal en España. Según la ley aplicable, las aplicaciones de juegos deben estar autorizadas por organismos como la DGOJ (Oficina General del Juego) para operar según la ley en el terreno. GT Apuestas no señala estar bajo esta autorización, lo que causa preocupaciones sobre su estatus regulatoria. Muchos usuarios eligen soluciones como Gtbet Plataforma, que reúnen con los requisitos regulatorios, aunque esto no asegura que GT Bet sea no confiable, sino que su aprovechamiento resultaría peligroso desde el perspectiva legal.

    En cuanto a Gt Apuestas Evaluación, los opiniones de los clientes son variados. Algunos resaltan la amplitud de deportes presentes, como fútbol, así como la posibilidad de apostar en secciones como el *over/under* o juegos especiales. Otros señalan problemas con los pagos, como lentos en los descuentos o complicaciones para extraer fondos, lo que influencia la reputación de Gt Bet parece segura. La aplicación anuncia descuentos de saludo llamativos, pero muchos usuarios señalan que las normas son complicadas de cumplir, como hacer apuestas con el bono antes de lograr extraerlo.

    Las reseñas de Gt Apuestas suelen ser críticas en cuanto a transparencia y servicio al jugador. Algunos jugadores denuncian que el soporte de atención es ineficaz, lo que complica la resolución de incidencias. Además, al analizar evaluaciones de Gtbet Casino, es habitual observar advertencias sobre probables fraudes o plataformas no reguladas, especialmente si se evalúan con plataformas como Bet365 o Winamax, que definitivamente están licenciadas en el país.

    Si optas probar con GT Apuestas, es fundamental que verifiques su regulación en tu área y leas detallenete los términos y normas antes de ingresar fondos. Aunque algunos usuarios consiguen disfrutar la oportunidad, otros han tenido casos problemáticas, por lo que es aconsejado informarse bien antes de apostar. En resumen, GT Bet puede una opción para quienes quieren entretenimiento en las apuestas, pero su ausencia de regulación y las reseñas desfavorables sobre su confiabilidad dejan que sea una aplicación con peligros. Siempre elige aplicaciones con regulación y favorables reseñas para minimizar posibles problemas.

  4. Высокий риск осложнений возникает при заболеваниях сердца, циррозе, сахарном диабете, патологиях почек и сосудистой системы. Врач учитывает все эти факторы при выборе лечения. Если пациент старше, имеет многолетний стаж употребления или ранее переносил судорожные припадки, вывод запоя на дому требует особенно тщательного осмотра.
    Узнать больше – [url=https://vyvod-iz-zapoya-v-ekaterinburge21.ru/]врач вывод из запоя Екатеринбург[/url]

  5. mojabetreview-Faifalp

    Within Mojabet, the dedication to user safety is a primary objective, building the foundation of the service journey [url=https://mojabetreview.net/responsible-gambling]moja bet[/url] . For anybody using Moja bet, comprehending the principles of responsible betting is essential to keeping a balanced and pleasant relationship with sports wagering and gaming activities. The portal delivers a complete tool at mojabetreview.net/responsible-gambling, often acts as a guide for patrons to govern their activities efficiently and escape the typical traps associated with wagering.

    The central philosophy of Moja bet is that gambling ought to always be viewed as a style of amusement rather than a primary source of income. To aid this, the site encourages players to set strict caps on their funding and hours spent on the site. By using these mechanisms, players can keep total control over their economic obligations and stop the development of damaging habits. It is critical for every player to recognize the signals of unhealthy conduct, such as recovering deficits or feeling anxious after a wagering event.

    Should anybody feel that their gambling is becoming difficult to govern, the information supplied using the mojabet review hub gives practical steps and support resources. This incorporates guidance on restriction options and links to professional groups committed to helping users overcome from problematic dependency. Applying these measures thoughtfully ensures that the thrill of accessing Mojabet stays entertaining and sustainable.

    In the end, a secure wagering space is a shared obligation. While the system implements advanced technology to monitor and prevent harm, players are urged to remain vigilant. By keeping informed regarding mindful betting habits, you defend your health and guarantee your hours utilized with Moja bet stays beneficial. We recommend all patrons see the specialized ethical gaming page frequently to refresh their knowledge on establishing boundaries and requesting support if needed. Note, the objective of Mojabet is to provide a top-tier entertainment journey, and adopting moderation is the optimal method to keep the experience rewarding for everyone participating.

  6. Информация об обращении не передается третьим лицам, а детали лечения обсуждаются только с пациентом.
    Получить больше информации – [url=https://vyvod-iz-zapoya-v-ekaterinburge21.ru/]вывод из запоя недорого в Екатеринбурге[/url]

  7. GT Casino es una web de juegos en línea que ha ganado reconocimiento entre los jugadores nacionales, notablemente por su simplicidad y estructura intuitivo [url=https://gtbet-161.onrender.com]Gt Bet Review[/url] . Eso sí, antes de ingresar en GTbet Casino, es crucial revisar sus aspectos, reseñas y si satisfacen los parámetros legales para operar en el mercado español. En este análisis, te presentamos una revisión amplia sobre GT Bet Casino, sus ventajas, limitaciones y si es una alternativa segura para jugar en el sector local.

    GT Bet también, es una plataforma que facilita participar en juegos de diversión como ruletas, blackjack, blackjack y máquinas tragaminas. No obstante su estructura es amigable y disponible en varios lenguas, incluyendo castellano, hay que considerar que su validez en territorio español es un aspecto complejo. Según las normativas aplicables, los casinos en línea deben poseer un permiso por una autoridad de apuestas legítima, como la DGOJ. GT Bet no cuenta aprobado por esta institución, lo que plantea preocupaciones sobre su legalidad.

    En las comentarios de GT Bet y reseñas publicados, numerosos usuarios resaltan su simplicidad y la amplia oferta de actividades presentados. No obstante, también hay quejas sobre la deficiencia de honestidad en los retiros y la ineficiencia de un atención de atención al cliente confiable. Algunos jugadores han señalado retrasos en los retiros, lo que provoca desconfianza sobre su confiabilidad. Si necesitas un juego de azar en línea seguro y aprobado, es recomendable elegir por opciones como LeoVegas, Betsson, o Unibet, que reúnen con la normativa local.

    Otro aspecto relevante a analizar es si GT Bet es permitido en territorio español. Dado que no está licenciado por la DGOJ, no puede la protección de los datos personales de los usuarios ni satisfacer con las leyes de gestión en el juego. Asimismo, participar en webs sin licencia puede arriesgarte a problemas como fraudes o consecuencias legales. Si decides experimentar con GT Bet, hazlo con cuidado y solo con cantidades que puedas dejar.

    En conclusión, GT Bet Casino puede ser una elección para quienes anhelan entretenimiento, pero su ausencia de aprobación en España lo convierte en una decisión arriesgada. Si valoras a la protección y legalidad, es mejor optar por plataformas con permiso local. Siempre analizar las reseñas de GT Bet y otras casinos previo a registrarse, toma una decisión consciente.

  8. [3667]Betbat | অনলাইন ক্যাসিনো গেমস | অ্যাপ ডাউনলোড,Betbat বাংলাদেশের খেলোয়াড়দের জন্য একটি অনলাইন ক্যাসিনো গেমিং সাইট। এখানে অ্যাকাউন্ট খুলুন, লগইন করুন এবং অ্যাপ ডাউনলোড করুন, পাশাপাশি পেমেন্ট এবং দায়িত্বশীল গেমিং সংক্রান্ত নিয়মাবলী পড়ুন। visit: betbat

댓글 달기

이메일 주소는 공개되지 않습니다.