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”의 75,115개의 댓글

  1. В этой статье рассматриваются способы преодоления зависимости и успешные истории людей, которые справились с этой проблемой. Мы обсудим важность поддержки со стороны близких и профессионалов, а также стратегии, которые могут помочь в процессе выздоровления. Научитесь первоочередным шагам к новой жизни.
    Кликни, не пожалеешь – [url=https://demetra-tmn.ru/leeco-le-x920-zasvetilsia-v-benchmarke/]delta clinic ru белгород[/url]

  2. needfor-faurgem

    En caso de querer encontrar vivir momentos de juego vibrantes, has llegado al lugar indicado [url=https://needfor-slotscasino.es]need for slots[/url] . Este casino se ha convertido como una opcion lider para los amantes de las apuestas digitales. En este sitio, los usuarios encuentran un entorno seguro y vibrante donde el entretenimiento es la prioridad. Al explorar Need for slots online casino, queda claro que la oferta de opciones es uno de sus pilares fundamentales, ofreciendo una biblioteca extensa que complace tanto a jugadores principiantes como a expertos.

    Cuando realizas un repaso de esta plataforma, lo primero que destaca es la fluidez de su interfaz. Explorar su seleccion de maquinas de azar es sencillo e intuitivo, permitiendo entrar al instante a tus juegos predilectos. Este sitio es un destino imprescindible para quienes disfrutan del Need for slots online gaming, ya que combina innovacion tecnologica con un diseno adaptado a cualquier pantalla. La estetica visual y las funciones modernas son constantes en todos sus productos.

    Uno de los aspectos mas interesantes son los promociones disponibles. La plataforma se esfuerza por mantener a su comunidad activa ofreciendo promociones constantes. Entre estas, destacan los deseados Need for slots free spins, que permiten a los jugadores testear nuevos juegos sin arriesgar su propio dinero. Al leer diversos comentarios de usuarios, es facil comprender por que los usuarios eligen esta plataforma sobre otras competidoras. La transparencia y la gestion eficiente de los premios generan una seguridad total.

    La seleccion de juegos abarca desde los juegos tradicionales hasta las novedades mas recientes con botes progresivos. Sea cual sea tu preferencia, este operador garantiza momentos de diversion inigualables. Si valoras una plataforma que prioriza la justicia, la variedad y un sistema de recompensas generoso, no dudes en conocer todo lo que este operador tiene para ofrecer. Adentrate hoy mismo en este universo de juego y descubre por que tantas personas consideran a esta web como su eleccion preferida para pasar un rato inolvidable mientras buscan premios importantes.

  3. Этот обзор посвящен успешным стратегиям избавления от зависимости, включая реальные примеры и советы. Мы разоблачим мифы и предоставим читателям достоверную информацию о различных подходах. Получите опыт многообразия методов и найдите подходящий способ для себя!
    Кликни, не пожалеешь – [url=https://ego-yuriie.ru/kapelnitsa-ot-pohmelya-v-belgorode/]deltaclinic[/url]

  4. The growing surge of digital leisure virtually presented legendary arcade sessions onto our web, plus the Plinko game remains prominent acting some prime pick for users in Nigeria [url=https://plinko-game-98.web.app]Plinko game[/url] . Provided players are hunting for some exciting technique for test your luck, this platform offers an engaging experience that secures that excitement of the iconic task. Plenty of individuals regularly ask what exactly is Plinko, and the answer is straightforward: it represents the intense quest in which the Plinko ball descends via the grid-based triangle to settle inside that reward space.

    Concerning those intrigued concerning the logic, discovering how to play Plinko proves uncomplicated. You choose your stake value, drop the ball, furthermore see when it falls through the board, setting their reward based on where that settles. Individuals interested in our online Plinko session might observe where our platform provides some speedy setting that keeps that adrenaline flowing. Whether players are enjoying the relaxed round or exploring the more intense side regarding Plinko wagers, our visuals also responsiveness on our platform guarantee a fluid session.

    Many users frequently seek details about if Plinko is safe. Whenever users gamble on trustworthy platforms, the software utilizes provably fair math to confirm each drop is fair also transparent. While certain users match it with our well-known bc game Plinko, the variant offered upon this platform gives a fresh take on the classic gaming logic. Should you stay wondering regarding the possibility for winnings, playing the real money Plinko proves the popular method in order to turn fun towards cash.

    Frequently keep in mind how Plinko casino game turns must stay managed by using care. The situation is vital to establish boundaries plus gamble inside your budget as enjoying the fun regarding the activity. Provided users want in order to jump into the sphere of the Plinko universe, the webpage provides the open gateway to one of those very beloved activities within contemporary amusement. Given the basic logic and arguably significant payouts, the pastime stays some fixture for everyone desiring to experience quality internet betting at present.

  5. spinogambinobet-infarl

    La protezione dei dati personali costituisce una priorita fondamentale per tutti gli utenti che decide di navigare su piattaforme di intrattenimento online [url=https://spinogambinobet.it.com/informativa-sulla-privacy]spinogambino[/url] . Quando si esplora il portale spinogambino, e importante comprendere come siano trattate le informazioni sensibili per assicurare un’esperienza sicura, trasparente e conforme alle normative vigenti in materia di privacy. La pagina relativa alla privacy policy presente sul dominio spinogambinobet.it.com chiarisce in modo dettagliato le modalita di raccolta e trattamento dei dati rilasciati durante la navigazione o l’utilizzo dei servizi proposti.

    Il portale spino gambino si impegna costantemente a implementare misure di sicurezza avanzate per proteggere le sessioni da eventuali rischi. Consultare regolarmente questo documento e raccomandato a chiunque scelga di interagire con il sito, poiche vengono dettagliate le finalita dell’utilizzo dei cookie, le modalita di conservazione dei dati di registrazione e i diritti garantiti a ciascun utente in base al GDPR. Grazie a questa trasparente gestione dei dati, spino gambino dimostra di voler costruire un rapporto di fiducia fondato sulla correttezza e sulla professionalita, elementi chiave nel settore del gioco digitale.

    Usufruire dei servizi in modo consapevole su spinogambino significa avere il controllo completo sulle proprie preferenze. La gestione dei dati non riguarda solo la sicurezza tecnica, ma anche la personalizzazione dell’esperienza utente, sempre nel pieno rispetto della riservatezza. Se desideri capire come vengono trattati i tuoi contatti o come puoi richiedere la cancellazione o la modifica delle tue informazioni, ti invitiamo a leggere con attenzione l’informativa ufficiale situata all’indirizzo indicato. Ricorda che comprendere le condizioni d’uso e il primo passo per godersi i servizi di intrattenimento in totale tranquillita. Il sito spino gambino si conferma una realta attenta alle esigenze della propria community, ponendo la tutela della privacy al centro del proprio impegno costante per garantire un ambiente di gioco serio, protetto e conforme delle leggi sulla protezione dei dati personali.

  6. Clucking Road Test is an web-based gaming site that has captured curiosity among British punters hunting for a engrossing and immersive entertainment journey [url=https://chicken-road-uk-38.vercel.app]Chicken Road Demo Slot[/url] . Whether you’re novice to online gaming or a veteran punter, the Chicken Lane Demo version enables you to discover the options before laying live funds.

    This test edition is especially beneficial for those who want to test the Feathered Highway Spin titles, grasp the playing, and choose if the gaming site matches their likes.

    One of the primary questions many punters consider is, *Is Poultry Road Demo authentic?* While the simulation mode by itself is a reputable way to experience the options, it’s essential to check the authenticity of the gaming by itself. Respected web-based casinos sites usually provide preview functions to establish confidence and let players to adjust themselves with their games. Feathered Road Demo Reviews from players who have experienced the hub can provide precious perspectives into its justice, title range, and general user adventure.

    The Clucking Highway Demo Gaming Testimonial highlights that the preview function is particularly advantageous for wheel enthusiasts. Sampling Poultry Lane Spin games in demo edition lets you to hone techniques, appreciate exclusive aspects, and acquire a sense for the game’s earnings mechanism devoid of monetary threat. This is particularly beneficial for novices who want to grasp how to spin the Feathered Lane Title successfully in advance betting for genuine funds.

    For those intrigued about *Betting Poultry Highway Preview*, the simulation edition is a great starting point. It enables you to examine the gaming’s interface, assess out the assortment of games on offer, and observe how the hub performs. Many gamblers value the capability to *Test Poultry Lane Test* in simulation version upfront making a deposit, verifying they exclusively select a platform that meets their standards.

    If you’re searching to *Test Clucking Highway Digital Gaming* for genuine, the simulation mode is an indispensable starting phase. It assists you to make an aware call by assessing the titles, checking the demo’s justice, and grasp the gaming’s guidelines. Whether you’re interested in games, table games, or extra casino offerings, the Clucking Lane Test delivers a risk-free way to experience the site.

    In summary, the Poultry Track Preview is a invaluable resource for anyone weighing spinning at Poultry Road Casino. By using the test edition, you can discover the offerings, review *Chicken Track Demo Reviews*, and confirm you’re comfortable with the hub upfront spinning for live. This approach assists gamblers to take assured decisions and boosts their total entertainment venture.

  7. В этой статье мы говорим о важности поддержки в процессе выздоровления. Рассматриваются семьи, группы поддержки, специалисты и онлайн-ресурсы, которые могут сыграть решающую роль в избавлении от зависимости.
    Узнать больше > – [url=https://lexlawyer.ru/pages/doktor-narkolog-na-dom/]Нарколог на дом[/url]

  8. Die Recherche nach dem passenden Online Casino durfte eine Schwierigkeit werden, doch mit einem Schauen auf spino gambino wird offensichtlich, warum dieses Webprojekt immer mehr Aufmerksamkeit auf sich lenkt [url=https://spino-gambino-bewertung.de]casino spino gambino[/url] . Auf der Seite spino-gambino-bewertung.de sehen Spieler alle relevanten Informationen, um sich ein objektives Bild uber das Portfolio zu bilden. Wer sich fur das spino gambino casino entscheidet, recherchiert oft nach Seriositat, einer breiten Spielauswahl und zugigen Auszahlungen. Das spinogambino Casino erfullt viele dieser Erwartungen und zeigt sich als aktuelle Plattform fur Glucksspielfans.

    In einer detaillierten spino gambino review werden alle relevanten Aspekte analysiert, die fur lokale Nutzer wichtig sind. Das spinogambino online Angebot ist vorwiegend fur User aus spino gambino deutschland entwickelt, die Augenmerk auf eine benutzerfreundliche Oberflache und ein sicheres Spielerlebnis setzen. Wenn Sie das casino spino gambino genauer unter die Lupe nehmen mochten, liefert Ihnen die Webseite eine solide Orientierungshilfe. Das spino gambino casino online uberzeugt dabei nicht nur durch ein vielfaltiges Portfolio an Spielautomaten, sondern auch durch tolle Bonusangebote, die auf spino-gambino-casino de stetig bewertet werden.

    Viele Nutzer uberlegen sich, ob das spinogambino casino serios ist. Die spinogambino casino review auf unserer Webseite behandelt genau diese Fragen auf und testet Sicherheitsstandards sowie Lizenzen. Auch der Abschnitt spinogambino deutschland befindet sich im Zentrum, um zu gewahrleisten, dass die lokalen Anforderungen erfullt werden. Wer eine objektive spinogambino review benotigt, ist bei uns bestens aufgehoben, denn wir testen das casino spinogambino mithilfe praziser Kriterien.

    Abschlie?end ist festzuhalten, dass spino gambino eine interessante Adresse fur Spieler ist, die Abwechslung und Qualitat suchen. Durch die grundlichen Analysen auf spino-gambino-bewertung.de gehoren Sie stets informiert und konnen entscheiden, ob dieses Casino Ihren eigenen Vorlieben gerecht wird. Informieren Sie sich vor Ihrer Anmeldung uber alle Fakten, um ein sorgloses und unterhaltsames Spielvergnugen zu garantieren. Unser Ziel ist es, Ihnen mit den aktuellsten Erkenntnissen uber spinogambino zu dienen, eine kluge Entscheidung zu erzielen.

  9. Dieses Casino OscarSpin zahlt zu den aufstrebenden Anbietern im Internet, das sich durch besonders anspruchsvolles Design und eine umfangreiche Auswahl an Casino-Spielen auszeichnet [url=https://oscar-spin-3.vercel.app]oscarspin casino login[/url] . Besonders fur Kunden aus DACH-Region bietet die Website eine attraktive Alternative zu bekannten Casinos. Doch was macht Oscar Spin so einzigartig und wie funktioniert die Einschreibung oder der Zugang? Hier erfahrst du alles Wissenswerte uber das OscarSpin Casino und warum es sich auszuprobieren wert.

    Das OscarSpin Online-Casino ist beruhmt fur seine effiziente und intuitive Nutzung. Die Website ist auf Deutsch verfugbar, was besonders fur Kunden aus Deutschland einen deutlichen Pluspunkt darstellt. Mit einer gro?en Auswahl an Slots, darunter auch Live-Casino-Optionen, bietet OscarSpin Casino eine vielfaltige Palette an Unterhaltung. Besonders beliebt sind die klassischen Slots wie „Gonzo’s Quest“ oder „Book of the Dead“, die durch ihre hochwertigen Bilder und faire Auszahlungsquoten uberzeugen.

    Ein wichtiger Aspekt fur viele Kunden ist die Sicherheit und Transparenz des Casinos. OscarSpin arbeitet mit lizenzierten und uberwachten Anbietern zusammen, was fur klare Regeln sorgt. Zudem ist die Plattform auf moderne Datenschutzrichtlinien ausgelegt, sodass deine Daten sicher sind. Wer sich fur eine Registrierung entscheidet, kann sich einfach und unkompliziert anmelden, wobei die Geldeinzahlung und Geldauszahlung in mehreren Wahrungen moglich sind.

    Fur Neukunden bietet Oscar Spin oft attraktive Einstiegsangebote, die den Start unterstutzen. Ob als OscarSpin Online-Casino Einloggen oder OscarSpin Online-Casino Registrierung – die Website legt Wert auf eine benutzerfreundliche Bedienung, sodass auch Anfanger keine Probleme haben sollten. Besonders nutzlich ist die handyoptimierte Optimierung, sodass du auf dem Weg ebenfalls auf deine Lieblingsspiele zugreifen kannst.

    Falls du dich fur eine Geldruckgabe entscheidest, ist der OscarSpin Online-Casino Auszahlung meist effizient und unkompliziert. Die Ruckfuhrungsfristen hangen von der ausgewahlten Bezahlart ab, aber in der Regel erfolgt die Uberweisung innerhalb von wenigen Tagen. Wer vor der Registrierung noch unsicher ist, kann sich vorab eine OscarSpin Online-Casino Analyse ansehen, um mehr uber die Positiven- und Negativaspekte des Anbieters zu erfahren.

    Abschlie?end lasst sich sagen, dass OscarSpin eine stabile Option fur Spieler ist, die Wert auf eine moderne Online-Casino-Site mit guter Spielevielfalt und transparenten Bedingungen legen. Besonders in DACH-Region hat sich der Casino einen sehr positiven Ruf erworben, weshalb es sich lohnt, die Website einmal zu testen. Ob als Oscar Spin Online-Casino oder fur Live-Spiele – die Plattform bietet fur jeden Vorlieben das geeignete Spielangebot.

  10. Zoek je op zoek naar een unieke beleving in de omgeving van virtuele weddenschappen? Zo blijkt de site die toegankelijk is via insta-sino-12.vercel.app een platform om goed te observeren [url=https://insta-sino-12.vercel.app]instasino review[/url] . In deze instasino review bekijken we uitvoerig wat dit netwerk te presenteert voor spelers die verlangen naar kwaliteit en gebruiksvriendelijkheid. Het instasino casino staat bekend om zijn strakke vormgeving en een gevarieerde selectie aan activiteiten die zorgen voor eindeloos plezier. Hetzij dat je een geoefende gokker bent of net start, instasinocasino biedt een intuïtieve omgeving waar navigatie voorop staat. Talloze bezoekers twijfelen soms of instasino betrouwbaar is. Rekening houdend met de opbouw en de focus op een vlotte beleving, creëert de site gestaag aan een imago op het gebied van instasino casino online. Voor klanten in onze streek is het aanbod van instasino casino nederland bijzonder interessant, omdat het inspeelt op de eigen wensen van de Nederlandse sector. Wanneer je de instasino nederland ontmoeting zelf wilt proberen, is de instasino casino login eenvoudig te lokaliseren op hun website. Na het aanmelden, verschijnt een universum boordevol wisselende automaatspellen, tafelspellen en live dealer opties die het casino instasino tot een geliefde plek maken. Het systeem profileert zich door vinnige laadtijden en een responsief design, zodat je zowel op je desktop als op je tablet vloeiend kunt gokken. Het is helder dat het groep achter deze site veel aandacht heeft besteed aan de punten die voor gokkers het verschil maken. Wanneer je plannen hebt om een nieuw reis aan te gaan, dan is dit domein vast en zeker het onderzoeken waard. Door de mix van bereikbaarheid en een uitstekend aanbod aan spellen, positioneert het zich als een betrouwbare speler. Vergeet echter nooit om gedoseerd te inzetten en beleef plezier op een verstandige manier van de mogelijkheden wat deze website te bieden heeft. Zie zelf om welke reden vele anderen gaan voor de levendige mogelijkheden die dit betreffende portaal presenteert.

댓글 달기

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