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

  1. Once you interact with the cutting-edge online tools provided by our portal, we value the protection and openness of your private data [url=https://chicken-roadpredictor.org/privacy-policy]chickenroad[/url] . The chicken road predictor is created to deliver a special recreational encounter, and our devotion to client confidentiality is described definitely in our custom privacy policy page. By accessing chicken-roadpredictor.org/privacy-policy, you might acquire a complete grasp of how we collect, control, and safeguard the data transmitted while you interact with our services.

    We recognize that users who enjoy the chickenroad mechanics value their online footprint. Our information collection practices are firmly limited to what is necessary to optimize your session on the platform. We never participate in the sale of private information to outside parties, verifying that your engagement remains a confidential and protected endeavor. The formal document details exactly which cookies we utilize to advance site utility and how these tiny files aid us render a more customized encounter whenever you revisit to the chicken road interface.

    Clarity is the foundation of our business. Whether you are a random visitor or a frequent user of the chickenroad tool, you maintain total sway over your data settings. Our privacy policy elucidates your entitlements concerning viewing, editing, and deletion of your specific information, mirroring our dedication to professional security practices. We consistently examine and modify these policies to stay in sync with shifting digital laws, verifying that your data safety is never weakened.

    We invite all visitors to educate themselves with these rules occasionally to remain informed regarding how we handle your virtual actions. By sustaining transparent dialogue regarding our data standards, we guarantee that you can focus fully on the joy of operating the chicken road predictor lacking any hidden privacy concerns. Your trust is vital to us, and we remain dedicated to supplying a clear, safe, and pleasant surroundings for anybody who investigates the capabilities of our webpage. Should you have any queries, our help desks stay available to offer further clarification about our dedication to your privacy.

  2. Whenever you are searching for a solid alongside engaging platform for sports wagering in East Africa, stop your quest than Paripesa [url=https://paripesa-27.onrender.com]pari pesa bet[/url] . Being a leading entity in the field, Paripesa Uganda has swiftly become a favored selection for players who require diversity, security, as well as competitive odds. Regardless of whether you remain a fan of football, basketball, racket sports, otherwise niche sports, Paripesa provides a complete gambling environment customized to satisfy the demands of the domestic market.

    Starting with your wagering journey is simple. To enter your profile, you simply need to execute the Paripesa Uganda login method on their official platform. Once you have completed the Paripesa login Uganda phases, you gain access to a realm of potential, spanning in-play wagers, analytical insights, plus a broad array of digital games. The layout is built to be intuitive, guaranteeing that whether you represent a newcomer alternatively a seasoned pro, you are able to navigate the page with ease.

    Numerous clients searching for Paripesa bet alternatives praise the site for its broad depth. Paripesa bet Uganda is engineered to support native habits, offering smooth funding plus payout ways that are common inside the territory. By choosing Pari Pesa, you are opting for a platform that emphasizes transparency plus user happiness. The reputation of Pari Pesa bet has been built on confidence, rapid payouts, as well as a dedicated help staff prepared to assist with any profile questions.

    For those who prioritize mobile usability, Paripesa sports betting is entirely prepared for cell phones. You are able to easily interact with your favorite tournaments directly from your phone, ensuring that you at no point lose an chance to make a bet. When you choose to wager with Paripesa UG, you are becoming part of a expanding network of winners who appreciate high-quality wagering encounters. Discover the entire range of wagering markets accessible currently as well as see why so numerous punters in the region depend on this hub for their everyday athletic excitement. Sign up for the group now to experience the ultimate excitement of professional web-based betting.

  3. fridayroll-HALGE

    Εάν διερευνάτε μια φρέσκια και μοναδική κατάσταση στον κόσμο των τυχερών παιχνιδιών, το fridayroll στέκεται εδώ για να σας παρέχει πραγματικά αυτό [url=https://fridayroll-casino-5.viktoriyakuznetsova8783.workers.dev]fridayroll κριτικες[/url] . Το fridayroll casino κατόρθωσε να κατακτήσει την εκτίμηση των μελών ένεκα την πλούσια πληθώρα παιχνιδιών και το εύχρηστο προς τον επισκέπτη interface του. Ειδικά για εκείνους που ανακαλύπτουν το ιδανικό friday roll casino, η συγκεκριμένη ιστοσελίδα υπερέχει για την γρηγοράδα των πληρωμών της και την αξιοπιστία της. Το friday roll προσφέρει μια κατάσταση που ενώνει την εξαιρετική εικόνα με τη υψίστη θωράκιση. Αν εισέρχεστε στο casino fridayroll, θα δείτε άμεσα ότι η πλατφόρμα είναι σχεδιασμένη για να προσφέρει συνεχή ευχαρίστηση σε οποιαδήποτε μηχάνημα. Αρκετοί επισκέπτες αναζητούν fridayroll κριτικες πριν από το να εισέλθουν, και τα μαρτυρίες πιστοποιούν ότι αποτελεί μια κορυφαία επιλογή. Το fridayroll καζίνο προσφέρει μια θαυμάσια λίστα από παιχνίδια και πραγματικά event που θα καλύψουν παρά τους πιο εκλεκτικούς χρήστες. Το καζίνο fridayroll στρέφει ιδιαίτερη βαρύτητα στην υποστήριξη πελατών, εγγυώμενοι ότι όλο το θέμα διευθετείται γρήγορα. Άμα δείτε ένα διεξοδικό fridayroll casino review, θα αντιληφθείτε για ποιο λόγο οι χρήστες διαλέγουν αυτή την ιστοσελίδα για το συχνό τους στοίχημα. Η επίσκεψη στις λειτουργίες είναι προσιτή, απαιτείται να διεκπεραιώσετε το fridayroll login για να εξασφαλίσετε πραγματική σύνδεση στα επιλεγμένα σας sessions και τις ξεχωριστές δώρα που ενημερώνονται πάντοτε. Η ιστοσελίδα έχει αναβαθμιστεί με σκοπό να διαθέτει γρήγορη περιήγηση, διαμορφώνοντας το διασκέδαση πιο διασκεδαστικό συγκριτικά με ποτέ. Είτε παραμένετε έμπειρος παίκτης ή νεοεισερχόμενος, το interface είναι προσαρμοσμένο να σας βοηθά με ταχύτητα. Μην χάσετε την πιθανότητα να ελέγξετε την μοίρα σας σε μια από τις πιο ανερχόμενες τοποθεσίες της χώρου. Με μέριμνα στην εχεμύθεια των ιδιωτικών πληροφοριών και το αξιόπιστο παιχνίδι, το fridayroll αποτελεί την σιγουρη πρόταση για τους παίκτες που επιθυμούν ποιοτικό online gaming. Εγγραφείτε τώρα, εισέλθετε με ασφάλεια και βρείτε έναν κόσμο γεμάτο προοπτικές και αξιόλογα χρήματα που σας καρτερούν σε οποιοδήποτε παιχνίδι.

  4. spinogambinobonus-guedge

    Looking for a novel and exciting gaming destination, many gamers are turning their attention to the Spinogambino platform [url=https://spinogambinobonus.bet]spinogambino casino[/url] . As an up-and-coming name in the digital gambling space, the spinogambino casino has rapidly grown in popularity among users looking for a wide variety of slots and table games. If you are thinking about signing up, it is beneficial to start with an objective analyse spinogambino to see what sets this platform above the competition.

    The spinogambino official site offers a user-friendly interface that focuses on accessibility and smooth navigation. Whether you are visiting the spinogambino online casino from a computer or a mobile device, the layout is designed to keep the focus on the gameplay experience. When reading various spinogambino casino reviews, players often point out the platform’s extensive game library, which features titles from trusted software providers. This dedication to quality software ensures that every session at the spinogambino casino online is both transparent and entertaining.

    Safety remains a top priority for any digital gambler, and the spino gambino brand understands this necessity. By using modern encryption protocols, the casino ensures that player data and financial transactions remain protected. A comprehensive spinogambino review typically points out that the site is well-optimized for those who prioritize speed and reliability in their gaming sessions. Furthermore, the bonuses available on the site act as a great motivator for new users to check out the catalog of games.

    Before you dive in, spending a moment to examine spinogambino features will help you set your expectations and strategy. As you compare the casino spinogambino against other major competitors, you will likely find that it offers a mix of entertainment and potential rewards. By heading to the spinogambino official site, you can get a direct view of the ongoing deals and the broad collection of featured slots. Ultimately, for those seeking a modern and fast environment, spinogambino stands out as a solid option in the crowded landscape of current online wagering sites.

  5. chickenroad-Choonia

    Jeder, der auf der Suche nach einer unterhaltsamen und spannenden Abwechslung ist, sto?t immer haufiger auf das Chicken Road Game [url=https://chickenroad-de-57.onrender.com]Chicken Road Game Casino[/url] . Dieses bekannte Game hat in der Gaming-Szene fur Aufsehen gesorgt und zieht zahlreiche Nutzer auf die Plattform Chicken Road. Viele Spieler stellen sich dabei die wichtige Frage: Ist Chicken Road vertrauenswurdig oder handelt es sich hierbei um ein gefahrliches Angebot? Wer sich auf die Suche nach Chicken Road Erfahrungen begibt, wird schnell feststellen, dass das Spiel durch sein simples, jedoch packendes Spielkonzept uberzeugt. Beim Chicken Road Spiel geht es darum, sicher uber eine Stra?e zu gelangen, wobei jede Runde den Adrenalinspiegel steigen lasst.

    Wenn Sie Chicken Road ausprobieren wollen, sollten Sie sich vorab uber die Funktionsweise informieren. Da viele Nutzer misstrauisch sind, suchen sie intensiv nach Antworten auf die Frage, ob Chicken Road echt oder fake ist. Bei einem Besuch auf der Webseite bemerkt man direkt das benutzerfreundliche Layout auf, das den Einstieg leicht macht. In der Community fur Chicken Road Deutschland wird regelma?ig diskutiert, wie fair die Gewinnchancen beim Chicken Road Slot sind. Dabei ist es wichtig, stets verantwortungsbewusst zu agieren, da der Begriff Chicken Road Game Casino oft mit realen Einsatzen verknupft wird.

    Um fundierte Chicken Road Erfahrungen zu sammeln, lohnt sich ein Blick auf die Spielweise. Als moderner Chicken Road Slot bietet das Spiel eine gro?e Spannung, die gleicherma?en Anfanger als auch Profis anspricht. Viele fragen sich: Ist Chicken Road serios genug fur eine Anmeldung? Die Plattform legt Wert auf eine ubersichtliche Gestaltung, dennoch sollte jeder Spieler fur sich selbst entscheiden, welches Risiko er beim Chicken Road Casino eingehen mochte. Abschlie?end kann man festhalten, dass das Spiel eine unterhaltsame Option fur zwischendurch darstellt. Wer das Chicken Road Spiel ausprobieren will, findet auf der genannten Seite eine direkte Anlaufstelle. Denken Sie stets daran, die eigenen Grenzen zu kennen und Spa? am Spiel in den Vordergrund zu stellen, wenn Sie sich in die Welt von Chicken Road wagen.

  6. chickenroad-Bloro

    The up-and-coming virtual playing site continues to attracted curiosity among British gamblers looking for a innovative and engaging casino journey [url=https://chickenroad-game-208.onrender.com]Chicken Road Casino[/url] . Operating on the address the gaming features a combination of classic and cutting-edge choices, targeting both occasional and hardcore players. When you’re hunting for a gaming option or merely experimenting with fresh digital playing venues, this site positions itself as an viable choice considering exploration.

    This of key aspects players usually look when reviewing a emerging playing platform is their authenticity. The concern **”Is Chicken Road Casino Legit Or Not”** is prevalent among beginners, and although the hub is perceived to be active, it’s crucial to approach it with vigilance. Compared to long-standing brands, the website is fairly unconventional, implying its long-term consistency and protection may have been as verified. Gamblers must regularly confirm legitimacy, transaction safeguards, and player testimonials before transferring live money.

    For players eager about the games, the hub delivers some extensive selection of options, covering from video slots to baccarat games, and even live operator sessions. The website looks to host the choice of popular titles, making it appealing for players who enjoy Chicken Road Casino Game Real Money gambling. That said, the level and range of games might not fall those established playing sites, so expectations are best stay grounded.

    When assessing this platform, it’s helpful to look for unbiased feedback from gamblers who had the website. While some might praise its easy-to-navigate design and choice catalogue, others may point issues about withdrawal waits or client responsiveness. A detailed assessment must include balance all the positives and negatives to deliver a fair take.

    When you’re questioning to to entertain at this hub, it’s wise to kick off with the minimal deposit to experiment the options. Many enthusiasts choose to explore this platform before pledging greater amounts. Additionally, inspecting for bonuses, perks, and safe gambling tools can guarantee ensure a balanced and thrilling journey.

    To review, This platform positions itself as the interesting alternative for UK enthusiasts looking a unconventional online gaming site. Though it might not lack equally commonly recognised as alternative gaming destinations, people involved in this casino option are encouraged to conduct personal research, examine such testimonials, and move with wary. Proactively emphasise safeguards and fairness when choosing where to entertain.

  7. Whenever it comes to picking a reliable online gaming destination, players emphasize clarity and commitment to quality. The about us page at [url=https://spino-gambinocasino.ca/about-us]spinogambino[/url] functions as a cornerstone for creating trust with its audience. By investigating this area, users obtain a comprehensive look into the fundamental values and working philosophy of spinogambino. The portal is dedicated to offering a protected, fair, and entertaining environment where players can appreciate their top slots with absolute confidence.

    At the core of the spinogambino experience is a concentration on user fulfillment and digital progress. The page showcases its commitment to employing sophisticated protection protocols to verify that all individual and banking data remains protected. This focus on safety is balanced by a vast library of top-tier titles, which are organized to meet the diverse preferences of either casual gamers and experienced pros. By fostering a environment of responsibility, spino gambino demonstrates why it is growing into a favored choice for CA gamers.

    Furthermore, the crew supporting spino gambino emphasizes the significance of responsible gaming. Their mission statement distinctly details the actions taken to encourage healthy practices, guaranteeing that the fun offered continues to be a constructive activity. This dedication to customer welfare sets the platform away in a tough market, showcasing a brand that truly respects for its community.

    If you are navigating the intuitive layout or exploring the wide betting selection, the openness provided at the about us section reinforces the legitimacy of the brand. It is this mix of market knowledge, customer-focused tools, and a clear plan for the years to come that makes spinogambino a standout destination. For those looking for an superior casino session, the information offered on their portal is a sign to the quality and integrity that describe their offerings. By consistently maintaining these high benchmarks, the staff persists to solidify its reputation as a premier option for users who appreciate each excitement and reliability in their digital gaming journey. [url=https://bikestream.cz/technika-recenze/34302-stevens-devils-trail-29.html/comment-page-1327#comment-8582785]Discovering the Fundamental Philosophy Supporting the Spino Gambino Experience at their About Us page[/url] [url=https://beminestudio.ru/product/%d0%bf%d1%80%d1%8f%d0%bc%d0%be%d0%b5-%d0%bf%d0%bb%d0%b0%d1%82%d1%8c%d0%b5-%d0%b8%d0%b7-%d0%b0%d1%82%d0%bb%d0%b0%d1%81%d0%b0-%d1%81-%d1%80%d0%b0%d0%b7%d1%80%d0%b5%d0%b7%d0%be%d0%bc-%d0%bd%d0%b0-%d0%bd/#comment-4100]Learning the Primary Mission Driving the SpinoGambino Platform at their About Us page[/url] 01efe7_

  8. spinogambinobonus-Groow

    At Spinogambino, we are dedicated to elevating the benchmarks of the online gaming sector by offering a safe, open, and exhilarating space for gamers worldwide [url=https://spinogambinobonus.bet/about-us]spino gambino[/url] . Our site was established on the principle that every user is entitled to access to top-tier gaming backed by fair play and modern tech. When you select Spino Gambino, you are choosing a gaming destination that values the needs of the community above all else. Our primary goal is to bridge the gap between high-stakes excitement and responsible gaming practices. We recognize that trust is the foundation of any successful relationship among a platform and its members. That is why our team is dedicated to guarantee that our services adhere to global standards and that every title on our site adheres to the highest standards of fairness. Honesty is the hallmark of the Spinogambino journey. Whether you are navigating our intuitive interface, browsing our diverse selection of games, or engaging with our support staff, you will find a consistent commitment to excellence and dependability. We take pride in cultivating a community where enthusiasts can enjoy their preferred games with complete peace of mind. As we expand, Spino Gambino stays dedicated to progress. We are regularly improving our infrastructure to integrate the newest features in digital security and UI/UX. Our dedication goes beyond just offering games; we strive to build a thriving network where users feel valued and heard. By listening to feedback and keeping pace with market changes, we guarantee that our site remains relevant and engaging for all new arrivals and experienced gamers. We encourage you to be a part of us on this journey as we define new standards for what an online gaming experience should look like. Explore our services today and see why so many users trust us as their preferred partner in the iGaming sphere. Your happiness and safety are our top concerns, and we are excited to assisting you every step of the way.

  9. paripesa-Frawips

    Should you are hunting for the supreme web wagering adventure in the Pearl of Africa, search nowhere else than the dynamic platform found at paripesa-28.pages.dev [url=https://paripesa-28.pages.dev]pari pesa bet[/url] . Since the domestic gambling market persists in expanding, paripesa has emerged as a premier option for thousands of local gamblers who demand dependability, favorable prices, and a simple layout. Regardless if you be a fan of soccer, court sports, or digital matches, paripesa ug delivers a comprehensive suite of options adjusted exclusively for the regional punters.

    Getting started with your wagering path is very uncomplicated. Once you browse to the site, the paripesa uganda login system is designed to be rapid and secure, guaranteeing that you might enter your dashboard and initiate stakes in just a few seconds. Should you be a novice to the venue, completing the paripesa login uganda steps is the initial portal to relishing a huge selection of global sporting events. The site is optimized to work smoothly on mobile devices, creating paripesa bet uganda the perfect companion for enthusiasts who desire to submit bets while commuting.

    For what reason do a multitude of players favor paripesa sports betting? The answer lies in the portal’s dedication to providing superb event variety and rapid withdrawals. Upon opting to join pari pesa, you are entering a community that respects transparent rules and consistent support. The dashboard allows you to navigate through various leagues with comfort, confirming that your pari pesa bet is placed right where desired.

    Safety and security continue to be the main supports of the brand. By utilizing the official interface, members can explore paripesa with confidence, knowing their financial moves are managed skillfully. Whether you are searching for the latest match statistics or looking to leverage awesome offers, this page is the top location for every bettor. Become a member of the expanding group of fans right now and witness the variation that a focused, high-quality platform provides for your sports betting activities in Uganda. Enjoy the rush of the match and win big with the top attributes ready on the web now.

  10. If you are searching to enhance your online gaming experience, finding the right incentives is vital [url=https://spin-granny-casino-bonuslogin.org/bonus]spin granny bonus[/url] . The portal is built to assist players explore the top opportunities available today. When you explore this page, you get a selection of deals that can greatly increase your playtime and increase your odds of hitting a jackpot. The casino bonus collection is particularly impressive, providing something for new players and experienced gamers of the site.

    One of the most sought-after features on the site is the free bonus offer. This type of promotion is perfect for players who wish to try the game library without risking their own money immediately. By taking advantage of this offer, you can explore multiple slots and table games while becoming familiar with the site interface. Moreover, the range of rewards is vast, guaranteeing that there is a incentive tailored to every style of play. Whether you enjoy thrilling slot machines or table games, there is a bonus waiting to be claimed.

    New players should watch for the welcome bonus, as it often gives the largest boost to your initial bankroll. This offer is frequently paired with a free spins bonus, enabling you to test top games right from the time you sign up. Keeping track of the newest promotions is the best way to ensure you always get great benefits. Because these promotions are updated frequently, loyal users to the platform benefit the most from the variety of perks. By using these incentives, you can optimize your potential returns and experience a more engaging gaming session. Check out the rewards section today to learn how to boost your account and fully enjoy everything this digital gaming site has to offer to its loyal community of players.

댓글 달기

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