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”의 71,225개의 댓글

  1. Analizujesz, czym okazuje się intrygująca gra plinko, ktora podbija uwagę użytkownikow na globie? Jeśli potrzebujesz odpowiedzi na pytanie plinko co to, przybyłeś w właściwe miejsce [url=https://plinko-113.onrender.com]gra plinko opinie forum[/url] . Ta łatwa, a dodatkowo niezwykle ekscytująca produkcja opiera się na zrzucaniu kulki z gory planszy wypełnionej kołkami. Każdy plinko ball odbija się od kołkow, aż ostatecznie wpada w wybranej przegrodek na dole, wskazującej wysokość wygranej.

    Wiele użytkownikow poszukuje wiedzy w sieci, wpisując hasła takie jak gra plinko opinie forum lub plinko gra opinie, aby sprawdzić, czy zabawa jest fair. Warto zauważyć, że plinko casino osiąga na popularności ze względu na jasne zasady oraz tempo rozgrywki. Dla entuzjastow z Polski ważne jest odkrycie platformy, ktora zapewnia pewne środowisko. W tym kontekście plinko casino polska okazuje się coraz częściej ulubionym kierunkiem przez fanow hazardu online.

    Jeśli zastanawia Cię pytanie plinko czy warto sprobować swoich sił, dobrze najpierw zrozumieć z tym, jak działa kasyno plinkoz. Mnostwo użytkownikow przegląda plinko opinie, aby pojąć mechanikę losowości. Gra plinko funduje się na prostym modelu matematycznym, co sprawia, że plinko gra jest niezwykle intuicyjna nawet dla osob nowych.

    Zapamiętaj jednak, aby traktować do rozrywki w plinko kasyno z rozsądkiem. Jakkolwiek plinko gra opinie często podkreślają duże emocje obecne przy każdym upadkowi kulki, zawsze uważaj to jako rodzaj zabawy. Jeśli chcesz zobaczyć, jak kształtują się nowoczesne standardy w świecie gier losowych, platforma dostępna pod adresem plinko-113.onrender.com oferuje szybki wgląd w to, jak rozwinęła się ta legendarna produkcja. Niezależnie od tego, czy jesteś weteranem automatow, czy dopiero inicjujesz swoją karierę, gra plinko dostarczy Ci wielu emocji. Przed rozpoczęciem gry zweryfikuj wnikliwie obecne możliwości, aby w pełni wykorzystać potencjał, jaki przynosi ze sobą ta ceniona pozycja w portfolio każdego nowoczesnego dostawcy. Dbaj o racjonalnym podejściu i raduj się każdą chwilą spędzoną przy maszynie.

  2. После введения капельницы пациент получает «вечернюю карточку»: правила гидратации малыми порциями, световую гигиену, два-три спокойных действия на вечер и чек-лист признаков, при которых нужно связаться с дежурным врачом. Такой бытовой протокол повышает переносимость терапии и делает ночь предсказуемой.
    Выяснить больше – [url=https://vyvod-iz-zapoya-v-kazani16.ru/]скорая вывод из запоя казань[/url]

  3. highflybet-zeniomi

    Εξερευνήστε το highflybet casino, τον ιδανικό προορισμό για τους λάτρεις των τυχερών παιχνιδιών που επιθυμούν μια πρωτότυπη εμπειρία διασκέδασης [url=https://highflybet-casino-12.onrender.com]highflybet casino[/url] . Το highflybet αποτελεί μια από τις αρκετά ανερχόμενες πλατφόρμες στον κλάδο του διαδικτυακού στοιχήματος και των καζίνο, χαρίζοντας στους χρήστες του στην Ελλάδα μια τεράστια γκάμα από παιχνίδια και παροχές υψηλής ποιότητας. Αν ψάχνετε για το highflybet gr, θα ανακαλύψετε ότι η πλατφόρμα έχει σχεδιαστεί με γνώμονα την ευκολία χρήσης και την προστασία των παικτών.

    Στο casino highflybet οι χρήστες έχουν τη δυνατότητα να απολαύσουν μια εξαιρετική συλλογή από φρουτάκια, κλασικά επιτραπέζια παιχνίδια και real-time τραπέζια με ζωντανούς κρουπιέρηδες που προσφέρουν έντονες συγκινήσεις. Η εμφάνιση του highflybet ελλάδα έχει καταστεί ιδιαίτερα αισθητή, καθώς το brand κατακτά διαρκώς έδαφος χάρη στις τιμές που προσφέρει στα στοιχήματα highflybet. Είτε είστε λάτρης του αθλητικού στοιχήματος είτε προτιμάτε τη δράση του live καζίνο, το high fly bet καλύπτει κάθε σας επιθυμία.

    Η αξιοπιστία αποτελεί το κλειδί για το high fly bet casino, το οποίο εφαρμόζει αυστηρά πρωτόκολλα ασφαλείας για την προστασία των προσωπικών δεδομένων των χρηστών του. Με το high fly bet greece να παρέχει σύγχρονες λύσεις πληρωμών και άμεση υποστήριξη πελατών, η πλοήγηση στην ιστοσελίδα γίνεται ομαλή και απολαυστική. Δεν είναι καθόλου περίεργο ότι όλο και περισσότεροι παίκτες ανακαλύπτουν το high fly bet καζινο για να ελέγξουν την τύχη τους σε ένα χώρο που ενώνει την τεχνολογία με την ψυχαγωγία.

    Η πλατφόρμα διακρίνεται για το φιλικό της περιβάλλον και τις συνεχείς αναβαθμίσεις, εγγυώμενη ότι το highflybet greece διατηρείται πάντα επίκαιρο στις προτιμήσεις του κοινού. Αν αναζητάτε μια έμπιστη επιλογή για να παίξετε ή να παίξετε τα αγαπημένα σας τυχερά παιχνίδια, τότε το συγκεκριμένο brand συνιστά μια πολύ καλή πρόταση. Εξερευνήστε σήμερα τις ευκαιρίες που σας προσφέρει η ιστοσελίδα και απολαύστε την κορυφαία εμπειρία που εγγυάται το συγκεκριμένο online καζίνο, σταθερά με υπεύθυνο παιχνίδι.

  4. В этом обзоре мы обсудим современные методы борьбы с зависимостями, включая медикаментозную терапию и психотерапию. Мы представим последние исследования и их результаты, чтобы читатели могли быть в курсе наиболее эффективных подходов к лечению и поддержке.
    Дополнительно читайте здесь – [url=https://womenjournal2019.ru/vyvod-iz-zapoya-platno/]вывод из запоя клиника[/url]

  5. spinogambinoapp-Astela

    Should you be looking to upgrade your playtime, finding the right rewards is vital [url=https://spinogambinoapp.net/bonus]spino gambino bonus[/url] . The platform at spinogambinoapp.net/bonus offers a variety of ways to boost your gameplay through exclusive incentives. Whether you are a new player or a veteran gamer, understanding how to use a spinogambino bonus can greatly increase your starting balance and give you more chances to explore the site’s extensive collection of games.

    To begin your journey, players should keep an eye out for any active spinogambino bonus code that may be available. Entering a special spinogambino promo code during the registration or funding process is often the quickest way to unlock tailored perks. For those who prefer to jump straight into the action, looking for a spinogambino no deposit bonus code is a smart move to try things out without an upfront commitment. Many players specifically search for this type of spino gambino no deposit bonus to experience risk-free gaming while still having the chance to score real prizes.

    When you are prepared for real play, making your first spino gambino deposit is straightforward. The platform guarantees that every spino gambino casino deposit is processed securely, allowing you to focus on the entertainment. By making the most of your spino gambino bonus, you can often claim additional funds or even batches of spinogambino free spins that can be used on popular titles. These extra spins are a top pick among users because they prolong play sessions and increase the thrill of landing a big win.

    Always make sure to check the terms and conditions associated with any spino gambino bonus you intend to claim. Understanding wagering requirements and expiration times will help you make the most of your benefits. By staying updated with the latest offers at spinogambinoapp.net/bonus, you ensure that your gaming sessions remain exciting, profitable, and full of potential. Whether you use a bonus code or take a standard deposit offer, the goal is always to increase your fun on this engaging digital gaming platform.

  6. Maintaining a healthy relationship with online betting is the bedrock of a positive gaming experience [url=https://vegas-hero-review.co.uk/responsible-gambling]vegas hero[/url] . At vegas hero, we believe that entertainment should consistently remain regulated, transparent, and enjoyable. When checking out the specific responsible gambling section at vegashero, players will find a comprehensive guide created to foster safer habits and provide vital tools for controlling personal limits efficiently.

    The primary goal of the information offered by vegas hero is to enable users with the insight needed to identify the signs of problematic behaviour early. Whether you are a casual player or a regular visitor, understanding your limits is crucial. The platform offers clear instructions on how to set deposit, wager, and loss limits, enabling you to tailor your experience to your specific financial situation. These controls are vital for guaranteeing that your time on the site stays within the boundaries of fun rather than becoming a source of stress.

    Furthermore, the site stresses the importance of self-evaluation and taking breaks. Via the guidance found on vegashero, users can reach information on self-exclusion programmes and cooling-off periods. If you ever believe that your gambling habits are becoming out of control, the site supplies direct links to expert support groups and helplines that provide confidential advice and support. These partnerships are a proof to the dedication the brand has towards user wellbeing.

    Responsible gambling is a collective responsibility, and utilising these security features is what sets a trusted operator apart. By regularly checking the advice offered on the official support page, you can ensure that your gaming sessions stay balanced and safe. Remember, the goal of any online casino experience should be enjoyment. By utilising the tools provided by vegas hero and staying informed about the risks, you are moving in the right direction toward a sustainable and sensible approach to gaming. Your safety is always the priority, so spend some time to explore these resources today and maintain control of your journey.

  7. chickenroad-Ununtee

    Serwis kasynowa nazwa stała się popularna wśród graczy w regionie [url=https://chickenroad-pl-24.onrender.com]Chicken Road Opinie Wykop[/url] . Jednak przed rozpoczęciem zabawy warto przeglądać uważnie doświadczenia na jej temat, aby upewnić się, że jest bezpieczna.

    Wiele osób szuka komentarzy na temat nazwa Doświadczenia, szczególnie na serwisach takich jak Hazard.pl, gdzie użytkownicy podzielają swoimi historiami.

    Wiele graczy pyta, czy nazwa Recenzje są wartościowe i czy warto na niej bawić. Opinie graczy na temat nazwa są niejednoznaczne, ale significantna część użytkowników podkreśla, że strona oferuje zachęcające nagrody i bogaty katalog rozrywek. Jednak kilku podnoszą zagrożenia z transakcjami lub funkcjonowaniem portalu, co może prowokować zapędy.

    Czy nazwa Komentarze są obiektywne? Wiele graczy zastanawia się, czy nazwa jest akceptowane w regionie. Strona działa na principie hazardu cyfrowej, ale nie jest kontrolowana przez polskie agencje regulacji, co może być zagrożeniem. Poleca się przeglądać, czy nazwa Recenzje rozrywki są akceptowane z regulaminem i czy można na niej trustworthy uczestniczyć.

    Gracze regularnie zastanawiają się, czy nazwa Recenzje są pozytywne i czy uznane na niej bawić. Opinie na temat nazwa są niejednoznaczne, ale wielu użytkowników akcentuje, że strona oferuje imponujące parametry rozrywki. Jednak przed rozpoczęciem zabawy należy przeglądać uważnie recenzje i sprawdzić, czy nazwa jest bezpieczna.

    Wiele pasjonatów szuka wiedzy na temat nazwa Recenzje Hazard.pl, gdzie gracze dzielą się swoimi opiniami. Na platformach można znaleźć zarówno zachęcające, jak i krytyczne opinie na temat nazwa. Należy skierować refleksję na to, jakie opinie są najbardziej widoczne i czy są one obiektywne.

    Czy nazwa Opinie są pozytywne? Wiele graczy podkreśla, że strona oferuje bogaty zestaw zabaw i imponujące nagrody. Jednak niektórzy zgłaszają problemy z transakcjami, co może być powodem do zapędu. Dlatego należy przeglądać uważnie nazwa Opinie, zanim zdecydujesz się na grę na tej serwisie.

    Poleca się dodatkowo zwrócić zastanowienie na to, czy nazwa Recenzje hazardu są uzasadnione z normami. Platforma działa na principie gier internetowej, ale nie jest monitorowana przez narodowe urzędy nadzoru. Dlatego przed rozpoczęciem gry należy przeglądać, czy nazwa jest akceptowane w regionie.

    Podsumowując, nazwa to platforma, która zyskała popularność wśród pasjonatów gier. Jednak przed rozpoczęciem aktywności warto sprawdzić szczegółowo nazwa Recenzje i sprawdzić, czy jest niezawodna. Wiele graczy szuka danych na temat nazwa Recenzje Kraj, aby zastanowić, że gra jest trustworthy i legalna z regulaminem. Należy przeanalizować zainteresowanie na komentarze innych pasjonatów i przeglądać uważnie warunki zabawy na tej platformie.

  8. El sector de las apuestas en linea ha evolucionado de forma notable en nuestro pais y una de las casas que mas sobresale actualmente es Latribet [url=https://latribet-1.onrender.com]latribet ecuador[/url] . Si estas buscando una experiencia completa de entretenimiento, Latribet Ecuador se ha consolidado como una de las opciones mas confiables para los usuarios locales que disfrutan de las apuestas deportivas y los juegos de azar. Al ingresar a la plataforma, los usuarios hallan una interfaz amigable y disenada especificamente para el publico ecuatoriano, lo que facilita enormemente la navegacion.

    Cuando realizamos una resena Latribet detallada, lo primero que salta a la vista es su amplia oferta. El casino Latribet dispone de un catalogo extenso que incluye desde las clasicas tragamonedas hasta juegos de mesa en vivo, garantizando que cada sesion sea emocionante. Por otro lado, Latribet Ecuador casino tambien destaca por sus cuotas competitivas en eventos deportivos, cubriendo los torneos mas importantes de futbol y otras disciplinas que apasionan a los ecuatorianos.

    Si te preguntas sobre la reputacion de la marca, las Latribet opiniones de los jugadores regulares suelen ser positivas, resaltando la rapidez en los depositos y retiros. Es importante leer una buena Latribet resena antes de comenzar para entender como aprovechar al maximo los bonos de bienvenida y las promociones constantes que ofrece el sitio. Al revisar diversas Latribet reviews, queda claro que la seguridad y el soporte al cliente son bases principales que mantienen a esta casa de apuestas entre las favoritas.

    Para quienes buscan un espacio seguro y divertido, Latribet EC es sin duda un destino que merece la pena explorar. Ya sea que prefieras la adrenalina de los deportes o la estrategia del casino Latribet, la plataforma se adapta a tus necesidades. Recuerda siempre jugar con responsabilidad y aprovechar las herramientas de control que ofrece el sitio para que tu experiencia sea siempre placentera y emocionante. En definitiva, Latribet sigue encabezando el mercado gracias a su compromiso con la calidad y la transparencia en sus operaciones diarias.

  9. Le secteur des casinos numeriques voit emerger le casino Only Spin comme une plateforme innovante pour les fans de paris de risque et de paris de sport [url=https://only-spins-34.pages.dev]Only Spin fr[/url] . Situe a sur le site onlyspin.fr, ce plateforme captive l’attention des joueurs de langue francaise en quete d’une session de jeu optimisee et fiable.

    Que vous cherchiez des informations sur Only Spin betting honete, voici les points cles a connaitre pour analyser cette plateforme.

    Only Spin casino se presente comme une alternative competitive aux geants du secteur, en offrant un design ergonomique et une large choix de jeux. Les joueurs francophones seront ravis notamment la compatibilite avec Only Spin fr, permettant un acces simple aux fonctionnalites en langue francaise. Que vous aimiez les machines a sous, les jeux de table ou les paris sportifs, Only Spin semble correspondre aux besoins des utilisateurs en quete de divertissement et de recompenses possibles.

    Pour ceux qui cherchent un avis Only Spin complet, il est essentiel de noter que la reputation d’un site en ligne repose sur plusieurs: la protection des transactions, la variete des activites et la reactivite du support client. Les retours sur Only Spin soulignent souvent en avant la rapidite des paiements et la transparence des conditions de jeu, des aspects fondamentaux pour les joueurs rigoureux. De autre part, Les paris sur Only Spin se distinguent par leurs promotions speciales, comme les bonus de inscription ou les coups gratuits, qui peuvent seduire les nouveaux joueurs.

    Si vous envisagez de creer un compte sur Only Spin, il est conseille de verifier les regles et les termes des promotions. Les retours disponibles en en reseau soulignent souvent l’utilite de etudier attentivement les termes pour prevenir les desagreables surprises. Que vous recherchiez une plateforme Only Spin ou une session OnlySpin betting optimale, cette plateforme justifie une attention speciale pour sa philosophie orientee sur l’utilisateur.

    En resume, Le casino Only Spin s’impose comme une option attrayante pour les utilisateurs francophones, alliant accessibilite et fonctionnalites optimisees. Pour une session complete, n’doutez pas a verifier les retours disponibles et a analyser les promotions avant de vous lancer. Que vous soit un joueur occasionnel ou un passionne de paris sportifs, Only Spin pourrait bien devenir votre nouveau site de preference.

  10. В этой публикации мы рассматриваем важную тему борьбы с зависимостями, включая алкогольную и наркотическую зависимости. Мы обсудим методы лечения, реабилитации и поддержку, которые могут помочь людям, столкнувшимся с этой проблемой. Читатели узнают о перспективах выздоровления и важности комплексного подхода.
    Ссылка на источник – [url=https://notarwise.ru/pages/vyezd-platnogo-narkologa-na-dom/]наркологическая помощь на дому конфиденциально[/url]

댓글 달기

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