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”의 19,731개의 댓글

  1. standout online gaming venue known as Bet And Play is a reliable destination among Canadian players looking for a user-friendly entertainment experience [url=https://bet-and-play-91.onrender.com]Betandplay[/url] .

    As one of the most innovative names in the digital gambling sector, Bet And Play Casino Canada provides a rich array of activities, promotions, and a protected environment. Whether you’re seeking Bet And Play Reviews or exploring Betandplay Online Casino, understanding its benefits and track record is key before you make a deposit.

    Betandplay Casino Canada shines by showcasing a extensive catalogue of casino games, covering video slots, table games, and interactive options. The design is built for simplicity, making it intuitive for rookies and experienced players to move around. One of the most important features of Betandplay is its focus to transparency, confirming that all games are operated by leading developers like Net Entertainment, Microgaming, and Evolution Gaming. This emphasis on premium entertainment and mindful gaming practices positions it as a compelling player in discussions about Bet And Play casinos.

    For those pursuing Betandplay Casino Review, enthusiast testimonials often highlight the platform’s attractive launch offers and continuous deals. First-time gamblers can often benefit from a launch offer that contains complimentary plays, enhanced payouts, or refund programs, which can noticeably elevate their gaming session. Furthermore, the Bet And Play digital platform guarantees that gamblers can tap into their favorite games whenever, thanks to its mobile-friendly design. This convenience is especially to Canadian enthusiasts who enjoy entertaining themselves while moving.

    When judging Bet And Play, protection and licensing are critical elements. Betandplay Casino Canada functions under rigorous legal control, providing gamblers with peace of mind regarding their deposits and private data. The casino also prioritizes responsible gambling by providing tools such as spending caps and voluntary withdrawal choices, guaranteeing a safe and managed playing setting.

    In final analysis, Bet And Play is a reliable pick for those exploring Bet And Play Casino Canada or looking for a comprehensive review of Bet And Play. With a varied game library, lucrative bonuses, and a dedication to fairness, it remains to attract gamblers looking for a seamless and fun digital gambling journey. Whether you’re a first-timer or a veteran enthusiast, Bet And Play provides a well-rounded site valued considering.

  2. spinmachologin-Encax

    Concerning choosing a leading web-based betting site, enthusiasts desire honesty, adventure, and a devotion to perfection [url=https://spinmachologin.com/about-us]spin macho[/url] . The group supporting Spinmacho has dedicated their focus to developing a platform that fulfills these stringent criteria, offering a special setting for players who value together entertainment and trustworthiness. By browsing the about us page at spinmachologin.com, users can reach a clearer comprehension of the primary purpose and the principles that push the Spinmacho journey continuously any particular afternoon.

    The core of Spin macho is formed on the pillars of user security, fair wagering, and diverse action options. The platform was built with the current player in mind, realizing that the world of online gaming is always transforming. Spinmacho bridges the gap between old-school fun and modern software, guaranteeing that all spin and each session is supported by firm systems built to secure user data and provide an impartial gaming setting.

    Creativity continues at the forefront of the Spinmacho ethos. The collective constantly updates the hub to add advanced functions that enhance usability and involvement. Whether you are a novice browsing the vast library of titles or a experienced pro looking for consistent results, the architecture at spinmachologin.com is customized to promote a smooth journey via many devices.

    Past the technical aspects, the brand of Spin macho is anchored in a drive for gaming perfection. The company focuses on customer satisfaction, viewing each gamer as a vital piece of their thriving network. By upholding strong principles and concentrating on customer-focused enhancements, Spinmacho brands it as much than simply a location; it becomes a dependable partner in your gaming quest. We urge you to learn further around the talented professionals who strive diligently to ensure that your hours engaged on the portal is really brilliant. Discover the vision that turns this page a standout option for users seeking high-end integrity, and consistent enjoyment in the realm of internet play.

  3. betandplay-Neage

    BetAndPlay is a well-known internet gambling venue that has gained significant recognition among homegrown players searching for a reliable and dynamic gaming experience [url=https://betandplay-91.pages.dev]Bet And Play Casino Canada[/url] . As a standout player in the Betandplay Casino Canada field, this portal delivers a extensive variety of titles, perks, and a straightforward design engineered to support both beginners and skilled gamblers. Whether you’re seeking detailed assessments or simply desiring to examine a fresh casino, BetAndPlay dominates as a dependable pick.

    The honest critique of BetAndPlay Casino emphasizes several critical elements that position it a premier choice. To begin with, the platform hosts a immense selection of games, encompassing poker, card games, and interactive modes. Enthusiasts can enjoy content from elite software houses like Playtech, promising cutting-edge visuals and fluid experience. The Betandplay likewise underlines trust and transparency, leveraging licensed and compliant gaming software to ensure a open and unbiased gaming environment.

    For those intrigued in BetAndPlay’s virtual platform, the platform features generous welcome bonuses, as well as recurring campaigns. New punters can often receive a launch reward that includes virtual credits, deposit matches, or earned credits, easing the process of launching to gamble with added benefits. Moreover, the comprehensive evaluation of BetAndPlay notes that the platform is engineered for mobile users, allowing punters to enjoy their preferred games while traveling by way of a responsive web portal or a specialized app.

    When evaluating Bet And Play Reviews, it’s vital to acknowledge that the portal emphasizes customer contentment with 24/7 assistance teams, rapid transfers, and a selection of transaction options. Whether you’re pursuing a Canadian online casino or a international gaming adventure, this hub provides a fluid and enjoyable way to dive in online casino entertainment.

    For those fresh to BetAndPlay, reviewing detailed assessments of Bet & Play documents can help how the hub measures to competing alternatives. With its fusion of gaming, bonuses, and trust, BetAndPlay Casino remains a elite selection for Canadian punters hunting for a fun-filled and compelling online casino journey. Whether you’re a roulette enthusiast or a supporter of live dealer games, BetAndPlay Casino offers something for any person.

  4. chickenroad-Inveri

    Εάν αναζητάτε μια νέα και συναρπαστική ενασχόληση στον κόσμο των online παιχνιδιών, το chicken road έχει τραβήξει το βλέμμα πολλών θαμώνων το τελευταίο διάστημα [url=https://chickenroad-gr-25.pages.dev]chicken road slot[/url] . Πρόκειται για ένα παιχνίδι που βασίζεται στην κλασική ιδέα της διαδρομής, καθώς ο σκοπός είναι να κατευθύνετε το κοτόπουλο με σιγουριά στην απέναντι πλευρά, αποφεύγοντας τα εμπόδια. Πλήθος παίκτες αναρωτιούνται αν το chicken road game είναι μια αξιόπιστη επιλογή, ειδικά όταν πρόκειται για πλατφόρμες τύπου chicken road casino.

    Η ραγδαία δημοτικότητα του chicken cross the road casino game οδήγησε πολλούς παίκτες να αναζητούν για ένα αναλυτικό chicken road review. Είναι ουσιώδες να υπογραμμίσουμε ότι, καθώς σε κάθε δραστηριότητα που σχετίζεται με στοιχήματα, η προφύλαξη είναι το παν. Άρα, το ερώτημα is chicken road legit είναι εντελώς φυσιολογικό. Προτού καταλήξετε να επενδύσετε chicken road game money, θα οφείλετε πάντα να διασταυρώνετε την αξιοπιστία της πλατφόρμας και να αποφεύγετε ιστότοπους που δείχνουν chicken road απατη. Η επιφυλακτικότητα είναι απαραίτητη ώστε να εγγυηθείτε ότι η εμπειρία σας παραμένει διασκεδαστική και ασφαλής.

    Το software παραπέμπει έντονα ένα κλασικό chicken road slot, συνδυάζοντας την λιτότητα του arcade με την αδρεναλίνη του τζόγου. Με την κυκλοφορία του chicken road 2, οι προγραμματιστές έχουν αναβαθμίσει τα γραφικά και τους λειτουργίες, προσφέροντας περισσότερες προκλήσεις στους χρήστες. Αν επισκεφθείτε τη σελίδα chickenroad, θα παρατηρήσετε μια μοντέρνα σχεδίαση που έχει κατασκευαστεί για να προσελκύει το κοινό που αναζητά γρήγορο και ακαριαίο παιχνίδι.

    Συνοψίζοντας, το chicken road είναι μια ψυχαγωγική επιλογή για όσους αγαπούν τα παιχνίδια σκέψης και ρίσκου. Ωστόσο, η λογική στάση είναι ο καλύτερος σύμμαχός σας. Πληροφορηθείτε σωστά, μελετήστε τις κριτικές και μην ξεχνάτε ότι ο κύριος σκοπός τέτοιων παιχνιδιών πρέπει να παραμένει η ψυχαγωγία. Αν επιλέξετε να παίξετε στο chicken road casino, κάντε το με μέτρο, θέτοντας πάντα όρια στον χρόνο και τα χρήματα που διαθέτετε, ώστε να χαρείτε το παιχνίδι χωρίς άσκοπα ρίσκα.

  5. Accessing your preferred gaming account should be a seamless journey, and the Spino Gambino portal is designed to offer precisely this [url=https://spino-gambino-review.net/login]login spino gambino[/url] . Assuming you are a regular user or a newcomer to the circle, the routine for the spinogambino login is uncomplicated and accessible. By navigating to the authorized portal, you can instantly input your login info and go right into the excitement avoiding extra stalls. Protection remains a major priority, so ensuring that you utilize the proper login spinogambino gateway is crucial for safeguarding your data and confidential details.

    Whenever you face any problems during initiating a spino gambino login, the site offers clear guidance to aid you regain permission fast. Most gamers find that the login spino gambino routine lasts barely a few instants, assuming they possess their registered account and password handy. For players exclusively seeking the spinogambino casino login, the layout is perfected to perform on PC and handheld tablets, guaranteeing you can enjoy from anywhere at any time.

    Various members look for the casino spinogambino login to leverage the newest offers and slots offered by the portal. When you have finalized your spino gambino casino login, you are ushered into a area filled with elite slots and exclusive features. Equally, users who choose the casino spino gambino login way will encounter the equivalent excellent levels of functionality and reliability. Securing your credentials private is constantly recommended to confirm your activity stays secret.

    Provided that you are now working to navigate the spino gambino online login, remember to always check that you are on the real destination to uphold ideal protection. The spinogambino online login is engineered for convenience, allowing you to handle your balance and observe your growth with simplicity. By following these clear actions, you can assure a smooth path into your betting visit. Whether you are betting on a handheld or a laptop, the efficient access process verifies that you spend minimal duration delaying and extra hours playing the top games available on the web nowadays. [url=https://www.bruchlee.com/south-asian-geopolitics/%e0%a6%ad%e0%a7%82-%e0%a6%b0%e0%a6%be%e0%a6%9c%e0%a6%a8%e0%a7%80%e0%a6%a4%e0%a6%bf/#comment-75555]A Simple Guide to the Spino Gambino Login System[/url] [url=https://borayoluklu.com/2022/02/23/and-the-day-came-when-the-risk-to-remain-tight-in-a-bud-was-more-painful-than-the-risk-it-took-to-blossom/#comment-10615]A Simple Guide to the Spino Gambino Login Process[/url] 797a610

  6. personalblog-immeve

    In cazul in care esti in cautarea unei forme de distractie digitala antrenant si incitant, probabil ai auzit deja despre succesul chicken road [url=https://personalblog-axx.pages.dev]chicken road[/url] . Acest joc a atras imediat interesul iubitorilor de pacanele din tara noastra, devenind un subiect dezbătut pe larg in mediul online. Platforma disponibila ofera o analiza amanuntita in lumea acestui slot, explicand regulile din spatele popularitatii sale.

    Cand cauti chicken road pareri, vei observa imediat ca userii apreciaza in special simplitatea si dinamismul acestui chicken road game. Contrar pacanelele traditionale cu zeci de linii de plata, acesta mizeaza pe o experienta directa, unde deciziile tale influenteaza parcursul. Jucatorii impatimiti care au incercat chicken road romania subliniaza faptul ca varianta originala a stabilit un standard in industrie, motiv pentru care lansarea continuarii a fost primita cu mare entuziasm.

    Cei care cauta informatii despre chicken road 2 sunt interesati sa afle ce aduce nou aceasta versiune. Daca accesezi un chicken road pareri forum, vei observa discutii aprinse despre cum sa abordezi acest chicken road casino, prioritizand gestionarea bugetului. In ceea ce priveste jocul propriu-zis, chicken road 2 pareri converg spre ideea ca grafica imbunatatita si functiile suplimentare fac experienta mult mai captivanta decat in prima editie.

    Fie ca vrei sa testezi un joc chicken road pentru distractie sau esti in cautarea unei strategii pentru a optimiza rezultatele in cadrul acestui chicken road slot, este esential sa te informezi corect. Studiind jocul chicken road pareri, vei putea decide daca acest titlu se potriveste stilului tau. Nu uita ca, atunci cand cauti jocul chicken road pareri, este important sa consulti surse de incredere pentru a intelege pericolele si beneficiile. In concluzie, daca vrei sa stii mai multe despre acest univers fascinant, exploreaza resursele disponibile pentru a fi mereu la curent cu tot ce inseamna chicken road joc in Romania.

  7. reliable virtual gambling site delivers won significant attention among domestic betters pursuing a secure Bet And Play Casino Canada, this site features a wide array of entertainment, perks, and a easy-to-navigate interface [url=https://bet-and-play-92.loxabelo579.workers.dev]Bet And Play[/url] .

    Whether you’re a beginner or a veteran player, exploring Bet And Play Reviews can help you to develop an informed call.

    Bet And Play Casino Canada is structured to support enthusiasts across, providing a effortless venture with quick deposits and safe deals. The system accepts various deposit ways, encompassing mobile wallets, debit plates, and bank transfers, ensuring accessibility for all customer.

    Many Bet And Play Reviews stress the platform’s dedication to honesty, which is key for establishing faith in the digital entertainment field.

    When investigating Bet And Play Casino Review, enthusiasts frequently praise the broad choice of activities, featuring slots, blackjack activities, and real-time dealer options. The casino site regularly updates its game catalogue to preserve the experience dynamic. Moreover, Bet And Play Online Casino features generous deals, such as welcome perks, free spins, and loyalty programs, which boost the overall entertainment experience.

    For those unacquainted with Bet And Play, reading Bet And Play Reviews can supply useful understandings into the website’s benefits and possible weaknesses. Many players enjoy the prompt client service, which is on-hand all-hours to assist with all issues. Still, as with every virtual casino hub, it’s critical to gamble mindfully and set boundaries to guarantee a positive session.

    Whether you’re looking for a exciting hobby or focused playing, Bet And Play Casino Canada shines as a esteemed option. By considering Bet And Play Reviews and grasping the site’s qualities, you can appreciate a effortless and pleasant virtual casino session adapted to your choices. Always protection and wise entertainment can help you to maximize the best of your experience at Bet And Play.

  8. chickenroad-Popipt

    Εν λόγω Chicken Road έχει μετατραπεί το τελευταίο διάστημα ένα εκ των πιο συζητημένα slots στη σφαίρα των online games ευκαιρίας [url=https://chickenroad-gr-26.vercel.app]chicken road απατη[/url] . Διάφοροι παίκτες ψάχνουν πληροφορίες για το chicken road game, δοκιμάζοντας να καταλάβουν αν συμβαίνει για μια ψυχαγωγική περιπέτεια ή κάτι που απαιτεί μεγάλη προσοχή. Το software μιμείται τη στρατηγική του παραδοσιακού chicken cross the road casino game, όπου ο σκοπός είναι να καθοδηγήσετε το πουλερικό με σιγουριά στην αντίθετη όχθη, παρακάμπτοντας τα κωλύματα για να πολλαπλασιάσετε το όφελος σας.

    Μόλις ένας παίκτης ψάχνει για chicken road casino, το αρχικό ζήτημα που προκύπτει είναι το αν είναι έμπιστο. Πολλοί αναρωτιούνται αν υπάρχει chicken road απατη ή αν είναι ένα τίμιο slot. Η απάντηση στο ερώτημα is chicken road legit βασίζεται πάντα από την πλατφόρμα στην οποία διαλέγετε να διασκεδάσετε. Είναι σημαντικό να μην ξεχνάτε ότι το chicken road slot ή οποιοδήποτε άλλο παρόμοιο game τύχης ενέχει ρίσκα και θα πρέπει να αντιμετωπίζεται με σύνεση.

    Πάνω στην σελίδα chickenroad-gr-26.vercel.app, οι επισκέπτες δύνανται να δοκιμάσουν την ευνοϊκή συγκυρία τους, παρ’ όλα αυτά η ενημέρωση είναι το απόλυτο κλειδί. Μελετώντας ένα αμερόληπτο chicken road review, θα καταλάβετε ότι η κερδοφορία στο game δεν είναι βεβαιωμένη. Το chicken road game money που δύναται να αποκομίσει ένας παίκτης εξαρτάται από τον μηχανισμό της εφαρμογής, επομένως η διαχείριση του κεφαλαίου σας είναι χρειώδης.

    Κατά την κυκλοφορία του chicken road 2, το ο ενθουσιασμός του παικτών έχει αυξηθεί κατακόρυφα. Το παιχνίδι περιλαμβάνει ανανεωμένα γραφικά και πιο άμεσο ταχύτητα, χαρακτηριστικό που το κάνει ελκυστικό για τους παίκτες που επιλέγουν τα ταχύρυθμα casino games. Παρά τη φήμη του chickenroad, προτείνουμε διαρκώς στους παίκτες να είναι συνετοί και να στοιχηματίζουν αποκλειστικά σε πλατφόρμες που εμπιστεύονται. Είτε μιλάμε για το γνήσιο game είτε για κάποια παραλλαγή του, η ευχαρίστηση πρέπει πάντοτε να συμπληρώνεται με τον διαχείριση των κεφαλαίων σας. Μάθετε ολοκληρωμένα προτού ξεκινήσετε, έτσι ώστε να αποκτήσετε μια προστατευμένη και διασκεδαστική εμπειρία στο αγαπημένο σας chicken road παιχνίδι.

  9. 7€ bonus casino slovensko 5-válcové automaty zdarma
    casino cez sms vytvoriЕҐ ruletu online zadarmo automaty hry zdarma mega joker Fortuna free spiny na dnes bez vkladu casino kolik her mГЎ bonver casino
    najlepsie automaty na fortune guru casino bonus bez vkladu

댓글 달기

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