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”의 68,361개의 댓글

  1. In case you are hunting for some exciting along with fast-paced wagering journey, the chickenroad game has quickly grown into a trending phenomenon inside the digital gaming world [url=https://chicken-roadpredictor.net]chickenroad[/url] . Presented mostly at the website at chicken-roadpredictor.net, this title has caught the interest of gamers who love intense betting and uncomplicated yet engaging mechanics. Frequently referred to as the chicken road casino game, it challenges users to guide a fowl through a crowded way, evading obstacles to multiply their bets. Owing to its notoriety, many punters are seeking for that chicken road slot game to evaluate their luck along with tactics.

    When evaluating if the platform is appropriate for yourself, it is standard to hunt for chicken road game reviews to see what others feel concerning the mechanics alongside profit possibilities. Several fresh punters regularly ask if the chicken road game legit reputation is validated, alongside the view suggests the fact that although it offers a enjoyable experience, players ought to regularly practice sensible gaming. The simplicity regarding the chicken road layout makes it accessible by novices, while the growing danger keeps experienced gamblers hooked.

    The excitement regarding the chicken road money game lies in the decision-making routine. Each move forward increases your expected payouts, yet one wrong step might signify losing your entire bet. Followers of the primary release regularly switch to chicken road 2, the one which offers improved visuals alongside smoother play elements. Whether you are accessing it using a specialized tool or perhaps via the primary site, the chicken road experience remains original versus classic slot machines. If you decide to play within a chicken road casino, ensure you grasp the site rules alongside handle your funds properly. Through utilizing the tools found on chicken-roadpredictor.net, you will more clearly understand the flow regarding the chicken road plus perfect your method. Whether you name it a casino chicken road title or simply just a fun casual bet, this release continues to guide the path in modern digital gaming enjoyment. Constantly remember to bet inside your boundaries alongside enjoy the difficulty regarding the road.

  2. vulkanvegas-glypE

    L’univers des divertissements numeriques ne cesse de se developper et de nombreux joueurs cherchent des plateformes serieuses pour se divertir [url=https://vulkanvegas-73.gunnerlkgutmannmln82.workers.dev]Vulkan Vegas Avis[/url] . Dans ce contexte, Vulkan Vegas s’est impose comme un acteur incontournable du secteur. Si vous vous demandez si Vulkan Vegas est legit, sachez que cet operateur dispose des autorisations requises pour operer en toute legalite, offrant ainsi un environnement securise pour tous ses utilisateurs. En explorant ce site, les joueurs decouvrent une large selection comprenant des slots diversifies, des jeux de table classiques et une experience de casino en direct captivante.

    Lorsqu’on consulte les differents Vulkan Vegas avis disponibles sur le web, on remarque rapidement que la qualite graphique et la fluidite de la navigation sont souvent soulignees. Le site de jeux propose en effet une experience optimisee pour les utilisateurs, que ce soit sur ordinateur ou sur mobile. Pour les joueurs bases en Vulkan Vegas France, cette accessibilite est un point fort majeur. De nombreux avis d’experts mettent egalement en avant la generosite des offres promotionnelles et la reactivite du service client, des elements cruciaux pour une experience de jeu positive.

    La recherche d’un test Vulkan Vegas fiable est une etape necessaire avant de s’inscrire sur une nouvelle plateforme. En consultant un commentaire sur le casino, les internautes cherchent generalement a confirmer la vitesse des retraits et la diversite des methodes de paiement. L’operateur reussit a tirer son epingle du jeu grace a une gestion stricte des donnees et un catalogue de fournisseurs de logiciels prestigieux. Que vous soyez un habitue ou un debutant, le Casino Vulkan Vegas propose un equilibre interessant entre divertissement pur et securite technique. En somme, en lisant un Vulkan Vegas Review detaille, vous comprendrez pourquoi cette plateforme continue de attirer une large communaute de joueurs exigeants. Il est toujours recommande de jouer de maniere prudente tout en profitant des fonctionnalites ludiques offertes par cet etablissement de renom dans le paysage actuel des jeux numeriques.

  3. spinogambinobet-twisp

    A dedicacao com a protecao e a integridade dos seus clientes e uma meta principal para a casa de apostas SpinoGambino [url=https://spinogambinobet.com.pt/jogo-responsavel]spino gambino[/url] . Ao navegar no site oficial, os apostadores encontram uma seccao dedicada ao Jogo Responsavel, que reflete o empenho da marca em garantir que a experiencia de apostas online se mantenha sempre um passatempo positivo e controlado. O Spino Gambino compreende que, embora o jogo deva ser uma fonte de diversao, e fundamental manter limites claros para evitar comportamentos de risco.

    A pagina de Jogo Responsavel do SpinoGambino oferece um manual detalhado para ajudar os utilizadores a controlarem o seu tempo e orcamento. Atraves de ferramentas integradas, como a definicao de tetos de carregamento, limites de perda e periodos de autoexclusao, o site proporciona aos jogadores o gestao completa sobre a sua atividade. Estas opcoes sao essenciais para quem deseja desfrutar dos jogos de casino e apostas desportivas com responsabilidade, prevenindo o desenvolvimento de habitos compulsivos.

    Alem de fornecer ferramentas praticas, o Spino Gambino promove a literacia sobre os perigos associados ao jogo excessivo. Na referida seccao, os utilizadores tem acesso a informacoes cruciais sobre como reconhecer sinais de alerta e onde obter apoio especializado, caso sintam que o jogo deixou de ser uma diversao. A honestidade do SpinoGambino ao tratar este tema demonstra a rigorosidade com que a marca encara a protecao dos seus membros.

    Ao escolher jogar no Spino Gambino, cada utilizador e incentivado a adotar uma atitude responsavel. A plataforma aconselha que o jogo nunca seja visto como uma solucao financeira ou uma forma de rendimento, mas sim como uma forma de entretenimento. Ao seguir estas orientacoes e utilizar os recursos disponiveis na pagina dedicada, a comunidade pode aproveitar tudo o que o site tem para oferecer num ambiente seguro e equilibrado. A responsabilidade e um pilar fundamental que torna a experiencia no SpinoGambino muito mais sustentavel e gratificante para todos os entusiastas de apostas.

  4. When exploring the universe of web-based gaming, identifying the perfect rewards could greatly elevate your immersion. At [url=https://spino-gambino-casinoapp.org/bonus]spinogambino bonus[/url] , gamers are offered to a diverse selection of incentives built to amplify your activity. If you are searching to extract the utmost return out of your sessions, understanding the current spinogambino bonus offers is the first phase towards increasing your financial potential.

    New members are frequently scouting for a bountiful spinogambino no deposit bonus to begin their journey without upfront financial obligation. This sort of award is a splendid method to evaluate the platform and its varied catalog of titles. By using a special spino gambino no deposit bonus, you can gain immediate entry to engaging mechanics and occasionally finish with genuine payouts. Constantly examine the rules on the official site to confirm you fulfill all playthrough obligations prior to trying to remove your money.

    For individuals who are ready to submit a fund transfer, the regular casino spinogambino bonus delivers an superior addition to your account. Regardless if you love traditional slots or contemporary engaging games, these rewards offer additional funds to extend your playtime. A multitude of players search for a active spino gambino bonus code to unlock private promos not accessible to the general public. Submitting a new spinogambino bonus code during the registration or deposit phase is often all it needs to start these special perks.

    Consistency is key while hunting for value. Monitor out for any updated spino gambino promo code that the system distributes for holiday occasions or reward incentives. Utilizing the latest spinogambino promo code secures that you hardly ever miss the top offers currently live. By browsing the specific bonus page regularly, you keep aware about every accessible spinogambino casino bonus. Regardless if you are a seasoned user or a novice, leveraging these opportunities skillfully is the smartest way to navigate the portal and appreciate a high-end gaming session. Start your adventure immediately and witness how these deals might turn your sessions into something genuinely rewarding. [url=http://cnd-cost.co.kr/bbs/board.php?bo_table=dx0403&wr_id=126224]Maximizing Your Ses[/url] [url=http://czrlp.8u.cz/forum/viewtopic.php?f=9&t=1353&p=24926#p24926]Elevating Your Gaming at Spino Gambino: A Complete Overview at Current Bonus Deals[/url] dfec980

  5. Главное назначение капельницы — не «мгновенно очистить» организм, а поддержать восстановление жидкости, электролитный баланс и функции организма после алкоголя. Капельница может помочь уменьшить отдельные проявления похмельного и абстинентного синдрома, однако она не является самостоятельным лечением алкоголизма. После детоксикации специалисты клиники могут рекомендовать консультацию психиатра, психотерапевта, психолога, медикаментозное лечение, кодирование или реабилитационный курс. Такой комплексный подход направлен не только на физическое облегчение, но и на работу с зависимостью и тягой к спиртному.
    Подробнее – https://3.kapelnica-ot-zapoya-v-moskve14.ru/

  6. foxygolds-unlonge

    Ben je aan het kijken voor een verse evenals spannende gokervaring? Vervolgens is het interessant om een blik te widen bij foxygold [url=https://foxygolds-4.vercel.app]foxygold review[/url] . Ditzelfde portaal heeft de recente periode enorm veel focus vergaard in de wereld van online kansspelen. In deze foxygold review gaan we nauwkeuriger in wat dit casino zo eigenzinnig creëert en waarom spelers blijvend dikwijls besluiten voor foxygold casino.

    Zodra je voor het eerste bezoek brengt aan de homepage van foxygold online casino, schiet meteen het hippe ontwerp en de handige layout op. Het palet aan spellen is opmerkelijk, bewegend van moderne gokkasten tot de klassieke tafelgames die je mag verwachten van een hoogwaardig casino. Voor fans die streven naar een betrouwbare setting, is een casino foxygold review belangrijk om te lezen. Het huis beoogt een eerlijke en gegarandeerde gokomgeving, wat voor talloze lokale klanten een hoofdzaak is.

    Het groot voordeel van foxygold nederland is de gebruiksgemak. Of je momenteel via je PC speelt dan wel liever op reis bent via je mobieltje, de sensatie blijft vloeiend evenals betrouwbaar. Het spelaanbod van foxy gold casino is zorgvuldig opgebouwd, voorzien van titels van gerenommeerde softwarehuizen die garant staan voor vermaak alsmede transparante kansen. Daarnaast is de support van casino foxy gold eenvoudig contacteerbaar, iets dat garandeert een prettige goksessie.

    Binnen deze foxygold casino review kunnen we opmerken dat het huis een prima keuze is voor zowel nieuwe en ervaren deelnemers. Het is helder dat foxy gold behoorlijk wat belang hecht aan service evenals gokgenot. Ben je behoefte aan een verfrissende locatie om je kansen te testen? Dan is foxygold zeker een systeem om in de kijker te volgen. Het vermengt actie met technologie op een wijze die in de huidige branche nauwelijks wordt opgemerkt. Test het zelf even alsmede zie waarom vele gokkers reeds de pad naar dit gokhuis hebben gevonden en daar met veel plezier de uren doorbrengen.

  7. Самостоятельно оценить степень риска сложно. Иногда человек выглядит относительно удовлетворительно, но в течение следующих часов состояние ухудшается. Именно поэтому врач при выводе из запоя оценивает работу сердечно-сосудистой и нервной системы, наличие обезвоживания, состояние сознания и сопутствующие заболевания. Такая диагностика позволяет решить, где безопаснее проводить лечение — на дому или в стационаре.
    Узнать больше – [url=https://vyvod-iz-zapoya-krasnoyarsk69.ru/]наркология вывод из запоя Красноярск[/url]

  8. spinogambinobet-Drilky

    A grande transparencia na administracao de dados e um fundamento fundamental para toda plataforma de entretenimento online que preza pela seguranca dos seus jogadores [url=https://spinogambinobet.com.pt/politica-de-cookies]spino gambino[/url] . Ao entrar no site da spinogambino, e natural que surjam questoes sobre como as informacoes de navegacao sao processadas. A pagina reservada a politica de cookies da spinogambino foi criada precisamente para esclarecer estes procedimentos, garantindo que cada utilizador compreenda como os ficheiros de texto sao guardados no seu dispositivo para melhorar a experiencia de utilizacao.

    Os rastreadores desempenham um papel vital no operacional tecnico do portal. Eles permitem que a spino gambino memorize as suas preferencias de idioma, tipo de navegador e outros ajustes especificos, impedindo que tenha de ajustar estas opcoes em cada visita. Alem disso, a aplicacao destes pequenos arquivos ajuda a equipa da spino gambino a realizar analises estatisticas sobre o trafego no site. Ao entender quais as areas mais frequentadas pelos usuarios, a plataforma consegue implementar ajustes constantes, fazendo a navegacao mais fluida, simples e adaptada as necessidades do publico.

    E importante frisar que a administracao destas preferencias esta constantemente ao alcance do jogador. Atraves das configuracoes do seu proprio navegador, o utilizador pode optar por recusar cookies ou ser avisada sempre que um site tenta armazenar um dado. Porem, na spino gambino, o compromisso e manter o maximo rigor no uso dessas informacoes, garantindo que a recolha de dados seja empregue exclusivamente 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 arquivos utilizados, desde os essenciais ate aos de desempenho. Desta forma, a spinogambino reafirma o seu empenho com a clareza, garantindo que a confianca dos seus jogadores seja preservada atraves de acoes digitais responsaveis e transparentes, promovendo uma navegacao tranquila e informada em todas as areas do site.

  9. onlyspins-toumb

    Εάν ανακαλύπτετε μια καινούργια και εντυπωσιακή περιπέτεια στον κόσμο των παιχνιδιών τύχης, το only spins casino αποτελεί έναν προορισμό που αξίζει την ματιά σας [url=https://onlyspins-casino-21.onrender.com]only spins login[/url] . Πρόκειται για μια πλατφόρμα που έχει κερδίσει την πίστη των χρηστών, προσφέροντας μια μεγάλη συλλογή διαθέτοντας φρουτάκια και κλασικά παιχνίδια καζίνο. Εξετάζοντας μια λεπτομερή only spins review, θα διαπιστώσετε ότι η σελίδα δίνει μεγάλη βάση στην απλότητα πλοήγησης και την θωράκιση των συναλλαγών, μετατρέποντας το casino only spins τέλειο για απειρους και προχωρημένους παίκτες.

    Η διαδικασία για το only spins login είναι πολύ εύκολη και γρήγορη, επιτρέποντας στους παίκτες να μεταβούν άμεσα στη παιχνίδι. Το περιβάλλον του onlyspins είναι στημένο με τέτοιο τρόπο έτσι ώστε να προσφέρει μια γρήγορη περιήγηση είτε από υπολογιστή όσο και μέσω tablets. Μια αναλυτική only spins casino review τονίζει την ποικιλία των μπόνους και των στρατηγικών επιβράβευσης που παρέχει το onlyspins casino, δίδοντας έξτρα κίνητρα στους πιστούς παίκτες.

    Διαλέγοντας το onlyspins καζίνο, αποκτάτε επαφή σε κορυφαίους παιχνίδια από μεγάλους εταιρείες λογισμικού, διασφαλίζοντας έντιμο παιχνίδι και όμορφα εφέ. Κάθε only spins review υπογραμμίζει επίσης την υποστήριξη πελατών, η οποία είναι γρήγορη και χρήσιμη για την διευθέτηση κάθε θέματος. Αν σκοπεύετε να ανακαλύψετε τις ικανότητες του only spins, είναι σημαντικό να αντιλαμβάνεστε ότι η πλατφόρμα επενδύει συστηματικά στην αναβάθμιση της ικανοποίησης του πελάτη.

    Συνοψίζοντας, το onlyspins casino παντρεύει την προστασία με την ψυχαγωγία κορυφαίου ποιότητας. Είτε ψάχνετε για τα πολύ τελευταία φρουτάκια είτε για μια αξιόπιστη πλατφόρμα τυχερών παιχνιδιών, το μόνο σίγουρο είναι ότι το casino only spins πληροί όλες τις επιθυμίες σας. Μην αμελήσετε να δείτε την αναλυτική only spins casino review για να κατανοήσετε ολοκληρωμένα όλα τα οφέλη που διαθέτει ο συγκεκριμένος δικτυακός τόπος. Η είσοδος μέσα στον κόσμο του only spins είναι απλώς η αφετηρία για ξεχωριστές στιγμές διασκέδασης, με την προϋπόθεση σταθερά να στοιχηματίζετε με υπευθυνότητα.

  10. chickenroad-Choinge

    Jocul precaut reprezinta fundatia principala a fiecarei experiente sigure de gaming, iar platforma chickenroad intelege pe deplin semnificatia acestei chestiuni pentru comunitatea sa [url=https://chickenroad-recenzieautentificare.ro/joc-responsabil]chicken road[/url] . Atunci cand vizitezi chicken road, trebuie sa iti amintesti ca jocurile de noroc trebuie considerate exclusiv ca o activitate recreativa si nu ca o modalitate de a obtine venituri constante. Echipa din spatele chickenroad lucreaza constant pentru a promova un mediu echilibrat, oferind unelte utile esentiale pentru ca fiecare moment de joc sa fie tinut sub observatie.

    Un joc echilibrat pe chicken road implica stabilirea unor limite clare inainte de a incepe orice activitate. Recomandam tuturor utilizatorilor sa isi aloce un buget strict si sa nu treaca peste suma pe care isi permit sa o piarda. De asemenea, gestionarea timpului petrecut pe platforma chickenroad este la fel de importanta precum gestionarea banilor. Se recomanda sa iei pauze regulate si sa fii atent la modul in care jocul influenteaza bunastarea si responsabilitatile cotidiene. Daca observi ca activitatea pe platforma incepe sa te streseze sau ca nu mai poti respecta limitele impuse, este momentul sa apelezi la functiile de auto-excludere sau sa soliciti asistenta de specialitate.

    Siguranta ta este obiectivul principal pentru chickenroad, motiv pentru care platforma incurajeaza constant o abordare matura si constienta. Nu lasa niciodata emotiile sa isi puna amprenta pe decizii in timpul jocului. In cazul in care ai sentimentul ca lucrurile scapa de sub control, nu ezita sa apelezi la entitatile autorizate care pun la dispozitie ajutor pentru jucatorii ce intampina dificultati. Prin informare si autodisciplina, poti transforma experienta pe chicken road intr-una pozitiva si distractiva. Retine ca un jucator informat este un jucator protejat, iar adevarata reusita in lumea digitala vine faptului ca stii sa te opresti la timp. Viziteaza sectiunea de joc sigur de pe site pentru a vedea toate resursele oferite si pentru a te asigura ca sesiunile tale sunt mereu in deplina siguranta.

댓글 달기

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