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”의 75,031개의 댓글

  1. neospin-cliendy

    Neospin CasinoNeospin gaming|Neospin digital|Neospin game is a well-known web-based casino slot that has earned significant notoriety from enthusiasts looking for entertaining and fulfilling playing adventures [url=https://neospin-15.orbitfischercloudyj9yk5555.workers.dev]neospin[/url] . As part of the wider spectrum of Neospin-style casino offerings, this slot stands out for its exceptional features and top-tier gameplay.

    Whether you’re searching for a Neospin analysis or simply wanting to explore what makes Neospin online platforms special|exceptional, this article|piece will provide a thorough overview|breakdown to help you form an informed choice.

    The Neospin casino is renowned for its visually appealing|striking graphics and fluid animations|transitions, which enhance the complete playing experience. Gamblers commonly acclaim the game for its lavish bonus features and progressive prizes, turning it a favourite option among those pursuing both fun and possible prizes. If you’re considering testing neospin digitally, it’s worth to mention that many trusted sites feature this game, ensuring a seamless and secure playing session.

    For those looking a neospin review, gambler testimonials generally points out the slot’s fair|honest and open|honest systems. The random number generator (RNG) guarantees that every spin is independent|standalone, providing an fair opportunity of winning big for all gamblers. This trustworthiness is crucial|vital when selecting an Neospin casino, as it guarantees a just and enjoyable|fun session.

    If you’re fresh to neospin, grasping its fundamental elements can help you optimise|enhance your enjoyment. The slot regularly includes free spins, bonus multipliers|enhancers, and special symbols that can dramatically|substantially boost|enhance your prizes. Many gamblers appreciate the slot’s accessibility|user-friendliness, as it can be played on both PC and smartphone devices, making it easy for on-the-go playing.

    When investigating neospin casino online platforms, it’s critical|vital to prioritise those with strong|solid protection steps, such as encrypted security and regulated operators. This ensures that your private and monetary information stay safe while you play your favourite slots. Additionally|Moreover, reading neospin casino review guides can provide perspectives into the best platforms offering this game, assisting you prevent scams and select a reliable|legitimate provider.

    In conclusion|final thoughts, neospin is a exceptional|top-tier choice for gaming enthusiasts searching for an exciting|thrilling and profitable|fulfilling experience. Whether you’re searching a Neospin review or simply wanting to explore neospin digital platforms, understanding the game’s features and choosing a trusted|legitimate platform will enhance your gaming journey. Always play responsibly and appreciate the excitement of spinning for big prizes.

  2. chickenroad-Zopiche

    Such excellent platform Chicken Road Demo is the most beloved web-based playground that has earned considerable attention from homegrown casino lovers hunting for a thrilling experience in online wagering [url=https://chickenroad-uk-29.onrender.com]Chicken Road Demo Reviews[/url] .

    Whether you’re a novice to explore into digital gambling or a long-time gambler, sampling the Chicken Road Demo can be a smart way to get acquainted in ahead of spending real cash.

    This detailed walkthrough delivers a full inspection at which the The Trial Mode has, its legitimacy, and what makes it excels among rival virtual casino demos.

    —

    The The Demo Version English edition enables casino lovers to try a broad selection of entertainment titles by bypassing risking their funds. From timeless spin titles like The Demo Slot to baccarat games and broadcasted hosted features, the demo platform delivers an captivating preview of the casino’s tools. Numerous users praise the ability to Try Chicken Road Demo at no expense, building their assurance in the gaming hub’s layout, title range, and complete gaming journey ahead of completing a payment.

    —

    A common question regarding The Demo Version is if it’s real. The The Trial Wagering Site has attracted stellar Trial Mode Testimonials from casino lovers who have acclaimed its equitable gameplay, buttery execution, and responsive assistance team. While no trial version involves real cash, the reputation of the main wagering platform carries a decisive part in assessing reliability. Enthusiasts usually review Trial Mode Evaluations resources to ensure they’re connecting with a reputable casino.

    —

    For those intrigued about the specific titles on offer, the The Trial Spin array features trending games like Chicken Road Demo Slot, which boasts addictive themes and plentiful prize cycles. Trying The Practice Games via the web allows players to familiarise themselves with the rules, RTP (Return to Player), and full fun ahead of deciding to enter for genuine stakes. This is particularly valuable for newcomers who hope to avoid potential pitfalls in broadcasted casino gaming.

    —

    Yet advantage of the Chicken Road Demo is the chance to assess the platform’s capabilities, such as perks, deals, and funding processes. While the trial platform fails to offer actual prize money, it gives insight into why the The Practice Wagering Site runs, helping casino lovers to create well-researched decisions when they finally deposit cash. Many gamblers find that the trial experience boosts their trust in the casino, encouraging them far more willing to participate with the streamed platform.

    —

    Put simply, the The Trial Mode UK is an invaluable asset for anyone pursuing to explore virtual wagering responsibly. Whether you’re hunting a The Practice Machine to try or purely hope to assess the gaming hub’s reputation through Trial Mode Testimonials, this trial platform gives a zero-cost way to try the adventure of virtual casino gaming. Consistently ensure you’re playing safely and choosing legitimate gaming hubs to maximise enjoyment as cutting downsides.

  3. И сам уже не может остановиться. Вызвать нарколога — единственный выход. Нарколог на дом вывод из запоя — Без осуждения. Врач приезжает сам. Круглосуточный вывод из запоя — Без больниц. Советую глянуть источник: вывод из запоя анонимно недорого [url=https://anonimno.vyvod-iz-zapoya-na-domu-msk-mnq.ru]https://anonimno.vyvod-iz-zapoya-na-domu-msk-mnq.ru[/url] И про то, как прокапаться на дому для жителей столицы. Берегите себя и близких.

  4. chickenroad-crura

    Deschiderea totodată securitatea vizitatorilor constituie stalpii principali pe care se bazează activitatea noastra pe portalul chicken road [url=https://chickenroad-review.ro/politica-de-confidentialitate]chickenroad[/url] . In era digitala actuale, realizăm cat de esențial este de a cunoaște cum sunt procesate și folosite informațiile tale private atunci cand navighezi pe internet. Prin urmare, pagina dedicată politicii de confidentialitate de pe site-ul nostru, accesibilă pe chickenroad-review.ro, constituie un angajament ferm privind securizarea informatiilor tale private.

    Atunci cand vizitezi portalul chickenroad, intenționăm să te bucuri de cea mai buna experienta pe măsură. Pentru a imbunatati funcționarea portalului și spre a adapta continutul in functie de interesele celor care navighează, colectam detalii de ordin tehnic ce nu pot depista personal un utilizator. Această strategie ne sprijină să eficientizăm proiectele noastre, confirmand faptul că recomandările privind mancărurile cu pui precum și analizele culinare pe care vi le propunem pe chicken road sunt utile si utile pentru comunitatea noastra in continua crestere.

    Securitatea datelor este abordată cu rigurozitate pe chickenroad-review.ro. Implementam masuri tehnice precum și organizatorice potrivite pentru a preveni pătrunderea nepermisă, alterarea sau dezvaluirea informatiilor tale. Politica noastra de confidentialitate explică maniera in care procesăm fisierele de tip cookie, ca și drepturile pe care le ai in postura de vizitator, conform reglementarilor europene in vigoare privind protectia datelor personale.

    Invităm pe toți utilizatorii noștri să consulte cu atentie acest document informativ. Dacă utilizați in continuare site-ului chicken road, vă exprimați consimțămantul referitor la practicile descrise in acest capitol. In situația in care intervin modificari in felul in care administrăm datele, vom actualiza imediat informațiile din pagină pentru a reflecta aceste schimbari. Staff-ul nostru continuă să fie concentrat transparentei totale, creand astfel o relatie de incredere durabil cu fiecare vizitator care cercetează universul chickenroad in căutarea celor mai bune experiente gastronomice. In cazul in care aveți solicitări de informații, vă stăm mereu la dispoziție pentru a furniza răspunsurile de care aveți nevoie.

  5. The landscape of digital gambling continues to grow, and players are constantly searching for sites that combine fun with safety [url=https://need-for-slotsreview.eu]need for slots casino review[/url] . If you are an enthusiast looking for a reliable hub for your favorite titles, you might have come across the portal need-for-slotsreview.eu. This platform has emerged as a specialized guide for those who have a genuine need for slots and are looking for in-depth analysis before they start playing.

    When writing a need for slots casino review, it becomes clear that the site strives for clarity in an often-crowded market. The need for slots online casino guide offers detailed breakdowns of different sites, helping players navigate the complexities of online gaming. Whether you are a novice or a veteran, reading professional need for slots reviews can save you time by removing poor choices and showcasing those that offer the most value.

    One of the most important features of the platform is its focus on the variety of need for slots slot games accessible today. Current innovation has changed how we engage with these titles, and understanding the inner workings behind the reels is essential for a enjoyable experience. Additionally, the site places a strong focus on need for slots casino bonuses, which are crucial for extending your playtime and increasing your winning potential. From sign-up deals to exclusive need for slots free spins, the site details how to effectively claim and use these offers.

    Aside from the incentives, the site explores the broader range of need for slots casino games, ensuring that players have access to top-tier software from trusted providers. By keeping up to date through need for slots online gaming updates, players can make educated decisions about where to play. If you value safety, fair play, and an large library of titles, visiting need-for-slotsreview.eu is a great first step. Their dedication to providing honest feedback makes them a useful partner for anyone who is enthusiastic about finding the best platforms to enjoy their favorite digital pastimes.

  6. instasino-jaituro

    Zoekt u naar een betrouwbare en uitdagende omgeving om uw geliefde kansspelen te ervaren? Hierdoor is het goed om eens naar de mogelijkheden van Instasino te bestuderen [url=https://instasino-6.icadebuhadiy77.workers.dev]instasino casino nederland[/url] . Deze kansspeloperator wint snel aan populariteit voor adepten van digitale kansspelen door de enorme collectie aan spellen plus de gebruiksvriendelijke interface. Binnen deze Instasino review nemen we elk cruciaal onderdeel onder de loep, waarmee u goed op de hoogte bent van het aanbod indien u een account aanmaakt.

    Zodra u kiest om te spelen bij het Instasino casino, ervaart u spoedig dat de website volledig is klaargemaakt voor zowel de PC als mobiele apparaten. Een vlotte Instasino login biedt de garantie dat u binnen enkele seconden kunt starten met talloze slotmachines, blackjack en roulette alsook live dealer spellen. Voor gebruikers uit ons land is het prettig om op de hoogte te zijn dat deze omgeving toegankelijk is en een uitstekende ervaring biedt voor al degenen die op zoek is naar een betrouwbaar Instasino casino Nederland.

    Middels deze Instasino casino review onderzoeken we meer dan puur de casinospellen. Daarnaast de veiligheidsmaatregelen, de klantenservice en de beschikbare betaalmethoden zijn van groot belang voor een positieve speelervaring. De organisatie profileert zich als een modern Instasino casino online waar openheid en vermaak de kern vormen. Ongeacht of u een doorgewinterde speler bent of net begint met casino instasino avonturen, de makkelijke bediening maakt het eenvoudig om snel te navigeren.

    Veel gebruikers die al eerder hebben gekozen voor Instasino online, zijn zeer tevreden over de vlotte afhandeling van uitbetalingen en het diverse aanbod aan promoties. Wilt u zelf ontdekken waarom Instasino nl platform zo populair is onder Nederlandse spelers? Zodoende is dit het juiste moment om het aanbod te doorlopen. Houd er rekening mee om met mate te spelen en uw budget goed te monitoren. Samengevat levert deze operator een goede synergie van vermaak en betrouwbaarheid, wat het tot een topkeuze maakt voor uw aanstaande sessie in de wereld van online gokken. Check het portaal en ervaar zelf de uitmuntendheid van de spelselectie en de service.

  7. spinogambino-fluibe

    Le jeu en ligne represente une forme de divertissement passionnante qui demande une approche reflechie [url=https://spinogambino-bet.fr/jeu-responsable]spino gambino[/url] . Au sein du site Spinogambino, la protection et le confort des membres sont consideres comme des objectifs majeurs. La section consacree au jeu securise sur le site officiel, accessible via spino gambino, illustre la volonte reelle de l’operateur pour offrir un environnement sain a sa communaute. Comprendre les principes du jeu responsable est essentiel pour tout joueur souhaitant s’amuser sans jamais nuire a sa serenite financiere ou personnelle.

    Le site spinogambino met a disposition une serie d’outils pratiques pour aider chaque utilisateur a maitriser parfaitement sur son activite. Parmi ces fonctionnalites, les joueurs peuvent configurer des limites de depot journalieres, hebdomadaires ou mensuelles. Cette maitrise du budget permet de prevenir tout exces et de maintenir une experience ludique qui demeure un pur divertissement. En optant pour spino gambino, vous beneficiez d’une interface intuitive qui simplifie la configuration de ces parametres de securite des votre inscription.

    L’auto-exclusion est une disposition essentielle pronee par Spinogambino pour ceux qui estiment avoir besoin d’une pause prolongee. Cette demarche, accessible via la rubrique consacree au jeu modere, est pensee pour etre facile d’acces, garantissant un soutien optimal. La plateforme encourage egalement une sensibilisation constante sur les risques lies a l’addiction. Si vous remarquez que votre maniere de jouer evolue negativement, des ressources externes et des conseils sont accessibles pour vous orienter vers des organisations specialisees.

    En conclusion, choisir une interface comme Spinogambino signifie choisir un partenaire qui applique les regles deontologiques les plus strictes. La clarte et la protection des joueurs sont les piliers de cette experience. En adoptant les bons reflexes proposes sur spino gambino, vous transformez vos moments de detente en une pratique controlee et sereine, ou la valeur principale reste avant tout le divertissement responsable.

  8. В этой статье мы рассмотрим современные достижения в области медицины, включая инновационные методы лечения и диагностики. Мы обсудим важность профилактики заболеваний и роль технологий в улучшении качества здравоохранения. Читатели узнают о влиянии медицины на повседневную жизнь и ее значение для современного общества.
    Полезно знать – [url=https://justwoman.club/kodirovanie-ot-alkogolizma-osnovnaya-polza/]Центр кодировки[/url]

  9. chicken-addinee

    Does The Chicken Casino reliable? An comprehensive assessment concerning this digital gaming venue trail throughout this the Isle of Britain [url=https://chicken-road-uk-30.onrender.com]Is Chicken Road Legit Game[/url] .

    During investigating internet betting sites, in the case of among this, gamblers need to necessary to check reliability until committing resources.

    Chicken Platform seems by way of that URL chicken-road-uk-30.onrender.com, has attracted inquisitiveness among bettors pursuing an legitimate betting platform. Still, establishing how This Chicken Platform gets considered authentic requires careful analysis of several important considerations.

    Initially, the casino’s certification and compliance adherence serve as pivotal signs in terms of legitimacy. Established British wagering venues run under strict regulation from organisations namely this UK Gaming Authority, providing transparent gaming, responsible playing policies, together with reliable withdrawals. Sadly, Chicken Casino doesn’t barely clearly display some registration data over the site, this triggers instant warning signs. Trusted gaming platforms usually present the government rank distinctly, commonly via transparent symbols along with approval icons.

    A further element for analyze acts as the operator’s fame between players. Even though This Chicken Casino is likely to gain curiosity due the identity along with identity, external assessments plus gambler comments remain hard to find. Most genuine English betting sites have cultivated established images via forums for example Gambling Matters, plus dedicated wagering communities. Devoid of heavy unbiased approval, it becomes hard when confirm how The Chicken Road provides on the offerings regarding transparent entertainment, trustworthy deposits, along with customer support.

    Additionally, that system factors of that site have a role in assessing trustworthiness. This Chicken Road’s server via Render Solutions points to that is likely to get regarded as the newer site, since several established gaming platforms employ dedicated platforms for superior stability and trustworthiness. Potential drawbacks including as repeated disruptions, sluggish load phases, or outdated applications could hint at the lack of resources towards hosting, this gets considered common towards questionable or shady casinos.

    Concerning gamblers across the United Kingdom, this approval position regarding This Chicken Platform gets particularly critical. The United Kingdom possesses demanding entertainment policies, as well as merely licensed casinos are give actual playing features. Fly-by-night ventures encounter being under the jurisdiction of ISPs, resulting in gamblers at risk for monetary damage together with trickery. Despite The Chicken Casino could get regarded as comparable to the most genuine wagering hub upon assessment, the lack of legal visibility contributes to it tough while have confidence in the processes.

    Upon reaching end, even though Chicken Casino could get perceived as like a suitable alternative within Isle of Britain bettors, that absence concerning visible registration, compliance conformity, and unbiased reviews generates notable concerns concerning its authenticity. Players ought to choose long-standing plus approved betting sites which English entertainment rules with a view to ensure the safest reliable and honest wagering venture. Regularly conduct thorough investigation before spending capital, and take into account reaching out to entertainment government institutions with a view to additional guidance.

  10. A fame of the plinko game remains exploded globally, plus Malaysia stands as no exception. In case you are looking for that premier platform aiming to enjoy this captivating arcade-style adventure, [url=https://plinko-game-87.web.app]plinko malaysia[/url] delivers the seamless interface created catering to thrill-seekers. This game itself appears modeled from timeless television game shows, where a ball falls from that top regarding some pyramid-shaped board, bouncing off various pegs prior to landing within some prize slot located at the floor. Such simplicity associated with the mechanics remains exactly the element which turns the plinko game incredibly enticing and easy to pick up involving novice players.

    For gamers hunting for some top-tier plinko casino game, this site offers the smooth performance that functions ideally on either cellphone and laptop devices. Regardless of whether you are the relaxed player otherwise individuals interested on the challenging nature associated with a plinko online game, the usability remains adjusted catering to rapid navigation. Many gamers across this region are diligently hunting a reliable plinko Malaysia platform that ensures honesty and thrills. Whenever you operate a plinko game online, you gain the capacity to adjust the danger level, making all session a unique decision amidst low, regular payouts alternatively targeting towards the massive multipliers positioned at the periphery associated with the board.

    Safety along with ease regarding use are crucial when picking the plinko casino. Our particular web application is built aiming to offer a deeply captivating atmosphere during which you can enjoy this timeless plinko online experience minus some unneeded complexity. Although many people enjoy the entertainment associated with this game, the platform also a rising community keen about the plinko game online real money factor. Via selecting some trusted site comparable to this, you ensure where the gaming experience remains both entertaining plus safe. In case you are ready to test some luck plus tactics, discover the excitement associated with the plinko Malaysia real money experience immediately. Remember in order to play cautiously along with savor some fast-paced action which only this singular game might offer. Each descent stays the fresh possibility to climb some rankings plus dominate the pegs.

댓글 달기

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