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,339개의 댓글

  1. vulkanvegas-whilm

    Si vous etes a la recherche d’une destination de jeux en ligne complete, le site Vulkanvegas-76.vercel.app se presente comme une destination essentielle pour les joueurs francophones [url=https://vulkanvegas-76.vercel.app]Vulkan Vegas France[/url] . Le Vulkan Vegas Casino a su se acquerir une solide reputation internationale en proposant une ludotheque riche et variee, allant des machines a sous aux jeux de table en direct. En visitant ce site, vous comprendrez pourquoi Vulkan Vegas est devenu une reference incontestee dans l’industrie du iGaming en France.

    Pour beaucoup de joueurs, la question centrale est la suivante : Vulkan Vegas est-il fiable ?. La reponse est positive, car le Casino Vulkan Vegas opere avec des licences officielles, garantissant un environnement juste et securise pour toutes vos sessions de jeu. Si vous consultez un temoignage sur Vulkan Vegas sur Internet, vous remarquerez rapidement que les utilisateurs apprecient particulierement la fluidite de l’interface et la rapidite des retraits et depots. Chaque critique de Vulkan Vegas souligne egalement la qualite exceptionnelle des bonus et des programmes de fidelite mis en place.

    En France, les joueurs recherchent une experience utilisateur optimale. Le site Vulkan Vegas France repond parfaitement a ces attentes en offrant un service client disponible et une compatibilite mobile exemplaire. Si vous hesitez encore, lire un retour d’experience peut vous aider a comprendre les avantages de rejoindre cette communaute dynamique. Les retours positifs concernant cet operateur sont nombreux, ce qui confirme que tout Avis Casino Vulkan Vegas tend a rassurer les nouveaux venus sur la fiabilite du service.

    En resume, Vulkanvegas propose une offre variee et un cadre de jeu professionnel. Entre les jackpots progressifs, les tournois exclusifs et les promotions hebdomadaires, le Vulkan Vegas Casino Avis reste globalement excellent. Il est temps de vous faire votre propre opinion en consultant les differentes evaluations et en testant par vous-meme la qualite des jeux disponibles sur cette plateforme. Inscrivez-vous et decouvrez pourquoi des milliers de joueurs choisissent ce casino pour se divertir chaque jour.

  2. onlyspins-Byroini

    Αν αναζητάτε μια πρωτότυπη και ιδιαίτερη εμπειρία στον χώρο των τυχερών παιχνιδιών, το only spins casino αντιπροσωπεύει μια από τις πιο κορυφαίες λύσεις για τους χρήστες [url=https://onlyspins-54.onrender.com]casino only spins[/url] . Σε αυτό το πλήρες only spins casino review, θα αναλύσουμε τι μετατρέπει αυτή την ιστοσελίδα να υπερέχει στον ανταγωνιστικό κλάδο του online gaming. Το onlyspins καζίνο διαθέτει μια μεγάλη συλλογή από slots και επιλογές δεξιότητας, παντρεύοντας την φιλικότητα στη διάδραση με σύγχρονα γραφικά.

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

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

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

  3. лирика 300 мг купить трамадол таблетки купить без рецепта купить Мефедрон, Гашиш, Бошки, Альфа-ПВП конопля купить москва вейп с тгк купить соль наркотик
    покупка мефедрона гашиш тг где купить гашишhttps://armyanskkupit.xyz купить марихуана бошки экстази наркошопы телеграмм

  4. chickenroad-avashy

    Daca accesezi platforma chicken road, este obligatoriu sa fii la curent cu privire la normele care guverneaza utilizarea serviciilor oferite [url=https://chickenroad-recenzieautentificare.ro/termeni-si-conditii]chicken road[/url] . Pagina de termeni si conditii de pe chickenroad-recenzieautentificare.ro reprezinta documentul oficial care defineste cadrul legal dintre utilizatori si operatorul platformei. Citirea acestui text este un pas obligatoriu pentru orice persoana care doreste sa se bucure de experienta oferita de chicken road in mediul de deplina siguranta si transparenta.

    Documentul trateaza aspecte importante precum conditiile de inregistrare, procesul de autentificare si responsabilitatile ce revin utilizatorului. Atunci cand decizi sa utilizezi chickenroad, accepti implicit ca vei lua la cunostinta normele privind varsta minima legala si utilizarea corecta a contului personal. De asemenea, termenii si conditiile explica modul in care sunt prelucrate datele cu caracter personal, asigurandu-te ca informatiile tale sunt securizate conform legislatiei in vigoare. Este recomandat sa verifici periodic aceasta sectiune de pe chickenroad-recenzieautentificare.ro, deoarece regulile pot fi actualizate pentru a reflecta schimbarile legislative sau imbunatatirile aduse platformei.

    Un alt punct cheie tratat in acest document vizeaza limitarea raspunderii si regulile de conduita in cadrul comunitatii chicken road. Utilizarea incorecta a platformei sau incercarea de a pacali sistemele de securitate pot cauza suspendarea rapida a accesului. Prin urmare, cunoasterea a acestor prevederi previne orice neintelegere ulterioara. Echipa care administreaza chickenroad pune un accent mare pe corectitudine, motiv pentru care transparenta oferita prin paginile de termeni si conditii este esentiala. Daca ai intrebari legate de procesul de autentificare sau de drepturile tale ca utilizator, consultarea acestui document trebuie sa fie intotdeauna prima ta actiune. In final, informarea corecta prin intermediul site-ului chickenroad-recenzieautentificare.ro iti asigura o experienta placuta, sigura si lipsita de surprize neplacute, permitandu-ti sa te concentrezi pe ceea ce conteaza cu adevarat in utilizarea serviciilor oferite de acest brand indragit de multi jucatori.

  5. Ben je aan het kijken voor een verse en uitdagende spelbeleving? Zodoende is het zeker aan te raden om eens een blik te werpen naar de opties bij Foxygold [url=https://foxy-golds-2.danielpressleyr565.workers.dev]foxy gold casino[/url] . Dit platform, open via foxy-golds-2.danielpressleyr565.workers.dev, krijgt voortdurend meer de focus van deelnemers die op zoek zijn naar een betrouwbare en leuke platform. In deze foxygold review analyseren we nader in wat dit casino te presenteert voor fans van online gokken.

    Wanneer je voor het eerst de website van Foxygold casino opent, valt direct het overzichtelijke design aan. Het palet aan games is divers en breed, zodat evenzeer beginners alsook ervaren spelers aan hun wensen vervullen. Of je nu voorkeur geeft aan traditionele slots, hippe fruitmachines of anders de interactieve omgeving van live tafelspellen, bij casino Foxygold vind je geheid iets dat voldoet aan jouw smaak. Talloze gasten die op zoek zijn naar een kwalitatief Foxygold online casino, roemen vooral de snelheid van de omgeving en de toegankelijkheid op zowel desktop als mobiel.

    Voor deelnemers uit Nederland is het essentieel om te constateren of een site toegankelijk en beveiligd oogt. In onze foxygold casino review kijken we dan ook scherp naar de spelbeleving binnen de context van Foxygold Nederland. Het netwerk beoogt om een betrouwbare en duidelijke gokomgeving te bieden aan elke bezoeker van Foxy gold. De combinatie van interessante extra’s en een solide game-assortiment draagt eraan bij dat de reputatie van Foxy gold casino langzaam maar zeker stijgt onder liefhebbers van digitale wedspellen.

    Samenvattend, als je denkt aan om je geluk te beproeven, is dit platform absoluut een vermelding waard. Middels de combinatie van een uitgebreid spelaanbod en een intuïtieve besturing, profileert Foxygold het als een vooraanstaande aanbieder in de huidige industrie. Wees ervan bewust steeds voor dat je verantwoord gokt en benut de exclusieve functies die casino Foxy gold te aanbiedt. Ga naar de webpagina en ontdek persoonlijk waarom zoveel gokkers gaan voor de actie bij Foxygold.

  6. spinogambino-neusa

    A la hora de evaluar la participacion en portales de apuestas online, es vital conocer las reglas que gobiernan la relacion entre el proveedor y el jugador [url=https://spinogambino-bet.com.es/terminos-y-condiciones]spino gambino[/url] . En el caso de spinogambino, la claridad es un elemento clave, y por ello el seccion de terminos y condiciones que se encuentra en su pagina principal resulta ser una lectura obligatoria para cualquier persona interesada en registrarse. Al acceder a la pagina dedicada a los terminos y condiciones de spinogambino, los usuarios encuentran toda la informacion necesaria para operar con seguridad, comprendiendo sus derechos y obligaciones dentro de la plataforma.

    Estos textos contractuales detallan aspectos cruciales como los requisitos de elegibilidad para abrir una cuenta, lo que incluye la verificacion de la mayoria de edad y la residencia legal del usuario. Ademas, al visitar el portal de spinogambino, se aclaran los procedimientos relacionados con la administracion de fondos, asegurando que cada movimiento financiero este respaldado por normativas claras que protegen tanto al usuario como a la empresa. Es importante entender las politicas sobre los bonos y promociones ofrecidas por spino gambino, ya que estas suelen conllevar requisitos de rollover que deben cumplirse para poder retirar cualquier ganancia obtenida.

    Otro punto relevante en la seccion de terminos y condiciones de spino gambino es la politica de juego responsable. La plataforma se esfuerza a proporcionar opciones de gestion para que el jugador pueda establecer limites en sus depositos y tiempo de sesion, fomentando un entorno sano y divertido. Conocer estos puntos es clave para disfrutar de una experiencia sin contratiempos. Recomendamos firmemente a todos los jugadores que revisen periodicamente este segmento en el portal de spino gambino, ya que las politicas pueden actualizarse para adaptarse a nuevas regulaciones o mejoras en la seguridad del servicio. Al estar al tanto, los clientes de spinogambino garantizan un uso seguro y adecuado de todas las alternativas de juego que ofrece esta web dedicada a los juegos online.

  7. Inside Chicken Road, we assert that wagering must always persist as a pleasant pastime not an approach to yield profit [url=https://chicken-road-predictorgame.net/responsible-gambling]chicken road[/url] . Granted that the joy of the chickenroad journey is crafted to keep gamers engaged and diverted, it is vital to tackle every round with focus and firm individual boundaries. Controlled play is the basis of our service, and we pledge to delivering a safe environment for the entire community.

    The heart of a rewarding time on the chicken road platform is the skill to uphold discipline. We suggest the entire audience to see their sessions as a form of budgeted fun, comparable to attending a cinema or a theater. When you initiate betting, set a strict allowance that you are comfortable forfeiting. Never attempt to hunt missing funds or gamble capital meant for necessary payments for example mortgages, invoices, or nutrition. Should you discover yourself using excess duration or wealth than planned planned, it is appropriate to withdraw and reassess your patterns.

    Noting the indicators of addictive patterns is significant. If you suspect that your participation in these activities is becoming obsessive, or if wagering is damaging your personal life, bonds, or career achievements, please perform prompt steps. We supply resources to support you regulate your play, incorporating the feature to input budget rules or observe short breaks from our service. If you believe that you successfully no longer manage your betting by yourself, we firmly advise requesting guidance from qualified agencies focused on supporting people with gambling concerns.

    Your welfare is our main goal. We advise you to wager wisely, keep track of the period you invest on the service, and always keep the focus on pleasure. With creating boundaries early and keeping to them, you guarantee that the excitement of the game persists as a constructive component of your leisure time. Stay informed, remain disciplined, and relish your session on our service safely.

  8. Услуги на дому особенно удобны пожилому человеку, больному в период восстановления, людям с ограниченной мобильностью и тем, кому врач назначил курс инфузионной терапии. Вызвать врача можно круглосуточно по телефону, оставив заявку оператору. Перед выездом специалист уточняет диагноз, симптомы, название препарата, дозировки, предыдущие реакции на лекарства и другие сведения, которые имеют значение для здоровья. Если требуется срочный вызов и присутствуют признаки острой угрозы жизни, выраженной интоксикации, нарушения сознания или тяжелого состояния, необходимо вызвать скорую помощь: капельница на дому не заменяет экстренное лечение в больнице.
    Подробнее – [url=https://nadomu3.kapelnica-ot-zapoya-v-moskve14-1.ru/]капельница на дом анонимно[/url]

  9. Cellular gaming aficionados searching for a superior betting journey frequently seek the best sites to enjoy their beloved games on the go [url=https://spino-gambino-casinoapp.org/app]casino spinogambino app[/url] . The spinogambino app has arisen as a top choice for gamers who value accessibility and crisp imagery. By choosing the spinogambino casino app, members obtain instant access to an vast assortment of slots, table games, and live dealer experiences directly from their handsets. If you are striving to elevate your mobile gaming, the casino spinogambino app provides a smooth design engineered for easy browsing and rapid betting.

    Getting started is easy for those prepared to commence the process. The spinogambino app download is straightforward and optimized for both Android and iOS telephones, ensuring that each player can experience a lag-free environment. When you complete the spinogambino download, you unlock a realm of exclusive bonuses and offers customized specifically for portable gamers. The spino gambino app is designed to be streamlined, signifying it does not hinder your phone speed while preserving high protection measures for every one of your transactions.

    For Android users notably, the spinogambino apk allows for a rapid setup external of the standard repository hubs. Plenty of users choose the casino spino gambino app because it supplies a dedicated space that is significantly more consistent than betting via a smartphone browser. By employing the authorized spinogambino application, you guarantee that you get instant modifications, secure banking methods, and 24/7 user support at your fingertips.

    In modern busy time, the app spinogambino functions as the ideal remedy for those who desire to gamble everywhere at whatever hour. Whether you are traveling, resting at the house, or on the move, your favorite casino lobby is constantly just a click away. Do not skip the freshest gaming patterns and high-stakes prospects. Head over to the official portal to grab your copy of the software today and join a growing group of players who have adopted this reliable and extremely engaging portable platform.

  10. vulkanvegas-flilm

    En quete d une experience de jeu en ligne immersive, le site Vulkan Vegas se presente comme une reference majeure pour les amateurs de divertissement virtuel [url=https://vulkanvegas-75.pages.dev]Is Vulkan Vegas Legit[/url] . En decouvrant la plateforme, les joueurs profitent d un univers riche en machines a sous, jeux de table et options de casino en direct. Pour ceux qui s interrogent sur la serieux de cet operateur, la question de la legitimite revient souvent. Il est essentiel de souligner que Vulkan Vegas Casino met en place des mesures de securite strictes pour assurer un environnement de jeu equitable et protege.

    En consultant un avis detaille, on comprend rapidement pourquoi cette plateforme attire autant en Europe. Le Vulkan Vegas France propose une interface intuitive, adaptee aux besoins des utilisateurs francophones. La variete des titres disponibles, fournis par les meilleurs editeurs du marche, assure une experience renouvelee a chaque session. Si vous souhaitez connaitre le ressenti de la communaute, il est recommande de parcourir les differents avis disponibles sur le web. Ces retours permettent de se faire une idee precise sur la qualite du service client, la rapidite des retraits et la generosite des bonus offerts.

    De nombreux joueurs recherchent un avis sur le casino avant de creer leur compte. En general, les retours concernant le Casino Vulkan Vegas soulignent la diversite des promotions qui boostent le capital de jeu des le depart. Que vous soyez un expert des plateformes de jeux ou un debutant curieux, les avis confirment que Vulkanvegas sait repondre aux attentes des plus exigeants. En resume, si vous cherchez un espace ludique performant, cet operateur se positionne comme une option de choix. Consultez regulierement les derniers avis pour rester informe des nouveautes et des avantages exclusifs reserves aux membres inscrits sur ce site dynamique qui continue d attirer de nouveaux adeptes chaque jour.

댓글 달기

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