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

  1. The Bet And Play Casino is a highly regarded digital gaming hub that has become a favorite among by Canadian players pursuing a trustworthy and thrilling betting journey [url=https://bet-and-play-88.rasirez800.workers.dev]Betandplay Casino Canada[/url] .

    As a dominant force in the virtual betting arena of Canada, this digital hub delivers a extensive collection of playing opportunities, rewards, and a intuitive design engineered for casuals and professionals. Whether you’re scouring honest evaluations or exploring this Canadian casino, understanding with its features can assist you in making an informed choice.

    One of the standout aspect of The Bet And Play Casino is its extensive selection of betting titles. The hub highlights a comprehensive assortment encompassing slot machines, table games, live dealer options, and additional offerings. Players can delight in games from elite software developers like Net Entertainment Group, Micro Games, and Evolution Gaming, delivering top-notch graphics, seamless interaction, and honest payouts. For those eager about an honest assessment, the hub’s reputation for fairness is consistently emphasized, making it a beloved choice for Canadian bettors.

    A key perk is the competitive bonuses accessible at this digital casino. Newcomers can capitalize of sign-up perks, including deposit multipliers, spin credits, and refund bonuses. These rewards are tailored to elevate the playing session while providing significant perks. When reviewing user feedback, many users commend the casino’s efficient customer support and safe payment methods, which comprise favored choices like digital wallets and crypto assets.

    For those uninitiated with the Bet And Play platform, it’s essential to understand that the platform treats as top priority player safety and reliability. With cutting-edge encryption technology and regulated processes, players can relish their beloved playing choices with confidence. The site also ensures adherence with provincial gaming rules, undeniably strengthening its trustworthiness.

    Whether you’re hunting down a detailed user evaluation or merely dipping your toes into the Bet And Play platform, this site provides a seamless and memorable adventure. With its extensive game selection, top-tier rewards, and strong standing, Betandplay continues to be a favorite pick for virtual gambling enthusiasts throughout the country. Keep in mind to play smart and verify the site’s agreements for the newest promotions and changes.

  2. During investigating the sphere of internet gaming, identifying a dependable resource for honest assessments is vital [url=https://spino-gambino-review.net/about-us]spino gambino[/url] . The website supporting spino gambino aims to serve as your main destination for comprehensive analysis in the virtual casino sphere. At its foundation, the hub is driven by a devotion to transparency, exactness, and player support. The team at spino gambino understands that the virtual gambling sector can be daunting, which is the cause they have committed their efforts to breaking down involved platform aspects into easy-to-understand reports.

    The About Us section on the primary webpage explains the mindset that steers every review posted by the staff. Contrary to plenty of feedback hubs that prioritize sponsorships, the authors at spino gambino boast on an unbiased approach. They strictly evaluate numerous sites, concentrating on safety protocols, title selection, reward layouts, and payment effectiveness. By prioritizing the user experience over any other factor, they certify that users can make informed judgments before investing their precious time or money to a fresh service.

    Integrity is the bedrock of the brand. When you visit the webpage, you will notice that every critique follows a precise methodology built to spotlight as well as advantages and potential drawbacks of a gambling platform. This degree of precision is what distinguishes them from common lists. Regardless of you are a occasional user looking for a entertaining slot encounter or a high player pursuing the top VIP deals, the guidance delivered by the experts aid you navigate the industry with confidence.

    Ultimately, the target of spino gambino is to encourage a more secure and more pleasant gaming community. By upholding elevated content standards and constantly refreshing their content to show shifts in the market, they persist as a reliable expert. If you are scouting for clarity in a busy marketplace, the resources available on their page offer the necessary direction to enable you choose the top solutions tailored to your specific requirements and choices. [url=http://192.249.121.131/%7Erosedoll/forum1/index.php?topic=2095.new#new]Identifying the Philosophy Behind Spino Gambino: Our Unbiased Review at the About Page[/url] [url=https://chillforum.pl/viewtopic.php?t=41029]Finding the Reality Behind Spino Gambino: A Transparent Look at the Mission Section[/url] 7327adf

  3. spinmachologin-edgelo

    Comprehending the way your data is managed represents a pivotal part of the player interaction when browsing online betting platforms [url=https://spinmachologin.org/cookie-policy]spin macho[/url] . At spinmacho, we value transparency and user privacy, a key factor being that our cookie policy is created to be clear and available. When you move to the spinmachologin.org cookie policy section, you are gaining insight into how we utilize tiny data records to enhance your online activity and guarantee that our hub functions smoothly for each user.

    Cookies prove essential for offering a customized encounter. When you visit spinmacho, these items aid us remember your specific settings, including dialect choices alternatively your connection status, thus you do not need to input information each time you revisit. Furthermore, cookies serve a key function in site metrics. By understanding how users browse our content, we are able to form informed decisions to improve the efficiency along with utility of our online portal. We differentiate between session cookies, that vanish when you quit your application, along with long-term cookies, that persist on your computer for a fixed duration to help us spot you on future logins.

    Safety remains a secondary foundation of the spinmacho devotion to superior quality. We apply cookies to identify possible fraudulent behavior plus ensure that your profile details keep protected throughout your active time. Provided you decide to avoid store cookies saved on your device, you have the right to control alternatively disable them through your application configurations. Nevertheless, be sure to note that restricting these records might affect the functionality of various parts on the portal.

    We invite each registered players to regularly examine the official cookie policy at spinmachologin.org to remain educated on any modifications to our data standards. By proceeding to utilize the spinmacho portal, you concur to our use of cookies as described in our legal text. Our core aim remains to provide a smooth, guarded, and enjoyable atmosphere in which you can focus on whatever matters best, firmly trusting that your confidentiality and virtual experience remain in trusted hands.

  4. chicken-Fluendy

    Ανακαλύψτε τον ενδιαφέροντα τομέα του chicken road, ενός εκ ιδιαίτερα διάσημα ψυχαγωγικά μέσα της εποχής που έχει κατορθώσει να προσελκύσει το επικέντρωση των fun στην Ελλάδα [url=https://chicken-road-gr-23.vercel.app]chicken road 2[/url] . Σε περίπτωση που αναζητάτε μια ιδιαίτερη περιπέτεια ψυχαγωγίας, το chicken road game χαρίζει υψηλές συγκινήσεις και εύκολους όρους που το κάνουν ιδανικό είτε για νέους παίκτες όσο και για προχωρημένους παίκτες. Η πλατφόρμα που φιλοξενεί αυτή την διασκέδαση είναι το chicken road casino, το οποίο διαφέρει για τον νέο σχεδιασμό του και την ταχύτητα φόρτωσης.

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

    Μοιάζει λογικό να αναρωτιέστε για την ασφάλεια του προγράμματος. Μελετώντας τις chicken road κριτικεσ, θα παρατηρήσετε ότι το κοινό προτιμά εξαιρετικά την ευκολία του gameplay και τη δίκαιη δομή του παιχνιδιού. Για όσους βρίσκονται στην Ελλάδα και σκοπεύουν να δοκιμάσουν chicken road ελλάδα, η είσοδος μέσω της επίσημης URL που τελειώνει σε vercel.app είναι ο ο πιο γρήγορος δρόμος.

    Συνοψίζοντας, το chickenroad είναι μια φρέσκια επιλογή στον τομέα των online games. Είτε είστε fan του κινδύνου είτε απλώς επιζητάτε έναν ψυχαγωγικό τρόπο για να αξιοποιήσετε την ώρα σας, το chicken road είναι εδώ για να σας δώσει μια αξέχαστη εμπειρία. Εξερευνήστε τις επίπεδα, φτιάξτε τη προσωπική σας μέθοδο και αντιληφθείτε γιατί αυτό το project έχει το μεγαλύτερο trend στις επιθυμίες των χρηστών. Η δραστηριότητα μπαίνει σε ροή τώρα και η πρόσκληση του adventure σας αναμένει.

  5. betandplay-BreST

    trusted digital gambling platform has attracted significant focus among domestic gamblers searching for a reliable and exciting playing experience [url=https://betandplay-88.vercel.app]Bet And Play Casino Canada[/url] . Located at the address the official site, this casino showcases a vast variety of wagering choices, including slot options, traditional play, and interactive dealer sessions. Regardless you’re a seasoned enthusiast or utterly fresh to virtual gaming, the trusted platform provides a easy-to-navigate layout engineered to enhance your gaming adventure.

    One of the key features aspects of this casino is its unmatched array of play. From timeless slot titles like Big Bass Bonanza to big-money board activities such as roulette, the platform promises there’s something for any type of player. Additionally, casino evaluations frequently commend the platform for its flawless play and consistent offers, ranging from sign-up rewards, complimentary spins, and refund programs. These incentives transform it a compelling option for those seeking to increase their profits.

    For domestic enthusiasts, this trusted platform shines as a dependable option due to its alignment with local regulations and bulletproof payment options. The platform accommodates leading financial choices like debit cards, digital accounts, and cryptocurrencies coins, ensuring fast and hassle-free funds and payouts. Many Bet And Play Casino Review pieces stress the casino’s commitment to justice, with consistent checks by esteemed gaming organizations to guarantee honest and fair experience.

    Another cause why Bet And Play has earned a strong image is its superior player assistance. The platform offers live help through real-time chat, online communication, and phone contact, guaranteeing that players can efficiently address any concerns. This standard of service is often noted in casino feedback as a major advantage, particularly for those who prioritize trustworthiness and promptness.

    To summarize, the reliable site is a highly-rated option for Canadian enthusiasts hunting for a exciting, safe, and rewarding experience. With a diverse play library, plentiful promotions, and premium protection, it’s understandable that Bet And Play continues to be a top among online wagering enthusiasts. Whether you’re pursuing exciting spin or strategic board games, this site provides an engaging and fun gaming setting. Always to wager wisely and keeping your budget.

  6. Наркологическая служба рекомендует не откладывать вызов специалиста при резком ухудшении самочувствия. Врач определяет степень тяжести интоксикации и решает, возможен ли безопасный вывод из запоя на дому или больному необходимо лечение в стационаре. Особое внимание требуется пожилым людям, пациентам с сердечно-сосудистой патологией, заболеваниями печени, почек, нервной системы и тем, у кого ранее отмечались судорожные состояния.
    Изучить вопрос подробнее – [url=https://1vyvod-iz-zapoya-podolsk77.ru/]vyvod-iz-zapoya-kruglosutochno[/url]

  7. personalblog-arept

    In cazul in care esti in cautarea unei experiente captivante in lumea cazinourilor pe internet, probabil ai auzit deja despre fenomenul chicken road [url=https://personalblog-2.shakhawatsunny03.workers.dev]chicken road 2[/url] . Acest joc a reusit sa impresioneze imediat comunitatea pasionatilor de casino datorita mecanicii sale intuitive, dar extrem de tensionate. Daca vrei sa testezi platforma, poti accesa acest site pentru a vedea ce ofera acest titlu popular. Multi jucatori cauta informatii despre chicken road romania, fiind curiosi sa afle daca acest slot merita timpul si investitia lor.

    Popularitatea titlului a dus la lansarea unei versiuni noi, cunoscuta sub numele de chicken road 2, care aduce imbunatatiri grafice si functii noi pentru a mentine adrenalina la cote maxime. Pentru a lua o decizie informata, este esential sa citesti cateva chicken road pareri inainte de a incepe sa pariezi bani reali. Consultand diverse chicken road pareri forum, vei descoperi ca utilizatorii apreciaza volatilitatea jocului si posibilitatea de a obtine castiguri rapide, desi riscurile sunt pe masura. Fiecare chicken road slot are reguli specifice, asa ca intelegerea mecanismului este baza spre o sesiune de succes.

    Daca te intrebi cum se desfasoara un joc chicken road, totul se rezuma la anticiparea momentului oportun pentru a te opri, evitand obstacolele de pe drum. Este un tip de joc de tip crash care a devenit un element de baza in orice chicken road casino modern. Jucatorii experimentati cauta constant chicken road 2 pareri pentru a vedea daca noua versiune ofera strategii mai bune. In final, jocul chicken road ramane o alegere excelenta pentru cei care prefera rapiditatea si actiunea intensa. Daca analizezi cu atentie orice jocul chicken road pareri, vei observa ca balanta intre noroc si inspiratie este cheia succesului. Nu uita sa joci responsabil si sa tratezi chicken road ca pe o forma de divertisment, accesand platforma mentionata doar dupa ce te-ai informat temeinic despre riscurile si beneficiile acestui joc captivant.

  8. betandplay-sibly

    betting venue known as a standout digital betting options among local players hunting for a legitimate and exciting wagering venture [url=https://betandplay-89.onrender.com]Betandplay Casino[/url] . As an emerging brands in the online gaming industry, the Betandplay platform delivers a wide array of activities, bonuses, and a user-friendly interface tailored to appeal both occasional and dedicated enthusiasts. Whether you’re scanning feedback on Betandplay, or curious to check out the Betandplay digital casino, understanding its offerings, credibility, and benefits is essential before you place a deposit.

    A detailed look at Betandplay spotlights a venue that prioritizes ease of use and enjoyment. The site features a rich library of casino slots, card games, and live dealer options, confirming there’s something for every sort of enthusiast. A key highlight of the Betandplay digital casino is its bonus framework, which regularly features sign-up rewards, free spins, and loyalty programs. These perks can substantially enhance the gaming experience, particularly for newcomers discovering the site.

    While evaluating this casino, it’s wise to consider factors like selection of entertainment, deposit options, and support. The Betandplay digital hub typically supports major deposit methods such as digital wallets, plastic money, and cryptocurrencies, delivering choices for enthusiasts. Moreover, the site’s responsive structure ensures seamless operation on both computer and handheld equipment, resulting in easy for players on the go.

    For those seeking opinions about the casino, player feedback frequently point to the hub’s fair gameplay and safe setting. That said, like any other online casinos, it’s smart to confirm licensing and legal oversight to ensure a safe betting journey. The Betandplay platform’s standing remains to grow as additional gamblers discover its services, positioning it a remarkable choice in the fast-paced local digital betting market.

    For those who are a rookie to digital betting or a seasoned gambler searching for a new venture, Bet And Play Casino Canada offers a persuasive option. By keeping aware about its aspects, promotions, and gambler testimonials, you can form an informed decision about whether this hub aligns your likes. Prioritize wager wisely and utilize guides provided for secure gaming practices.

  9. In case you are searching for a top-tier portable betting encounter, the spinogambino app provides all features you need to enjoy your beloved games during transit [url=https://spino-gambino-review.net/app]spinogambino app[/url] . Designed with user convenience and speed in mind, this portal delivers the thrill of pro-level gaming immediately to your smartphone. If you are a newcomer or a pro gamer, the spinogambino casino app features a fluid interface that secures smooth navigation and instant loading times for all your chosen reel games and table options.

    To begin, the process is exceptionally straightforward. Many gamers choose the spinogambino app download approach because it provides immediate entry to exclusive rewards and tailored game suggestions. By choosing the casino spinogambino app, you remove the necessity for internet tools and utilize a more stable, dedicated platform for your betting sessions. The spinogambino application is perfected to function smoothly on diverse handhelds, ensuring that your journey remains high-quality regardless of your device specifications.

    For Android players specifically, the apk spinogambino package is readily available, enabling a rapid and secure deployment. After you finish the spinogambino download, you can access your account and commence browsing an vast collection of titles. The app spinogambino network is developed with advanced protection standards to protect your data and transfers encrypted, offering you complete peace of mind while you play.

    Those searching for the best way to incorporate mobile gaming into their routine schedule will discover the casino spino gambino app to be an vital companion. The spino gambino app allows for updates regarding the newest offers, so you rarely lose a lucrative chance. Experience the future of mobile wagering today by configuring the app on your handset. With its user-friendly layout and huge array of wagering choices, the application stands out as a leading selection for fans who expect excellence and accessibility in one package. Join the fanbase now and see why handheld users are making the switch to this popular wagering solution. [url=http://192.249.121.131/%7Erosedoll/forum1/index.php?topic=2095.new#new]Unlock the Premier Handheld Betting Experience with the Innovative Spinogambino App Review[/url] [url=https://www.2shane.com/index.php?topic=12939.new#new]Experience the Premier Mobile Casino Adventure with the Innovative Spinogambino App Overview[/url] 97a610d

  10. chickenroad-Unfilt

    Μήπως ψάχνετε μια καινοτόμο και συναρπαστική εμπειρία στον κόσμο των τυχερών παιχνιδιών, το chicken road είναι την κατάλληλη επιλογή για σας [url=https://chickenroad-gr-24.web.app]chicken road slot[/url] . Η πλατφόρμα που θα ανακαλύψετε στη σύνδεσμο chickenroad-gr-24.web.app προσφέρει μια ιδιαίτερη ματιά στο gaming, συνδυάζοντας την λιτότητα με την έντονη ψυχαγωγία. Το chicken road game έχει κατορθώσει να διακριθεί στην αγορά, τραβώντας καθημερινά πολλούς παίκτες που αναζητούν κάτι ξεχωριστό από τα γνωστά φρουτάκια.

    Για όσους προτιμούν για το chicken road casino, η σελίδα παρέχει ένα χώρο εντελώς φιλικό προς τον επισκέπτη, διασφαλίζοντας ότι η αναζήτηση είναι γρήγορη είτε ποντάρετε από PC ή από κινητό. Το chicken road slot ξεχωρίζει για τον μοντέρνο σχηματισμό του και τις μοντέρνες επιλογές του, οι που κρατούν το προσοχή αδιάπτωτο από το πρώτο λεπτό. Δεν είναι τυχαίο ότι το chicken road 2 θεωρείται πλέον μια από τις πιο περιζήτητες έκδοσεις της σειράς, προσφέροντας καλύτερα εφέ και ακόμα πληθωρικές δυνατότητες για διασκέδαση.

    Αν δείτε τις chicken road κριτικεσ, θα δείτε ότι οι θαυμαστές αναγνωρίζουν πάρα πολύ την φερεγγυότητα και την φρεσκάδα του session. Το chicken road game casino έχει σχεδιαστεί με ιδιαίτερο τρόπο ώστε να προσφέρει μια τίμια και θετική εμπειρία, καθιστώντας το chicken road ελλάδα μια από τις κορυφαίες επιλογές των παικτών. Η ομάδα του chickenroad μεγαλώνει σταθερά, καθώς πλήθος παίκτες γνωρίζουν τη διασκέδαση που δίνει αυτό το slot.

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

댓글 달기

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