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”의 18,552개의 댓글

  1. L’univers des jeux de casino numériques continue d’étonner les passionnés via des formats innovants tout en étant vivants [url=https://chicken-road-fr-40.pages.dev]chicken road 2[/url] . Dans les options qu’on captivent actuellement les férus de loisir numérique, cet opus Chicken Road s’affirme tel un standard majeur. Accessible par la plateforme chicken-road-fr-40.pages.dev, ce divertissement propose un moment enveloppante où la stratégie croise le hasard. Le concept de ce jeu Chicken Road paraît clair mais terriblement prenant: vous devez mener votre avatar par un chemin semé d’embûches simultanément accumulant des récompenses espérés durant chaque segment passée.

    Une multitude de utilisateurs recherchent avidement chicken road casino afin de tenter leur réussite au sein de cet ouvrage réputé. Le succès de cette machine original, fréquemment appelé chicken road slot, s’appuie sur ses designs travaillés ainsi que son ergonomie lisse. Peu importe si vous êtes un connaisseur des slots traditionnels soit un nouveau venu au sein de le monde de ce chicken road jeu, le panneau ergonomique facilite une initiation instantané. L’engouement est si intense que les demandes visant chicken road game ou chicken road game casino s’envolent via les annuaires, témoignant de la loyauté de la communauté.

    À l’attention de ceux qui sont au préalable habitués à la mécanique, l’impatience concernant d’une éventuelle version chicken road 2 démontre la passion durable vis-à-vis de cette franchise. En décidant de parier au sein de la page approprié, vous rejoignez un cadre sécurisé afin de jouir pleinement du jeu. Le jeu chicken road s’illustre par sa cadence soutenu qui garantit une excitation continue, rendant chaque partie mémorable. Dans le cas où vous appartenez des gens qui saisissent régulièrement chickenroad dans leur espace de recherche, vous êtes conscient déjà que ce titre fournit l’un des meilleurs divertissements du marché présent. Ne ratez pas à côté de cette aventure divertissante laquelle combine humour ainsi que opportunités de profits. Allez sur le portail attitrée afin de comprendre pourquoi ce software s’est transformé en une icône inévitable au sein de l’industrie du jeu distant. Le chemin vers les récompenses demeure accessible, saurez-vous conduire votre volatile jusqu’au bout du chemin?

  2. spinmacho-Infush

    Provided you seek for a luxury mobile gaming adventure, the spinmacho app remains the perfect option for players who want to relish superior fun while traveling [url=https://spinmacho-login.net/app]spinmacho casino app[/url] . By opting for the spinmacho app download, you acquire quick admittance to a huge library of slots right from your handset or phablet. The layout proves expressly crafted for mobile users, confirming that browsing remains easy and playing stays smooth irrespective of your device.

    Beginning seems straightforward and quick. To start, find the spinmacho apk download alternatives provided on the official site. When you complete the apk spinmacho setup, you possess the complete control of the environment right at your disposal. The spinmacho apk appears lightweight and optimized to supply swift access, meaning you allocate minimal time delaying and further time playing your chosen machines and casino games. Many players prefer the spinmacho casino app for it grants limited mobile bonuses and boosted safety measures that keep all session protected and beneficial.

    If you are using an handset or investigating other systems, the casino spinmacho app suits your particular criteria. The process for a spin macho download is simple, and players regularly comment on how intuitive the design remains. In case you set to upgrade your gaming, run the spin macho app download presently to open a world of entertainment. With the spin macho apk installed, you might enjoy regular refreshes and the latest games without needing to go to the portal via a browser. Picking the app spin macho grants you a competitive edge by maintaining your preferences and preferred titles synced perfectly. For players focused on the best reliability, the spin macho casino app remains the norm. Simply finalize the spin macho app setup directly to become part of thousands of content gamers who completed the change to a greater mobile gambling experience. Discover the variance of a tailored design designed for ultimate satisfaction and trustworthiness.

  3. betandplay-Piptugh

    An casino known as Bet And Play is a most sought-after online casino site which is rapidly gaining respect within local gamblers searching in search of an seamless while also exciting playing experience [url=https://betandplay-65.vercel.app]Bet And Play Reviews[/url] .

    Famous with its easy-to-navigate layout and extensive array in options, this platform delivers a choice to brick-and-mortar casinos. Whether you’re a veteran enthusiast or virtual playing, this platform delivers the alternatives to match unique tastes.

    A of the features in the hub is their huge entertainment collection, that contains high-demand digital slots, classic games, and virtual hosted experiences. This hub ensures an journey through vibrant visuals and fast performance, turning this top choice for players looking entertainment.

    In terms of those curious for trustworthy feedback, this platform has upbeat testimonials for their trustworthiness while also customer team, which is essential for a virtual gaming platform.

    The site operates with tight laws to ensure honest play as well as protected exchanges. Bettors can taking advantage of of rewards while also special incentives tailored to boost one’s entertainment time, bringing extra value for any visit.

    The hub’s accessibility across most tool—no matter if the phone to desktop—makes this straightforward for enthusiasts in order to partake in one’s favourite options anytime, in any location.

    When you seek searching after a Bet And Play review, it’s pointing out how this platform treasures transparency and security, that are vital aspects to nationwide enthusiasts. By the emphasis towards offering the yet thoughtful betting setting, this platform dominates beyond a choice in the competitive digital betting arena.

    For those unacquainted with the hub, this platform delivers an environment to all gamblers. Whether you seek exploring unseen games returning to classics options, the site delivers smooth while also fun-filled session. With their dedication to superiority and gambler contentment, it’s absolutely coincidence that this platform persists in capture respect among playing lovers all over this country.

  4. chicken-Bligree

    When searching for hunting for an exhilarating and fast-paced digital adventure in PK, the chicken road game has rapidly grown into a widely loved choice. Open at [url=https://chicken-road-pk-11.web.app]chicken road game online[/url] , this portal delivers a rare thrill that keeps players returning for more rounds. If you are hunting for the classic chicken road game or the updated chicken road 2, this domain supplies a seamless layout built for resident users.

    The allure of the chicken road game online exists in its uncomplicated yet engaging mechanics. Users guide a bold chicken past a busy street, shunning vehicles to arrive at the far edge. This premise has matured into a well-known choice within the chicken road game casino type, where tactics and rhythm shape your win. For players who love the energy of a chicken road casino space, the platform gives a safe and engaging method to evaluate your reactions.

    Many gamers want a genuine chicken road game that supplies fluid performance and reliable rewards. By entering the portal at https://chicken-road-pk-11.web.app , you ensure that you are engaging with a top-tier build of the chicken road online game. The game chicken road is adjusted for all handheld and desktop clients, causing it easy to engage from any location in the region. If you have been hunting for the genuine chickenroad journey, this is the prime location to join.

    Whether you are a casual player or someone who cherishes the competitive feel of a chicken road casino, the portal accommodates all skill levels. The user-friendly operations confirm that the chicken road game continues to be easy, while the escalating intensity provides a hurdle for masters of the series. If you are prepared to measure your play talents to the max, check out the page right away. Enjoy the intensity of the chicken road online game and participate in the growing community of players who have turned this release a household name in the tech cyber arena. Jump into the realm of chicken road and see how much you can travel.

  5. spinpin-Soanupe

    When looking for a premium gaming platform that merges modern aesthetics with a extensive library of titles, the spinpin casino platform stands out as a prime choice for players in the United Kingdom [url=https://spinpin-6.pages.dev]spinpin casino review[/url] . Navigating the world of digital gambling can be overwhelming, but this operator simplifies the experience by prioritising user-friendly design and high-quality software. Regardless of if you visit the spin pin official website on your desktop or choosing to play on the go, the transition is seamless and perfected for performance.

    If you are curious about what this site offers, a thorough spinpin casino review will reveal a diverse catalogue featuring hundreds of slots, table games, and live dealer experiences. The platform is built for the user, ensuring that load times are fast and the interface remains easy to navigate. Many players searching for a spinpin review appreciate the transparent approach to gaming mechanics and the array of incentives available to both new and loyal members. The spin pin casino experience is characterised by its commitment to fair play and security, which is paramount for anyone looking to join a trustworthy spinpin online casino.

    Throughout this spin pin casino review, it becomes clear that the site values customer satisfaction. By integrating advanced encryption technology, the platform ensures that your financial transactions and personal data remain protected at all times. If you have been looking for a reliable destination, the spinpin casino environment offers a perfect blend of entertainment and reliability. Opting for the spinpin platform means experiencing high-definition graphics and smooth gameplay that sets a high standard for the industry. Whether you are a fan of classic fruit machines or the latest cutting-edge video slots, the spin pin ecosystem provides everything you need under one digital roof. Overall, those who decide to explore the spinpin site will find a all-encompassing gaming hub that supports all skill levels, making it a prominent brand in today’s competitive market.

  6. chickenroad-Cleld

    Si vous demeurez un adepte des divertissements virtuels véloces voire captivants, vous détenez assurément appréhendé du phénomène chicken road [url=https://chickenroad-fr-40.web.app]chicken road game casino[/url] . Ce divertissement, lequel s’appuie au travers de une mécanique simple mais redoutable, attire en plus en plus de parieurs désireux d’obtenir des profits immédiats. Ce concept semble limpide: vous devez absolument aider ce poulet à traverser cette chaussée parsemée d’embûches voire de menaces, tout en évitant les imprévus ceux-ci risqueraient de stopper à votre partie. La moindre phase réussie avec succès hausse votre investissement de départ, offrant cette excitation intense chaque fois.

    La interface accessible sur chickenroad-fr-40.web.app s’impose en tant que une adresse afin d’explorer votre logiciel incontournable. Que vous cherchiez le modèle standard ainsi que des nouvelles variantes comme ce second volet, le site propose cette immersion fluide ainsi que parfaitement optimisée sur vos tablettes. Un engouement pour le jeu chicken road repose par votre tension permanente tandis que votre parieur se voit choisir s’il récupère son profit ou s’il tente de continuer afin de maximiser le coefficient. Ceci est le point qui rend de ce chicken road slot une solution idéale visant les personnes qui apprécient vos divertissements fondés par la prise de risque calculée.

    En parcourant ce chicken road game casino, vous identifierez une vue ergonomique ce qui simplifie la maîtrise rapide. Ce divertissement chicken road se distingue par des graphismes clairs et cette réactivité remarquable. En cherchant ce jeu sur le web, beaucoup d’utilisateurs tombent sur la adresse puisque elle assure une expérience amusante dépourvue de fioritures. Cependant, il est néanmoins impératif de préciser le fait que à l’instar de chaque jeu d’argent, une vigilance reste nécessaire. Le monde du jeu demeure imaginé pour plaisir, ainsi veillez à miser de manière responsable. Si vous voulez tester vos réflexes voire votre sens d’analyse, connectez-vous sur ce espace pour essayer cette expérience palpitante qui séduit vos utilisateurs globalement. Disposé à traverser cette chaussée et pour accroître votre probabilité de gain immédiatement?

  7. Карта делает решения прозрачными: если критерий не достигнут, меняется ровно один параметр с назначением новой точки контроля. Это сохраняет причинно-следственную связь и уменьшает общую фармаконагрузку без компромиссов по безопасности.
    Подробнее можно узнать тут – [url=https://narkolog-na-dom-petrozavodsk15.ru/]выезд нарколога на дом в петрозаводске[/url]

  8. A top-tier web-based gaming hub noted as BetAndPlayCasino has been attracting increasing attention among homegrown bettors searching for a consistent and dynamic betting experience [url=https://bet-and-play-65.vercel.app]Bet And Play[/url] .

    Whether you’re exploring Bet And Play Casino Australia or casually reading Bet And Play Reviews, this platform delivers a diverse selection of wagering venues structured for all occasional and hardcore bettors. With a emphasis on simplicity and user-friendly elements, BetAndPlay has positioned itself as a strong force in the digital gaming market.

    Key pillar of BetAndPlay is its devotion to providing a seamless journey for Australian visitors. The portal ensures speedy response rates, silky interaction, and a intuitive design, making it straightforward for gamblers to explore through their go-to titles. No matter you’re into slot options, table play, or live dealer choices, BetAndPlay Feedback notes that the portal showcases a varied collection of choices from premier game companies. This variety assures that there’s something for everyone player, regardless they enjoy traditional games or the latest titles.

    As weighing BetAndPlay for Aussies, it’s vital to acknowledge the hub’s priority on trust. Bettors usually look trusted platforms when searching for BetAndPlay for Aussies, and this site appears to prioritize honesty with its licensing and government adherence. While BetAndPlay Verdicts could shift relied upon unique journeys, many players appreciate the portal’s clear method to bonuses and deals. These rewards may elevate the full wagering session, making it far profitable for punters.

    For newcomers fresh to web-based betting, digging into a BetAndPlay Insights can provide useful lessons into what to anticipate. The platform’s design is clean and intuitive, which supports punters to quickly locate their go-to games minimizing extra problems. Furthermore, the availability of app-based choices allows that BetAndPlay for Aussies users can savor their preferred titles on demand, if they’re in their living room or traveling.

    In summary, BetAndPlayCasino emerges as a reliable option for homegrown bettors looking a comprehensive digital betting journey. With a emphasis on user-friendliness, game selection, and user satisfaction, it’s valuable assessing for everyone looking to check out BetAndPlay Virtual or check further about BetAndPlay Feedback before finalizing a move. No matter you’re a seasoned gambler or a rookie, this site offers a ideal mix of thrills and ease.

  9. Αν αναζητάτε τον ιδανικό τόπο για ψηφιακή διασκέδαση, η πλατφόρμα SpinoGambino είναι μια εξαιρετική λύση για τον κάθε χρήστη που προτιμά την αξιοπιστία και τις πλούσιες ανταμοιβές [url=https://spino-gambinologin.gr/bonus]μπόνους χωρίς κατάθεση spinogambino[/url] . Καθώς μεταβαίνετε στην την συγκεκριμένη σελίδα για το bonus spinogambino, θα βρείτε έναν χώρο πλούσιο σε προοπτικές που μπορούν να απογειώσουν την εμπειρία σας από το πρώτο κιόλας λεπτό. Η πολυμορφία στις προσφορές είναι το κύριο όφελος του συγκεκριμένου παρόχου, το οποίο μεριμνά να ικανοποιεί τόσο τους νέους χρήστες όσο τους πιστούς μέλη.

    Αρχίζοντας το στοίχημα σας, το μπόνους καλωσορίσματος spinogambino σας χαρίζει την αναγκαία ώθηση για να ανακαλύψετε τη βιβλιοθήκη των τίτλων με μεγαλύτερο κεφάλαιο. Δεκάδες παίκτες αναζητούν επίσης τις δημοφιλείς spinogambino δωρεάν περιστροφές, οι οποίες συμπληρώνουν τακτικά τις αρχικές προσφορές και σας επιτρέπουν να δοκιμάσετε την φαντασία σας σε αγαπημένους slots χωρίς επιπλέον ρίσκο. Αν είστε φαν των slots είτε προτιμάτε τα live τραπέζια, το μπόνους καζίνο spinogambino είναι στημένο έτσι ώστε να αυξάνει τις ελπίδες σας για κέρδος.

    Επίσης, το brand ανανεώνει συχνά τις προωθητικές ενέργειες καζίνο spinogambino, χαρίζοντας εβδομαδιαίες επιστροφές χρημάτων, διαγωνισμούς και σπέσιαλ έπαθλα. Σε περίπτωση που είστε τυχεροί, ίσως ανακαλύψετε κάποιο μπόνους χωρίς κατάθεση spinogambino, το οποίο αποτελεί την μοναδική αφορμή για να δοκιμάσετε την ιστοσελίδα χωρίς να σπαταλήσετε καν ευρώ από το προσωπικό σας ταμείο. Η προστασία των καταθέσεων και η καθαρότητα στους κανονισμούς κάνουν το SpinoGambino ένα πραγματικά έμπιστο χώρο για παιχνίδι.

    Μην παραλείπετε σταματάτε να επισκέπτεστε συνέχεια τη κατηγορία με τις προσφορές, επειδή το μπόνους spinogambino ανανεώνεται συνεχώς για να διατηρεί το κέφι ακμαίο. Κάντε εγγραφή τώρα, πάρτε το προνόμιο που σας αρμόζει και απολαύστε μια συναρπαστική εμπειρία gaming με την βοήθεια ενός παρόχου που όντως ξέρει πώς να ανταμείβει το κοινό του. Η στρατηγική εκμετάλλευση των μπόνους είναι δυνατόν να γίνει ο σύμμαχός σας στην διαδρομή για μεγάλες επιτυχίες, οπότε εκμεταλλευτείτε κάθε προσβάσιμη παροχή που παρέχει το SpinoGambino για να εκκινήσετε με ορμή.

댓글 달기

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