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”의 21,317개의 댓글

  1. Когда старый пол уже не выдерживает нагрузки. И простои в работе никому не нужны. Устройство бетонных промышленных полов — Это целая технология. Сначала считают нагрузки. Заливка промышленных бетонных полов — Без лишних хлопот для заказчика. Вся информация доступна здесь: подрядчик по устройству бетонных промышленных полов [url=https://montazprompola.eu]https://montazprompola.eu[/url] И про расчёт стоимости по Беларуси. Иногда лучше сразу сделать нормально.

  2. myjackpot1-daree

    Parmi le secteur des plaisirs virtuels, les plateformes de jeux sur internet n’arretent pas de evoluer pour offrir aux joueurs une experience accessible [url=https://my-jackpot-1.onrender.com]casino myjackpot[/url] . Parmi les choix qui attirent de plus en plus de personnes, le site my jackpot 1 sur render se demarque comme une destination incontournable pour les amateurs de emotions. Si vous etes un adepte des slots ou un debutant intrigue, le casino my jackpot presente une structure ergonomique creee pour accroitre le divertissement des le moment.

    Pour beneficier totalement de cette interface, la demarche premiere est de effectuer votre my jackpot login. Une fois authentifie, vous atteignez une vaste selection de jeux my jackpot, attentivement selectionnes pour leur qualite graphique et leur stabilite. La diversite des titres presents sur le casino myjackpot garantit que chaque internaute soit capable de denicher une thematique a son gre, qu’il s’agisse de mythiques classiques ou de productions aux fonctionnalites originaux. La ergonomie sur le site a ete imaginee pour repondre aux besoins des joueurs francophones, facilitant ainsi chaque my jackpot fr pour une prise en main efficace.

    La securite et la fiabilite sont au c?ur des interets de myjackpot. En misant sur une infrastructure informatique stable, le portail permet une utilisation continue, sans coupure, y compris lors des phases les plus dynamiques. Il est important de souligner que le domaine de my jackpot est principalement un lieu de detente. Il est alors crucial de parier de facon moderee en gardant le controle sur son temps et son capital. Pour finir, si vous recherchez une destination animee combinant plaisir de haut niveau et simplicite, le casino my jackpot offre une porte excellente vers des moments de jeu intenses. N’hesitez pas a explorer les multiples options presentees sur le site pour decouvrir tout ce que cette interface a a offrir aux adeptes de jeux en ligne en France.

  3. bombasticcasino-oxist

    Online-Casino-Plattform erlangte in den vergangenen Jahren immer beliebter, speziell für deutschen Casino-Fans [url=https://bombasticcasino-30.braiyanjoi.workers.dev]Bombastic Casino[/url] .

    Doch vorab lohnt es sich einige wichtige Aspekte zu beachten, um zu garantieren, dass es zuverlässig und legitim ist. In diesem Artikel untersuchen wir über die Erfahrungen sowie Rückmeldungen sowie Fakten über das Casino Bombastic Casino gehen wir ein, um eine hilfreiche Orientierung zu geben.

    Als Erstes kann man nicht genug betonen, die offizielle Website des Online-Casinos Bombastic Casino aufzufinden, um zu gewährleisten, dass man nicht auf eine Fälschung hereinfällt. Viele Gamer geben die Suche ein „Meinungen zum Casino Bombastic Casino“ und „Bombastic Casino – Deutschland“, um Informationen zur Seite zu informieren. Die Nutzerstimmen sind durchweg erfreulich, da das Casino diverse Glücksspiele zur Verfügung stellt, attraktive Bonusangebote genauso wie ein intuitives Design. Ein besonderer Fokus liegt auf, die interaktiven Live-Casino-Spiele, die für ein authentisches Spielgefühl.

    Ein zentraler Aspekt geht es um die „Bombastic Casino Erfahrungen“ anderer Spieler. Viele Besucher berichten von schnellen Auszahlungen neben exzellentem Support, das unterstreicht die Glaubwürdigkeit der Plattform. Dennoch muss man, auch auf mögliche Nachteile schauen, unter anderem die Auswahl einzelner Titel sowie die Mindestabfrage. Einige Nutzer monieren, dass die Bonusbedingungen manchmal komplex sein können, was zu Verwirrung führen kann.

    Für Casino-Nutzer, die sich informieren möchten über „Bombastic Casino Review“ suchen, sollte man tun, mehrere Quellen zu analysieren. Viele objektive Analyseplattformen zeigen auf zu den Stärken und Schwächen des Online-Anbieters. Entscheidend betrifft die offizielle Anerkennung, da nur lizenzierte Casinos in Deutschland erlaubt sind. Bombastic Casino verfügt über globale Genehmigungen, das seine Seriosität unterstreicht.

    Wer sich „Online-Casino-Spiele bei Bombastic Casino“ möchte, darf sich über die Transaktionswege erfahren. Das Casino bietet eine Vielzahl von Ein- und Auszahlungsoptionen, darunter zum Beispiel EC-Karten neben E-Wallets neben traditionelle Bankzahlungen. Die Rückzahlungsdauer liegen in der Regel niedrig, was für viele Spieler ein zentrales Kriterium sich zeigt.

    Zusammenfassend lässt sich sagen, dass das Casino Bombastic eine attraktive Wahl für digitale Glücksspieler ist, die sich konzentrieren auf eine große Spielauswahl. Trotzdem kann man nicht genug betonen, fortlaufend die frischen „Erfahrungsberichte von Bombastic Casino“ neben „Casino-Bedingungen für Deutschland“ zu prüfen, um sicherzustellen, dass das Online-Casino den eigenen Erwartungen entspricht. Wer sich informieren möchte auf der Suche nach einem fairen und seriösen Online-Casino ist, muss sich gut informieren, bevor er sich registriert.

  4. When you find yourself looking for a novel and captivating gaming destination, the sphere of online gambling has a fresh name to observe [url=https://duo-spin-11.ajomolurid646.workers.dev]duospin canada[/url] . For Canuck users seeking an immersive adventure, the platform titled duospin is quickly securing popularity. As a contemporary digital betting hub, duospin casino provides a broad collection of recreational options intended to accommodate each occasional players and big spenders nationwide. Whether you are looking for the current slots or traditional card games, duospin Canada provides a slick interface that makes navigating the site straightforward and intuitive.

    Running a thorough duospin casino review uncovers that the site emphasizes player satisfaction and range. As you investigate the duospin online casino, you might observe a diverse catalogue of games driven by a few most credible software providers in the sector. This confirms that each round at casino duospin remains fun and balanced. For players who enjoy the excitement of real-time wagers, the duo spin casino features high-quality broadcasts that bring the authentic vibe of a physical casino straight to your screen.

    Plenty of bettors searching for a reliable duospin casino review frequently inquire concerning the registration process and available payment methods. The charm of the duo spin casino online service is its dedication to ease. Beginning with your duospin bet is a straightforward journey, allowing you to prioritize the slots you prefer barring avoidable wait-times. Moreover, the page is tailored for smartphones, implying you can take your top casino duo spin slots with you wherever you move.

    Provided you are presently assessing your options, a thorough duospin review underscores the significance of choosing a platform that balances safety with enjoyment. With its rising fame, duospin has emerged as a notable rival in the local scene. By maintaining a dedication to reliable results and a broad selection of title selections, this site stands out as a strong option. See the site right away to learn why so many bettors are making the switch to this active digital betting site.

  5. Пленки для оклейки кузова — защита кузова, новинки рынка. Читайте

    Автоновости 2026: топ-новости | avtoplenky.ru

    Сфера стайлинга| претерпевает изменения. В нашей подборке мы сделали обзор ключевые новости, о которых стоит знать.

    Первая новость: объявлены цены на оклейку кузова. Эксперты отмечают, что китайские производители укрепляют позиции.

    Очередная новость касается защиты кузова. Со следующего месяца повысятся стандарты защиты. Автолюбителям рекомендуем заранее ознакомиться.

    Также мы представляем рейтинги надёжности материалов. Особенно показательным стал тест-драйв кроссовера X, который доступен для ознакомления.

    [b]Что ещё почитать на AVTOPLENKY?[/b]
    – [url=https://avtoplenky.ru/news/]Новости автопрома
    Тест-драйвыПолезные статьи[/url]

    [b]Присоединяйтесь![/b]
    Подписывайтесь на [url=https://avtoplenky.ru]Автопленки[/url], чтобы быть в курсе всех автомобильных событий. А какой новостью вы бы хотели поделиться? Пишите в комментариях!

  6. spinmamarecenze-briexia

    Bezpečnost těchto udajů znamena pro nas tym na strankach spinmama absolutni prioritou [url=https://spinmamarecenze.cz/zasady-ochrany-osobnich-udaju]spinmama[/url] . Cobychom zodpovědny zdroj informaci ze světa digitalni zabavy si uvědomujeme, jak stězejni je zachazet s udaji nasich čtenařů s vysokou obezřetnosti a v ramci shody s učinnou legislativou, hlavně s regulaci GDPR. Tyto zasady privacy policy, jez naleznete na tomto odkazu, přehledně vymezuji, jaka data shromazďujeme a pro jake učelům je vyuzivame.

    Kdyz navstivite web spin mama, můzete mit jistotu, ze vyuzivame jen nutne softwarove mechanismy s cilem, aby bylo byla prohlizeni članků a novinek o hrach co nejpřijemnějsi a plně zabezpečene. Sběr informaci se realizuje transparentně a vyhradně za učelem zlepsovani prozitku čtenařů a analyzy provoznich dat, coz pro nas umozňuje přesněji vysvětlit si, jaky obsah nase navstěvniky zejmena přitahuje. Nikdy neobchodujeme ani neposkytujeme osobni důvěrne informace cizim organizacim pro komerčni aktivace bez vaseho souhlasu.

    V kontextu nasich zasad disponujete vy jako registrovani čtenaři plnou moc nad svymi informacemi. Kdykoliv mate narok vznest pozadavek o nahlednuti k vlastnim udajům, jejich okamzitou upravu, limity zpracovani anebo uplny smazani. Na webu spinmama stavime vysokou vahu na věc, aby byla ustanoveni srozumitelna a dostupna vsem. Jestlize se rozhodnete pro vyuzivat nase portaly, poskytujete nam timto pocitit loajalitu, jiz si cenime a jiz se pokousime průbězně potvrzovat spičkovym kvalitou kyberneticke bezpečnosti.

    Nabadame vas, abyste se s celym zněnim tohoto ujednani na nasem portalu spin mama pravidelně četli, protoze tyto zasady mohou byt časem průbězně aktualizovana v důsledku na pravni novely anebo upravy chodu nasich sluzeb. Nasi ambici je zachovavat prostor, ve kterem se můzete soustředit na vyběr těch nejlepsich her a poznatků, zatimco my zajistime o to, aby vase soukrome udaje zůstalo chraněno za vsech podminek v bezpeči. Jasna komunikace je stavebnim kamenem nasi vazby s nasimi uzivateli, a z toho důvodu jsme vzdy připraveni zodpovědět jakekoli otazky vztahujici se k ochrany vasich dat.

  7. spinmamalogincasino-eructiz

    Understanding the cookie policy at spinmama is an important step for each player who seeks to enjoy a secure and transparent gaming experience [url=https://spinmamalogincasino.com/cookie-policy]spinmama[/url] . When you browse the spinmama platform, the site uses small text files referred to as cookies to boost your online journey and make certain that the website operates exactly as intended. These cookies assist the site recall your preferences, such as regional choices and login information, allowing you to go back to your preferred titles without needing to input your information every single time.

    The cookie protocol on the main spin mama website is designed to be fully transparent concerning how your data is gathered and handled. By using the spin mama site, you accept the use of these technologies in accordance with the stated data protection rules. The core goal of these cookies is to track site performance, gather statistics, and provide personalized content that aligns with your preferences. Furthermore, cookies play a vital role in security measures, helping the platform protect player profiles from unauthorized access and ensuring a safe gaming space for everyone.

    Players constantly maintain control over their online data. If you choose not to have cookies stored on your mobile, you can simply modify your web browser configurations to reject them or delete your browser history periodically. Nevertheless, it is important to note that disabling these cookies might impact the functionality of certain features on the spin mama website, possibly leading to a less seamless experience. The team at spin mama remains dedicated to maintaining high standards of privacy, ensuring that any information collected via cookies is used only to enhance your gaming sessions and upgrade service delivery. By taking the time to review the spin mama cookie policy, you are acting proactively in controlling your privacy while enjoying the broad variety of games and options offered on the site. Whether you are a new user or a frequent gamer, staying informed about these regulations helps ensure that your time on spinmama is both fun and secure.

  8. myjackpot-vempopy

    Dans le cas ou vous demeurez un amateur des loisirs en virtuels, il parait fort envisageable que vous possediez deja entendu parler de la interface my jackpot [url=https://myjackpot-2.ni3kolav0q3as51ile3v.workers.dev]casino myjackpot[/url] . Ce site s s’est revele comme une destination de predilection pour les joueurs desirant tirer profit d une aventure ludique immersive. Avec une navigation souple et un catalogue riche, le casino my jackpot met en avant des possibilites de jeu disponibles a n’importe quand. Si vous vous considerez comme un amateur debutant ou un expert des machines a sous, les jeux my jackpot se trouvent crees pour fournir une utilisation utilisateur excellente et fiable sur chaque vos supports.

    Afin de atteindre a vos jeux preferes, il convient de realiser au my jackpot login sur la plateforme dediee. Une session identifie, vous entrez dans un monde garni en fonctionnalites ou le casino myjackpot met tout en place pour repondre aux les besoins de sa communaute. La navigation semble intuitive, facilitant de passer illico d un titre a un autre, ce qui accroit l attrait de myjackpot pour les membres qui quetent une session de pari active. L accessibilite reste un point majeur du site, notamment pour les membres a la quete d un casino my jackpot digne de confiance et efficace.

    En visitant my jackpot fr, vous decouvrirez une palette large de opportunites. La societe se distingue par sa capacite a offrir des jeux my jackpot modernes qui captivent les utilisateurs via des graphismes soignes et des systemes de pari agiles. Si vous cherchez a vous detendre en toute serenite, casino myjackpot represente une option judicieuse qui privilegie la satisfaction du utilisateur a au moyen de une architecture fiable et un support disponible.

    En resume, si vous desirez eprouver vos reussites, le espace my jackpot represente une norme indispensable. En effectuant votre my jackpot login frequemment, vous restez au courant des nouveautes et des fonctionnalites exclusives. Peu importe si vous voulez tenter votre chance par vrai plaisir ou decouvrir les particularites offertes par le casino my jackpot, cette entite reste un operateur majeur dans le milieu des paris en ligne en France. N hesitez longtemps pour decouvrir pourquoi beaucoup d joueurs temoignent estime a myjackpot pour leurs pauses de repos quotidienne.

  9. bombasticcasino-Opive

    Vertrauenswürdiges Internet-Casino bietet eine attraktive Gaming-Plattform, die sich ausschließlich an regionale Online-Spieler anspricht und durch eine breite Reihe an Spieloptionen sowie lockere Vorteilspakete beeindruckt [url=https://bombasticcasino-de.pages.dev]Bombastic Casino[/url] .

    Wer nach einer seriösen und unterhaltsamen Casino-Lösung sucht, sollte sich die Erfahrungsberichte über Bombastic Casino genauer prüfen, um ein umfassendes Fazit zu bilden.

    Gerade in der DACH-Region gibt es viele Online-Nutzer, die nach einem lizenzierten Spielportal suchen, der sowohl innovative Spiele als auch unvoreingenommene Regeln bietet.

    Die professionelle Seite Bombastic Casino ist einfach zu bedienen und bietet über eine übersichtliche Aufteilung, die sowohl Casino-Einsteiger als auch professionelle Casino-Experten anspricht.

    Die Plattform ist auf deutschsprachig konfiguriert, was den Einstieg für regionale Besucher erleichtert. Die Bombastic Casino für deutsche Spieler setzt starken Schwerpunkt auf Offenheit und darlegt alle entscheidenden Daten wie Zulassung, Transaktionswege und Hilfsangebote deutlich auf.

    Wer sich für die Bewertung der Bombastic Casino-Plattform nachlesen sollte, findet hier überwiegend ausgezeichnete Erfahrungsberichte zu den effizienten Geldrücküberweisungen und der großen Palette an Gaming-Titeln.

    Ein grundlegender Kriterium für viele Online-Enthusiasten sind die Testberichte von Bombastic Casino, die meist mit positiven Vergnügen gekoppelt sind. Vor allem die Auswahl an Echtzeit-Casino-Titeln und die ständigen Events fesseln viele Gamer herbei. Wer sich für die Test von Bombastic Casino festlegt, sollte jedoch auch auf die Einzahlungs- und Rückzahlungsmodalitäten prüfen, die bei diesem Casino als transparente und einfach eingestuft beurteilt.

    Für Online-Nutzer, die nach einer zuverlässigen und anspruchsvollen Gaming-Umgebung suchen, ist das Online-Casino Bombastic eine gute Option. Die bundesdeutsche Plattform Bombastic Casino bietet nicht nur eine große Auswahl an Spielen, sondern auch ein hochwertiges Design und eine benutzerfreundliche Oberfläche.

    Wer sich für die Bombastic Casino für deutsche Spieler Option wählt, kann sich auf eine zuverlässige Spielseite stützen, die auf die Wünsche bundesdeutscher Casino-Nutzer zugeschnitten ist.

    Wer sich für die Erfahrungsberichte über Bombastic Casino interessiert, findet meistens positive Rückmeldungen zu den blitzschnellen Transfers und der vielfältigen Reihe an Spielen. Besonders die interaktiven Casino-Varianten und die ständigen Sonderaktionen unterstreichen die Online-Casino beliebte.

    Die Bombastic Casino Erfahrungen deuten, dass viele Casino-Nutzer mit der Spielseite imposant bewerten, da sie sowohl innovative Spiele als auch unvoreingenommene Bedingungen garantieren.

    Wer also nach einem zuverlässigen und spannenden Internet-Casino sucht, sollte die Gaming-Plattform Bombastic absolut in Erwägung aufnehmen.

  10. Текст посвящён распространённым мифам о зависимости и их развенчанию. Мы предоставим научно обоснованную информацию и дадим рекомендации по выбору эффективного способа борьбы с зависимым поведением.
    Открой скрытое – [url=https://autohirebuy.ru/pages/narkologicheskaya-klinika-anonimno-nizhnij-novgorod/]неотложная наркологическая помощь[/url]

댓글 달기

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