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

  1. Vous etes actuellement a la recherche d’une plateforme de jeux virtuels fiable et ludique ? Le site VulkanVegas s impose actuellement comme une destination de choix pour les passionnes de machines a sous et de jeux de table [url=https://vulkan-vegas-casino-26.daniellsvhellermzy367.workers.dev]Vulkan Vegas Review[/url] . Si vous vous demandez Is Vulkan Vegas Legit, sachez que cet operateur jouit d une solide reputation internationale grace a sa licence officielle et son catalogue impressionnant de titres provenant des meilleurs fournisseurs du marche.

    En lisant un Vulkan Vegas Review, on remarque rapidement que la plateforme mise tout sur l experience utilisateur. En accedant a la version francaise du site, les joueurs profitent d une interface fluide, intuitive et parfaitement adaptee aux appareils mobiles. Le Casino Vulkan Vegas propose une ludotheque variee incluant des classiques indemodables, des machines a sous a jackpot progressif et une section de casino en direct ultra realiste.

    La question de la fiabilite revient souvent dans les differents Vulkan Vegas Avis laisses par la communaute. En parcourant les Vulkan Vegas Reviews, il apparait clairement que la securite des transactions et la protection des donnees personnelles sont traitees avec le plus grand serieux. Les joueurs apprecient egalement la reactivite du service client, joignable pour repondre a chaque interrogation sur le fonctionnement du site.

    Pour ceux qui souhaitent se lancer, un Avis Vulkan Vegas positif souligne souvent la generosite des bonus de bienvenue et des programmes de fidelite. Chaque Avis Casino Vulkan Vegas met en lumiere la diversite des methodes de paiement et la rapidite des retraits, des elements cruciaux pour une experience sereine. Que vous soyez un parieur debutant ou experimente, Vulkanvegas offre un environnement securise ou le divertissement est le maitre-mot. En resume, si vous cherchez un espace de jeu complet, moderne et transparent, Vulkan Vegas Casino constitue une destination de premier choix. Prenez le temps d explorer les options offertes et voyez pourquoi tant de joueurs font confiance a cet operateur pour leurs sessions de jeu quotidiennes sur le Web.

  2. ohmyspins-effor

    Wir begrussen bei unserer detaillierten Untersuchung der Internet-Spielbank ohmyspins [url=https://ohmyspins-casino.pages.dev]recensione ohmyspins[/url] . Wenn Sie auf der Jagd nach einer neuen Webseite fur erstklassiges Gaming sind, ist das oh my spins casino eine Adresse, die Sie naher ansehen sollten. In diesem recensione ohmyspins analysieren wir, wieso dieses Portal derzeit enorm an Attraktivitat gewinnt.

    Direkt beim initialen Besuch begeistert das casino ohmyspins mittels eine moderne Design und eine intuitive Benutzeroberflache. User, die nach oh my spins erfahrungen ausschau halten, erzahlen regelmassig von einer grossen Auswahl an Slot-Games nebst Live-Casino-Angeboten. Das Sortiment deckt ab hierbei beruhmte Titel der besten Softwareentwickler, sodass fur Unterhaltung gesorgt ist. Geborgenheit sowie Vertrauenswurdigkeit ranken bei ohmyspins im Fokus, welches dank eine offizielle Lizenz dokumentiert wird.

    Ein wichtiger Punkt bei der Entscheidung eines Anbieters ist die finanzielle Abwicklung. Zahlreiche Nutzer formulieren Fragen zur ohmyspins auszahlung. Die eigene Prufung hat gezeigt, dass die Prozesse klar und schnell gestaltet sind. Mittels einer Vielzahl an Zahlungsmethoden lassen sich Gewinne unkompliziert transferieren, dies massgeblich zu den guten oh my spins casino recensioni hilft. Diese Freiheit bei Zahlungen und Auszahlungen ist zweifellos ein enormer Pluspunkt.

    Auch der Kundendienst verdient in dieser ohmyspins erfahrungen Bewertung ausdruckliche Beachtung. Bei Fragen sowie technischen Anliegen verfugt das Team permanent fur die Verfugung. Dieser Fakt sorgt fur ein serioses Zockererlebnis. Kurz gesagt lasst sich sagen, dass oh my spins eine gute Wahl fur fur frische als auch geubte Spieler ist. Die Symbiose von einem attraktiven Bonusprogramm, einer gewaltigen Spieleauswahl und einem reibungslosen Ablauf bei der ohmyspins auszahlung befordert die Plattform zu einem tatsachlichen Favoriten. Sofern Sie demnach ein exzellentes Online-Erlebnis suchen, sollten Sie sich das ohmyspins casino nicht verpassen lassen. Diese allgemeine Zufriedenheit der Kunden argumentiert fur sich zudem positioniert das oh my spins casino zu einer festen Marke in der Branche des Online-Glucksspiels. Prufen Sie das Angebot eigenstandig sowie versichern Sie sich hinsichtlich der Qualitat.

  3. В этой статье мы подробно рассматриваем проверенные методы борьбы с зависимостями, включая психотерапию, медикаментозное лечение и поддержку со стороны общества. Мы акцентируем внимание на важности комплексного подхода и возможности успешного восстановления для людей, столкнувшихся с этой проблемой.
    Узнать больше – [url=https://natali-dev.ru/zdorove/kodirovanie-ot-alkogolizma-sovremennye-metody-i-ih-effektivnost/]Нарколог кодирование от алкоголизма[/url]

  4. chicken-appaste

    popularna gra w sieci, która zyskała uwagę wielu użytkowników w naszym kraju [url=https://chicken-road-game-108.vercel.app]Is Chicken Road Opinie Legit[/url] .

    Jednak przed rozpoczaniem przygody z gry koniecznie, aby przeczytać opiniami innych osób, aby sprawdzić, czy nie jest to dobry pomysł na nią marnować energię.

    W internetach można odkryć różne recenzje gry Chicken Road, w tym także na serwisach takich jak socjotechniczne strony.

    Najczęściej zadawanym zagadnień tyczących Chicken Road jest, czy jest to prawne kasyno online. Warto podkreślić, że prawomocność zależy od regulacji kraju.

    W kraju gry losowe należy przez operatorów zarejestrowane specjalne uprawnienia.

    Chicken Road nie kwalifikuje się jako legalne kasyno online, ale to stanowi gra otwarta w browserze.

    Niektórzy osoby zastanawiają, czy recenzje gry Chicken Road okazują się bezstronne, ale należy, że każda online wirtualna zabawa za sobą niezbędne.

    Wśród doświadczenia związane z Chicken Road o hazardach można odkryć również pozytywne, oraz negatywne komentarze. Niektórzy entuzjaści uznają łatwość gry i satysfakcję, jakie stwarza jej doświadczenie, podczas gdy inni podkreślają problemy problemów z wygranymi w odniesieniu do nagród lub nieprawidłowości w kryteriach.

    Warto zwrócić uwagę, aby przypomnieć o wrażeniach internetowych użytkowników, którzy podkreślają, że zabawa stanowi bardziej dojazdem, niż uprawnionym kasynem online.

    Niektórzy użytkownicy rozważają, czy Chicken Road stanowi prawne, czyli czy warto w tym doświadczeniu prawomocnie otrzymywać nagrody.

    Zaleca się o doświadczeniach na temat kasyn, które wiele razy pojawiają się w dyskusjach online na stronach społecznościowych.

    Niektóre opinie wyrażają, że gra jest bezpieczna dla użytkowników i nie jest wymagana sprawdzenia dokumentów, co może być entuzjastów, którzy chcą zabezpieczyć anonimowość.

    Z drugiej strony w przypadku w kwestii rozrywki sieciowej, zależy, aby przypomnieć o kontroli i nie traktować jej jakby to źródło.

    W końcu, Chicken Road to zabawa, która może stanowić przyjemną zabawą, ale przed rozpoczęciem sesji jej zaczynaniem warto, aby dowiedzieć się doświadczeniami innych osób.

    Warto również pamiętać, że to nie stanowi zarejestrowane kasyno online, a zatem nie zapewnia bezproblemowych funduszy w standardowym rozumieniu tego pojęcia.

    Jeśli poszukujesz, legalnych kasyn online w Polsce, najbardziej korzystnie wybrać strony internetowe z niezbędnymi uprawnieniami i regulacjami.

    Gra to doświadczenie może stanowić niezwykłym przygodą, ale zawsze zależy, aby podchodzić do niej z rozsądkiem.

  5. spinogambinoapp-Smearce

    Η κατανόηση των όρων και των προϋποθέσεων είναι το πρώτο βήμα για κάθε χρήστη που θέλει να απολαύσει με υπευθυνότητα τις παροχές που προσφέρει το spinogambino [url=https://spinogambinoapp.gr/terms-and-conditions]spinogambino[/url] . Στη σελίδα με τους κανόνες και τις προϋποθέσεις, θα ανακαλύψετε όλες τις σημαντικές πληροφορίες που διέπουν τη λειτουργία της πλατφόρμας. Είναι απαραίτητο να διαθέσετε λίγα λεπτά για να διαβάσετε με προσοχή αυτά τα σημεία, καθώς καθορίζουν τα προνόμια και τις ευθύνες αμφοτέρων των πλευρών.

    Το spino gambino έχει σχεδιαστεί με γνώμονα τη ειλικρίνεια και την ασφάλεια, εξασφαλίζοντας ότι κάθε μέλος γνωρίζει πλήρως τι ισχύει σχετικά με τη δημιουργία λογαριασμού, τις μεθόδους κατάθεσης και ανάληψης, καθώς και τη χρήση των προσφορών. Οι όροι χρήσης που παρατίθενται καλύπτουν θέματα όπως η επαλήθευση της προσωπικότητας, η οποία είναι αναγκαία για τη διασφάλιση ενός υγιούς και αξιόπιστου χώρου στοιχηματισμού. Επιπλέον, διευκρινίζονται οι κανόνες για τον ασφαλή τζόγο, προτρέποντας τους παίκτες να περιορίζουν τη δράση τους στη συμμετοχή τους.

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

  6. Within Vincispin, we firmly believe the fact that the excitement of gaming must always continue as some constructive and fun adventure [url=https://vinci-spincasino.org/responsible-gambling]vincispin[/url] . Our dedication regarding user security stands positioned at our heart concerning the operations, a reason is that our company possess built a extensive safe play framework designed aimed at maintaining your session secure as well as enjoyable. Vinci spin is dedicated to fostering an atmosphere where members are able to play having peace of mind, knowing that we value the well-being over all else.

    Management understand the fact that for specific individuals, wagering can turn into greater than just a hobby. That is the reason our team provide an extensive range covering features plus aids intended to help every player maintain governance regarding the play habits. Via our safe play section, gamers can quickly set tailored limits regarding all payments, wagering amounts, plus session durations. Such features are designed to support you control your finances efficiently at the same time securing that the moments invested on the platform stays within the player’s preferred range. In case anyone at any time sense that the wagering activities are becoming problematic, the platform provide options regarding temporary rest periods alternatively enduring deactivation, supplying the user having any required opportunity needed to quit and seek assistance.

    Knowledge acts as one critical component concerning our strategy. We motivate each of the members aiming to acquaint themselves regarding some indicators related to gambling addiction plus to comprehend all dangers involved. By staying knowledgeable, the user are able to execute responsible choices which defend your monetary and emotional stability. If the user or someone you recognize are suffering, we provide direct connection to specialized help and counseling groups which specialize in problem support.

    At Vinci spin, your protection remains the top priority. Our tech team utilize advanced encryption technology designed to protect your information, however we additionally rely upon the community aiming to engage in aware wagering. Through employing the options provided within our platform, you can guarantee the fact that some fun associated with our games remains some leisure activity rather compared to the negative factor. Check out the responsible gambling area immediately to find out greater information about the ways to stay in governance while enjoying everything that the platform provides to offer .

  7. В этой статье мы рассматриваем разрушительное влияние зависимости на жизнь человека. Обсуждаются аспекты, такие как здоровье, отношения и профессиональные достижения. Читатели узнают о необходимости обращения за помощью и о путях к восстановлению.
    Почему это важно? – [url=http://kupidonchik.org/kakie-sushhestvuyut-sposobyi-kodirovaniya-ot-alkogolizma/]Кодирование от алкоголизма на дому[/url]

  8. chickenroadlogin-Squarma

    Quando ti muovi sulla piattaforma Chicken Road, la tua esperienza utente viene gestita mediante una amministrazione chiara ed accurata delle informazioni private [url=https://chickenroadlogin.it/informativa-sulla-privacy]Chicken Road[/url] . La pagina dedicata all informativa sulla privacy costituisce un pilastro fondamentale per questo portale, dato che il sito lavora quotidianamente nel tutelare i dati riservati di ciascun utente nel rispetto dai regolamenti in vigore in materia di trattamento dei dati.

    Il fine essenziale di tale realta consiste nell assicurare che ogni singolo ospite percepisca protezione mentre utilizza delle pagine ed i tool messi a disposizione. Tra le righe del testo sulla privacy, ChickenRoad spiega con estrema precisione quali elementi vengono raccolti, la finalita del loro uso e per quanto tempo vengono conservati. L acquisizione delle informazioni avviene esclusivamente per incrementare le opzioni della piattaforma, velocizzare la ricerca ed adattare il percorso proposto agli ospiti, costantemente in osservanza della privacy.

    L onesta rappresenta un punto cruciale per il team di Chicken Road. Ragion per cui, la sezione dedicato ai dati descrive dettagliatamente l impiego dei file di tracciamento, risorse basilari che consentono a ChickenRoad di osservare l andamento del traffico nonche di esaminare le azioni dei naviganti in forma anonima. Qualora tu voglia, hai sempre il controllo completo sulle opzioni attive mediante i settaggi del tuo strumento di rete, avendo la facolta di modificare o inibire i cookie quando lo ritieni opportuno.

    Oltretutto, il sito web fornisce agli ospiti le informazioni necessarie al fine di attuare le proprie facolta, quali ad esempio la consultazione ai dettagli privati, la correzione o la cancellazione. La stima dei fruitori costituisce per il sito il bene piu prezioso. Esplorando il documento di privacy, potrai avere l occasione di apprendere quanta dedizione venga investito per conservare ottimi livelli di protezione cyber. Proteggere la tua identita digitale non costituisce soltanto una imposizione normativa per la nostra realta, bensi una decisione consapevole che attesta l integrita e l affidabilita del progetto. Ti consigliamo di visionare attentamente l informativa totale al fine di conoscere sempre su come gestiamo i tuoi settaggi ed i tuoi dati in rete ogni qualvolta entri al nostro portale.

  9. ohmyspinsch-Evaft

    Alle, die beim Suchen nach einem modernen sowie spannenden Online Casino in der Schweiz sich befindet, kommt bei oh my spins keinesfalls herum [url=https://oh-my-spins-ch.vercel.app]recensione ohmyspins[/url] . Die Plattform oh my spins prasentiert Spielern eine grossartige Vielfalt bei Spielautomaten, Tischspielen sowie Live-Angeboten, die dabei fur jede Menge Adrenalinkick sorgen. Falls man sich selbst fur das Angebot entscheidet, findet auf der Plattform oh-my-spins-ch.vercel.app samtliche relevante Infos, die man beim Registrieren wissen muss. In einer ausfuhrlichen recensione ohmyspins zeigt sich, dass dabei das Portal nicht nur durch einen modernen Look punktet, aber auch durch einen leichten Seitenaufbau glanzt.

    Zahlreiche Spieler wollen wissen bezuglich der personlichen ohmyspins erfahrungen. Diese erweisen sich als durchweg gut aus, weil die Plattform viel Gewicht auf Schutz, Fairplay und rasche Spielablaufe legt. Ein wesentlicher Punkt fur samtliche Teilnehmer bleibt ausserdem das Thema ohmyspins auszahlung. Hier glanzt das casino ohmyspins durch rasante Transaktionszeiten und eine Auswahl mit seriosen Transferwegen, was wiederum die Vertrauensbasis der User festigt. Sobald jemand hinsichtlich oh my spins bewertungen sucht, sticht besonders das Pramiensystem hervor, das dabei sowohl Anmelder als auch langjahrige User mit attraktiven Angeboten erfreut.

    Das oh my spins casino recensioni Portfolio belegt ausserdem, dass der Anbieter in puncto Technik am Puls der Zeit arbeitet. Ganz gleich, ob man jetzt retro Fruchte-Spielautomaten mag oder aber gern bei modernen Automatenspielen seinen Erfolg versucht, die Spielauswahl ist vielseitig. Diese Webseite wurde besonders fur die helvetischen User optimiert, was das den User-Komfort massiv erhoht. Kurz gesagt lasst sich sagen, dass eben das oh my spins fur samtliche Glucksspiel-Enthusiasten eine erstklassige Wahl bildet. Die Kombination von einer grossen Spielauswahl, kompetentem Hilfe-Team sowie einem einfachen Handling der Auszahlungsbetrage formt das Portal zu einem der Favoriten in der Casinowelt. Wer personlich einen eigenen Eindruck verschaffen will, erhalt auf der genannten Webseite samtliche wichtigen Daten fur den idealen Beginn in die Welt der Online-Unterhaltung. Mit dem Casino ohmyspins bleibt der Spielspass garantiert sowie die digitale Spielhalle offnet ihre Turen fur spannende Sessions von zu Hause aus oder unterwegs.

  10. Этот обзор посвящен успешным стратегиям избавления от зависимости, включая реальные примеры и советы. Мы разоблачим мифы и предоставим читателям достоверную информацию о различных подходах. Получите опыт многообразия методов и найдите подходящий способ для себя!
    Подробнее можно узнать тут – [url=http://supreme2.ru/skryityie-puti-k-svobode-kodirovanie-ot-zavisimosti/]Нарколог кодирование от алкоголизма[/url]

댓글 달기

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