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”의 74,984개의 댓글

  1. В данной статье мы поговорим о будущем медицины, акцентируя внимание на прорывных разработках и их потенциале. Читатель узнает о новых подходах к лечению, роли искусственного интеллекта и возможностях персонализированной медицины.
    Детали по клику – [url=https://womenjournal2019.ru/narkolog-na-dom-dlya-detoksikacii/]вытрезвление на дому[/url]

  2. Should you trust the Chicken Road platform trustworthy for UK betting enthusiasts?

    When investigating virtual casinos within the Great Britain, you should vital to confirm if such sites prove to be genuine prior to funding money [url=https://chicken-road-uk-25.pages.dev]Is Chicken Road Legit United Kingdom[/url] .

    Chicken Road has captured growing attention within UK-based gamblers, but are this platform trustworthy? Such assessment examines its credibility, compliance, safeguards, and complete perception to guide you in determining how it represents a dependable alternative.

    To begin with, A common leading concerns considered is: *Are the site the genuine casino for the English gambling scene?* While the operator states to provide gaming opportunities, one must essential to note that a significant number of digital game operators within the British market are required to maintain a legitimate UKGC license permit to exist legally. Unfortunately enough, the operator fails to be recognised as authorised by a reputable game authority, which raises doubts about its reliability. Gamblers should prioritise approved sites to ensure fair betting experiences, secure fund transfers, and proper problem resolution.

    Another essential aspect is whether Chicken Road qualifies a genuine game operator. While this site could display trending casino activities including blackjack, the lack of transparency about its management and transaction gateways functions as a clear warning. Quite a few English casino lovers wonder *Does Chicken Road above board or not?* Without proper licensing and governmental monitoring, there’s little to no assurance that the casino offerings demonstrate fair and that withdrawals will undergo processed without delay.

    For those asking, *Is the site the licensed gambling site within the English gambling scene?*, it’s valuable to understand that unlicensed platforms typically do not offer the equal benefits as licensed casinos. This includes problems with casino equity, data security, and gambler help. Additionally, some casino lovers report setbacks with cash deposits, and refunds, which additionally raises concerns its legitimacy.

    When assessing *Chicken Road opinions*, it’s vital to weigh both gambler stories and professional assessments. While a few betting fans potentially experience positive outcomes, others describe flaws with gameplay experience, delayed payouts, or including account bans. These varied feedback indicate that Chicken Road likely does not represent a reliable alternative for passionate gamblers within the British market.

    To brief, while the site could like a straightforward choice for English gamblers, the deficiency of proper regulation and authority adoption results in it questionable. If curious about, *Are this platform the genuine gambling site?* the answer is probably definitely not—at least to any significant degree match to British game rules. For a more reliable and honest result, preferably prefer betting platforms that are regulated by the British Gambling Board or trusted regulators. Responsibly bet and favour platforms that advocate for your well-being.

  3. chickenroad-Unloax

    Presupunand că ești in cautarea unei inedite experiențe de joc imersive pe telefonul tău, Chicken Road a transformat subit unul dintre titlurile alese ale jucătorilor de pe plan local [url=https://chickenroad-review.ro/app]chickenroad app[/url] . Faima acestui titlu avansează constant, iar numeroși amatori vor activ un chicken road game android spre a savura provocările sale unice. Accesand platforma dedicată, poți descoperi informațiile complete referitor la acest program interesant care a cucerit pană acum o audiență mare.

    Pentru cei care vor să descarce cu ușurință acest titlu, metoda pentru chicken road game download android se dovedește elementar dar și intuitiv. Participanții din țara noastră vor adesea un chicken road joc android ce asigură o grafică plăcută precum și un gameplay dinamic, iar această performantă aplicație pune la dispoziție precis ce susține. Totodată, pe măsură ce popularitatea sa se extinde la nivel mondial, vei descoperi date dar și sub titluri precum aplicacion chicken road sau diverse chicken road apps, demonstrand flexibilitatea acestui valoros soft.

    Dacă ești curios ce spun alți clienți, ai posibilitatea să cauți aplicatia chicken road pareri ca să observi opiniile celorlalți. Majoritatea utilizatorilor prețuiesc viteza oferită de chickenroad app, subliniind că este o alegere de nota zece destinată momentele de pauză. Indiferent ești sau nu un adept al titlurilor de acțiune ori pur și simplu vrei să experimentezi altceva, chicken road app se potrivește ideal pe dispozitivelor portabile noi.

    Chiar nu este catuși de puțin surprinzător că curiozitatea pentru orice application chicken road este in creștere, luand in calcul mecanicile bine puse la punct. Vizitand pagina menționată mai sus, ai ocazia să descoperi date de configurare, sugestii utile cat și pașii necesari pentru a beneficia cea mai bună variantă a jocului. In concluzie, in cazul in care cauți să incerci ceva ceva nou precum și interesant, aplicatia chicken road reprezintă varianta perfectă pentru telefonul tău. Nu pierde șansa de a te alătura a numeroșilor fani care se joacă in fiecare zi acest program pe telefoanele lor. Instalează-l chiar acum precum și vezi de ce a devenit un titlu așa de iubit.

  4. koningcasino-ceday

    Bent u op zoek naar een vertrouwde en vermakelijke plek om een gokje te wagen? Dan is het verstandig om u te verdiepen in de wereld van Koning Casino [url=https://koningcasino-14.clydeemoryd763.workers.dev]koningcasino[/url] . In deze Koning casino review analyseren we waarom steeds meer spelers kiezen voor dit platform. Als u zich afvraagt of Koningcasino de juiste keuze is voor uw favoriete spellen, dan bent u hier aan het juiste adres. Het platform biedt een uitgebreide selectie aan games die zorgen voor een geweldige beleving voor iedereen die van online casino koning entertainment houdt.

    Wanneer we spreken over Koning, dan verwijzen we naar een omgeving waar veiligheid en spelplezier voorop staan. Het online casino koning platform is zo opgezet dat zowel beginnende als ervaren spelers gemakkelijk hun weg kunnen vinden. Of u nu op zoek bent naar de nieuwste gokkasten of liever een rondje live blackjack speelt, bij Koning casino Nederland vindt u het allemaal. De website presteert uitstekend en zorgt voor een soepele gebruikerservaring op diverse apparaten.

    Veel spelers zijn op zoek naar de beste mogelijkheden voor weddenschappen, en dan komt vaak de term Koning bet casino naar voren. Het is begrijpelijk dat gebruikers zoeken naar een betrouwbaar adres voor casino Koning bet spellen, aangezien de kwaliteit en de eerlijkheid van het spelaanbod van groot belang zijn. Met een sterke focus op service, heeft Koning online casino zich in korte tijd weten te profileren als een serieuze speler in de markt. Het is niet voor niets dat de zoekterm casino Koning zo populair is onder fans van digitale kansspelen.

    Wilt u zelf ervaren wat Koningcasino zo uniek maakt? Ontdek dan de verschillende bonussen en promoties die vaak worden aangeboden. Of u nu bekend staat als de Koning aan de speeltafel of gewoon zo nu en dan een weddenschap plaatst, de mogelijkheden van dit platform bieden voor ieder wat wils. Neem de tijd om het aanbod te ontdekken en geniet van de entertainmentwaarde die dit online casino te bieden heeft. Vergeet uiteraard niet om altijd verantwoord te spelen.

  5. spinogambinobet-Drilky

    A grande transparencia na administracao de dados e um fundamento fundamental para qualquer plataforma de entretenimento online que preza pela seguranca dos seus jogadores [url=https://spinogambinobet.com.pt/politica-de-cookies]spinogambino[/url] . Ao entrar no site da spino gambino, e normal que aparecam questoes sobre como as informacoes de navegacao sao processadas. A pagina dedicada a politica de cookies da spino gambino foi criada precisamente para esclarecer estes procedimentos, garantindo que cada visitante compreenda como os arquivos de texto sao armazenados no seu dispositivo para otimizar a vivencia de utilizacao.

    Os rastreadores desempenham um papel vital no operacional tecnico do sitio. Eles permitem que a spinogambino guarde as suas preferencias de idioma, tipo de navegador e outros ajustes especificos, impedindo que precise reconfigurar estas opcoes em cada visita. Alem disso, a utilizacao destes pequenos arquivos ajuda a equipe da spino gambino a realizar estudos estatisticas sobre o trafego no site. Ao entender quais as areas mais frequentadas pelos utilizadores, a plataforma consegue implementar ajustes constantes, tornando a navegacao mais fluida, intuitiva e adaptada as necessidades do publico.

    E importante frisar que a gestao destas preferencias esta sempre ao alcance do utilizador. Atraves das configuracoes do seu proprio navegador, o utilizador pode optar por bloquear cookies ou ser notificada sempre que um site quer armazenar um dado. Contudo, na spino gambino, o compromisso e manter o maximo rigor no uso dessas informacoes, garantindo que a coleta de dados seja empregue apenas para proporcionar um ambiente de jogo mais protegido e produtivo. Ao consultar a politica de cookies diretamente no dominio, o visitante encontra um guia detalhado sobre os diferentes tipos de ficheiros utilizados, desde os essenciais ate aos de desempenho. Desta forma, a spino gambino reafirma o seu empenho com a transparencia, assegurando que a credibilidade dos seus jogadores seja preservada atraves de praticas digitais responsaveis e claras, promovendo uma navegacao tranquila e informada em todas as areas do site.

  6. instasino-enelve

    Zoek je naar een veilige en opwindende omgeving om op het internet te wedden? Dan is het goed om de kansen van het platform op [url=https://instasino-2.ayigureso774.workers.dev]instasino review[/url] eens onder de loep te nemen. In deze instasino review stappen we uitvoerig in de sector van dit platform om te ontdekken wat het te aanreikt voor spelers die op behoefte aan een kwalitatieve gokbeleving. Het aanbod bij het instasino casino is gevarieerd en toegankelijk, waardoor zowel beginnende als vaste gokkers zich hier onmiddellijk thuis zullen wanen.

    Zodra je voor het begin de site opent, valt meteen op hoe intuïtief het systeem is ingericht. Een directe instasino login garandeert dat je exclusief wachttijd kunt navigeren naar je geliefde slots, casinospellen of real-time alternatieven. Als je op speurtocht naar een casino instasino bent dat tempo en betrouwbaarheid verbindt, dan ben je bij de juiste aanbieder. Vele spelers die gericht zoeken naar een instasino casino nederland prijzen de intuïtieve interface en de grote keuze aan spellen die worden gepresenteerd.

    Een diepgaande instasino casino review bewijst dat dit platform degelijk aandacht besteedt aan de spelbeleving. Hetzij je nu op je desktop of op je tablet inzet, het instasino casino online presteert optimaal zonder haperingen. Voor de nationale markt levert instasino nl juist wat gokkers hopen: een veilige platform, snelle uitbetalingen en een helpdesk die altijd hulp biedt. Vele gebruikers die voor het start kiezen voor instasino online, zijn aangenaam verrast door de bonussen en de doorlopende acties die het platform boeiend houden.

    Kortom, als je plannen maakt om je kansen te beproeven bij een modern domein, is dit een geweldige optie. Het voegt spelplezier met een deskundige stijl, waardoor het een sterke deelnemer is in de hedendaagse markt. Check eigenhandig waarom grote aantallen gokkers de pad naar dit domein hebben ontdekt en geniet van de grote mogelijkheden die dit casino te aanbiedt. Let op niet om matig te inzetten terwijl je geniet van hetgeen wat dit digitale platform voor jou in petto heeft.

  7. mojabet-nilboDe

    Mojabet is among the leading gaming sites in the United Kingdom, offering a broad selection of playing alternatives for both casual and experienced players [url=https://mojabet-ww.pages.dev]mojabet[/url] . Known for its easy-to-navigate layout and comprehensive choice of betting markets, virtual gambling, and live action betting, Mojabet has quickly become a preferred destination for people seeking online entertainment.

    Whether you’re looking to explore mojabet casino login, exploring mojabet online betting, or reading Mojabet feedback, this platform offers a smooth journey for every user.

    A major advantage of Mojabet is its instant withdrawal service, allowing players to access earnings fast and easily. This flexibility is greatly valued to players who enjoy immediate withdrawal to their balances. The platform also supports mojabet login through multiple devices, guaranteeing that players can play their preferred options at any time and place.

    For sports enthusiasts, the Mojabet platform offers a vast array of wagering options, featuring soccer, badminton, and e-gaming, included. The real-time wagering option brings unmatched thrills, allowing players to wager live as things happen. This ensures it’s a leading pick for people who love the adrenaline of live events.

    If you’re new to Mojabet, reading Mojabet feedback can offer useful perspectives into the service’s dependability and gaming journey. Many players praise its safe transactions, lucrative promotions, and responsive customer support. The site also guarantees transparency using honest betting standards and frequent reviews, ensuring it remains a beloved choice in the digital wagering world.

    Whether you’re curious about moja bet (another name for Mojabet), or testing Mojabet’s entry ways, this platform provides a seamless and fun journey. With a solid standing for honesty and a huge choice of activities, Mojabet remains popular with first-time and loyal players. If you’re ready to dive into the virtual gambling universe, Mojabet is an excellent choice for a thrilling and profitable journey.

  8. В этой статье рассматриваются различные аспекты избавления от зависимости, включая физические и психологические методы. Мы обсудим поддержку, мотивацию и стратегии, которые помогут в процессе выздоровления. Читатели узнают, как преодолеть трудности и двигаться к новой жизни без зависимости.
    Перейти к полной версии – [url=https://housemastery.ru/pages/centr-narkologicheskoj-pomoschi-ekaterinburg/]современная наркологическая клиника[/url]

  9. Zabawa gra plinko osiąga w ostatnich miesiącach niebywałą popularność wśrod naszych graczy pragnących ekscytującej zabawy online [url=https://plinko-casino-pl.pages.dev]plinko casino[/url] . Jeśli zastanawiasz się, co to jest za fenomen, warto sprawdzić serwis plinko-casino-pl.pages.dev, ktory jest szczegołowe źrodło danych o tej szybkiej produkcji. Plinko to łatwa, ale niezwykle angażująca mechanika, w ktorej kluczową rolę odgrywa plinko ball spadająca po stole z przeszkodami. Kolejny etap kulki to sekunda napięcia, ktora powoduje, że gra plinko ściąga mnostwo użytkownikow głodnych szybkich wynikow.

    Wielu graczy zadaje sobie pytanie, plinko czy warto rozpocząć swoją przygodę w tym stylu? Przeglądając plinko opinie dostępne w sieci i specjalne fora, można dostrzec, że użytkownicy doceniają zwłaszcza prostotę zasad oraz szybkie dynamikę rozgrywki. Wpisawszy w wyszukiwarkę zapytanie gra plinko opinie forum, bez trudu natrafisz na rozmowy, w ktorych doświadczeni gracze wymieniają się swoimi metodami i uwagami dotyczącymi tego, jak działa plinko kasyno.

    Dla osob poszukujących solidnego punktu do zabawy, plinko casino polska oferuje dostęp do nowoczesnych stron, ktore stawiają na uczciwość losowań. Plinko gra opinie pokazują nadto, że kluczem do sukcesu jest powściągliwość oraz uważanie tej aktywności jako sposobu relaksu. Strona plinko-casino-pl.pages.dev w jasny tryb opisuje mechanikę, dzięki ktorej plinko gra stała się hitem w domenie hazardu cyfrowego.

    Rozważając nad doborem dobrego miejsca, warto przetestować, co daje kasyno plinkoz, ktore regularnie pojawia się w rankingach najlepszych witryn. Bez względu od tego, czy jesteś amatorem, czy profesjonalistą, plinko kasyno to propozycja, ktora wyrożnia się na tle dawnych automatow. Miej na uwadze jednak, aby nieustannie sprawdzać wiarygodne źrodła a także analizować świeże komentarze społeczności, aby radować się rozgrywką w pełni świadomie. Jeśli zajmuje Cię świat, w ktorym głowną funkcję odgrywa ślepą losu, obowiązkowo zobacz, jak ukazuje się plinko w praktyce. To perfekcyjna opcja dla użytkownikow preferujących świeże nastawienie do gier losowych, gdzie istotny jest każdy lecący element.

댓글 달기

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