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

  1. chickenroad-Gyday

    Poultry Highway Test is a well-liked web-based casino platform that has earned considerable attention among English gamblers seeking for a engaging entertainment adventure [url=https://chickenroad-uk-48.pages.dev]Chicken Road Demo Casino Review[/url] . Whether you’re novice to web-based entertainment or a skilled gambler, browsing the Poultry Road Demo version lets you experiment games free from losing genuine money.

    This trial edition is especially helpful for those who want to familiarise themselves with the layout, playing, and available titles upfront pledging to genuine-cash betting.

    An main advantage of the Clucking Highway Test is its simplicity. As a UK-focused trial hub, Poultry Lane Test UK offers a seamless session crafted for homegrown players. The demo edition replicates the entire gaming journey, encompassing a diverse range of Poultry Road Test titles, desk games, and extra trendy titles. This lets you bett Chicken Highway Preview titles online without certain monetary burden, helping you decide if the platform matches your likes.

    When considering whether Poultry Road Demo is trustworthy, it’s critical to note that demo editions are typically given by legitimate entertainment platforms to build trust and clarity. Although the demo by itself does not involve include real funds, it’s perpetually wise to research Chicken Road Demo feedback prior to signing. Many punters have published positive testimonies, acclaiming the smooth gameplay and selection of Chicken Lane Demo gaming avenues offered.

    If you’re wondering how to entertain Chicken Highway Preview, the steps is uncomplicated. Quickly access the demo site, set up an account (should essential), and kick off exploring the casino’s offerings. The Clucking Road Test slot plays, in particular, are engineered to be intuitive, making it straightforward for rookies to jump into. Whether you favour traditional spin or extra sophisticated Clucking Road Test plays, the demo mode guarantees you can appreciate them devoid of financial pressure.

    For those seeking to experiment Poultry Lane online casino features, the demo edition is an superb launching phase. It lets you sample aspects like perks, deals, and customer service before making a transfer. Many players enjoy the opportunity to watch where the Clucking Lane Test entertainment operates in a actual setting devoid of cash risk.

    For summary, the Poultry Road Demo is a outstanding way to enjoy virtual gaming betting responsibly. Whether you’re interested about Poultry Highway Test slots, looking for Entertainment Chicken Lane Test testimonials, or simply want to entertain Chicken Highway Preview plays web-based, the demo mode provides a risk-free start. Perpetually confirm you’re entertaining on a approved and beloved site to make the most of your entertainment adventure.

  2. Within the fast-paced world of digital entertainment, many Canadians are seeking a fresh and reliable platform to play their preferred titles [url=https://lucky-7even.pages.dev]lucky seven[/url] . One name that has been gaining traction recently is the site found at lucky-7even.pages.dev. Known to many as luckyseven, this destination offers a modern approach to gaming that caters specifically to those who value a sleek user interface and a wide array of options. Whether you are searching for a lucky seven casino experience that is fast-paced or simply seeking a new place to play, this platform strives to satisfy.

    When conducting a thorough luckyseven review, it becomes clear that the site prioritizes accessibility. The lucky seven casino is built to function perfectly across both computers and smartphones, ensuring that you always stay in the game regardless of where you are in Canada. As a leading lucky seven casino online, the platform focuses on providing a safe space for all users. Players often search for the lucky seven online casino options that feature easy menus and a diverse library of titles, and this site manages to hit those marks with precision.

    For those who are exploring the world of virtual gaming, the lucky 7 seven casino offers an user-friendly structure that makes getting started quite simple. The lucky seven branding is uniform across the platform, reinforcing the idea that fortune might just be a click away. While many platforms compete for your attention, the lucky seven casino distinguishes itself through its streamlined design and commitment to a smooth experience. If you are searching for a luckyseven casino that values efficiency, this site is certainly a great option. Ultimately, the lucky seven provides a well-rounded experience for enthusiasts who want to play top-tier games from the convenience of home. By maintaining a focus on performance and variety, the lucky seven continues to grow its presence in the Canadian market as a preferred spot for gaming enthusiasts.

  3. В этой статье мы рассмотрим современные достижения в области медицины, включая инновационные методы лечения и диагностики. Мы обсудим важность профилактики заболеваний и роль технологий в улучшении качества здравоохранения. Читатели узнают о влиянии медицины на повседневную жизнь и ее значение для современного общества.
    Не упусти важное! – [url=https://gurenok.ru/recepty-prigotovleniia-lepeshek-ot-kashlia-pri-bronhite/]капельницы от запоя в Белгороде[/url]

  4. If you are hunting for an exciting technique to evaluate your fortune and strategy, the plinko game has grown into one of the most trending selections in the online gaming sphere [url=https://plinko-game-113.vercel.app]plinko[/url] . By navigating to the site at plinko-game-113.vercel.app, you can encounter the excitement of this classic fun test immediately from your gadget. The concept is easy yet compelling; you send a bouncing token from the top of a pointed shape filled with obstacles, and observe as it ricochets underneath to rest in a space with a precise multiplier.

    For those interested in the competitive facet of amusement, playing plinko game online provides a rapid setting where each drop matters. Many gamers favor the virtual plinko play because it blends traits of randomness with a visually satisfying session. Provided you stay targeting for bigger stakes, many fans hunt for the cash plinko rounds choices available at different betting sites. These platforms often offer a smooth journey for users who want to play plinko with real rewards.

    A unique quality that veteran competitors frequently hunt for is a working plinko casino code or a exclusive bonus sequence. These codes can sometimes reveal bonuses or extra turns, enhancing your overall satisfaction when you interact in this wagering plinko. Because the dynamics of the falling marble seem erratic, every match feels fresh and absorbing. Regardless of if you are a novice or a veteran, the simplicity of the game plinko makes it approachable to all.

    If you want to jump into the gameplay, picking a reliable site is essential. The version provided at plinko-game-113.vercel.app gives a smooth layout for admirers of digital plinko. Keep in mind to always gamble cautiously as you are exploring the world of plinko sites. With its rising fame, there exists never existed a superior opportunity to commence your adventure and see where your destiny leads you. Explore the mechanics, refine your plan, and savor the suspense as the sphere makes its path to the finish.

  5. spinogambino-crossy

    Jeder, der auf der Suche nach einem tollen Spielerlebnis ist, kommt an den zahlreichen Moglichkeiten auf dieser Seite nicht vorbei [url=https://spinogambino-bewertung.com.de/bonus]casino-angebote spinogambino[/url] . Fur neue Spieler ist der Willkommensbonus Spinogambino oft der erste Anlaufpunkt, um mit einem attraktiven Startkapital in die Welt der virtuellen Slots zu starten. Dabei uberzeugt das Portal nicht nur durch ein breites Portfolio an Spielen, sondern auch durch transparente Konditionen bei den verschiedenen Bonusaktionen.

    Ein echtes Highlight fur viele Nutzer sind die regelma?igen Aktionen, bei denen der Bonus Spinogambino direkt fur noch mehr Spielspa? sorgt. Wer sein Gluck herausfordern mochte, sollte immer einen Blick auf die aktuellen Casino-Angebote Spinogambino werfen. Diese werden regelma?ig aktualisiert und bieten Anfangern wie auch Profis attraktive Anreize. Oftmals sind auch spannende Spinogambino Freispiele in den Paketen enthalten, die es erlauben, ausgewahlte Spielautomaten ohne eigenes Risiko zu testen und dabei echte Gewinne zu erzielen.

    Viele Spieler fragen sich zudem, ob es einen exklusiven Kein Einzahlungsbonus Spinogambino gibt. Obwohl sich solche Aktionen standig andern, lohnt sich ein regelma?iger Besuch der Bewertungsseite, um keine exklusiven Angebote zu verpassen. Ein gut gewahlter Casino-Bonus Spinogambino kann den wichtigen Vorteil machen, um die Gewinnchancen zu maximieren und langer am Spiel teilzunehmen.

    Die Plattform legt viel Wert darauf, dass Nutzer alle wichtigen Informationen zu den Bonusbedingungen ubersichtlich an einem Ort finden. Dies sorgt fur Seriositat und sorgt dafur, dass man sich voll und ganz auf das Spiel konzentrieren kann. Wenn Sie also das Maximum aus Ihrer Erfahrung herausholen mochten, sind die auf der Webseite gelisteten Boni und Aktionen ein idealer Ratgeber. Nutzen Sie die angebotenen Boni sinnvoll, achten Sie auf die Umsatzbedingungen und genie?en Sie die Vielzahl an hochwertigen Casino-Spielen, die Spinogambino zu bieten hat. Ein regelma?iger Blick auf die Bonusseite stellt sicher, dass Sie immer uber die neuesten und besten Promotionen informiert sind, um Ihr Spielerlebnis auf ein neues Level zu heben.

  6. Jeder, die auf der Jagd nach erstklassiger Vergnügung sowie aufregenden Wettmöglichkeiten ist, kommt bei einem Anbieter schwer vorbei [url=https://inter-wetten-1.onrender.com]interwetten[/url] . Interwetten hat langfristig über die Zeit wie etablierte Institution in dieser Industrie etabliert und bietet Usern die Plattform, welche sowohl Seriosität als sowie diese beträchtliche Auswahl vereint. Jeder, der dabei bezüglich dieses Programm begeistert, findet bei der Webpräsenz inter-wetten-1.onrender.com eine Möglichkeit, welche einen Einstieg leicht macht. Besonders bei Nutzer in der Schweiz bietet interwetten schweiz ein perfektes Erlebnis, welches keine Ansprüche vermissen lässt.

    Die Website punktet nicht nur durch ein breites Spektrum von Wett-Events, vielmehr auch durch ein faszinierendes interwetten casino. Dort finden Spieler eine Auswahl von aktuellsten Slots sowie klassischen Games, die für ein reales Casino-Feeling stehen. Besagtes casino interwetten besticht durch die intuitive Handhabung plus eine ehrliche Spielumgebung. Spieler, die verschiedene diversen Offerten testen beabsichtigt, hält regelmäßig für einem tollen Bonusangebot Ausschau. Ein interwetten gutschein schweiz bleibt in diesem Fall als die attraktive Möglichkeit, zwecks durch einem zusätzlichen Budget in die Welt der Automaten einzutauchen.

    Ein Zugang zu sämtlichen besagten Features gestaltet sich sehr leicht. Infolge der flotten Registrierung ermöglicht dieser interwetten login stets einen Zugang auf das individuelle Account. Egal ob Wetten oder der Sektor interwetten online casino, die Features bleiben reibungslos gegenseitig verbunden. Selbst wenn Kunden oft nach interwetten deutschland suchen, bleibt das Portfolio international bestens aufgestellt. Der Begriff inter wetten gilt global als Vertrauen, Historie und eine kompetente Service der Kunden.

    Sofern Sie Gewicht bei eine jahrelange Kompetenz sowie eine sichere Spielumgebung legen, bleibt diese Webseite die perfekte Alternative. Diese Mischung aus benutzerfreundlicher Steuerung sowie dem jederzeit aktualisierten Angebot sorgt, sodass Tristesse das unbekannte Wort bleibt. Ergreifen Sie die Gelegenheit, erkunden Sie diese Auswahl an interwetten und erleben genießen Sie, aus welchem Grund so viele Fans bei diesen Label bauen. Tauchen man ein bei dieser spannende Welt der Sportwetten plus Automaten, die bei technischem Höchstniveau direkt zu Ihnen nach Hause kommt.

  7. spinwinera-Affomb

    Spin winera je popularny online kasinovy stranka, ktory sa na slovenskom trhu postupne stava jednym z vybranych miest pre hry na peniaze [url=https://spinwinera-casino-31.vercel.app]spin winera kasino[/url] .

    Webova stranka spinwinera-casino-31.vercel.appspinwinera-casino-31.vercel.appspinwinera-casino casino digitalne ponuka siroku sľaku spinov a tabuľkovych hier, ktore lakaju hračov svojou jednoduchosťoujednoduchosťou a atraktivnymi bonusmi. Ak sa chystate zoznamiť sa s timto kasinom alebo hľadate informacie o jeho sluzbach, tento prispěvok vam pomoze ziskať konkretnejsie zavery.

    Jednym z hlavnych vyhod spin winera kasino je jeho dostupnosť pre hračov na Slovensku. Stranka je vytvorena tak, aby bola intuitivna a ľahko pracovateľna, čo je podstatne pre hračov, ktori preferuju online kasina. Hrači mozu tu najsť rozne spin winera automaticke stroje, ktore su často doplnene o zvlastne kruhy a zvysovane moznosti na vyhry. Ďalsou vyhodou je moznosť hrať na rozne tabuľkove hry, ktore dodavaju kasinu dynamiku a rozmanitosť.

    Pre hračov, ktori sa zaoberaju spin winera recenzia, je dobre vedieť, ze tento webu ponuka aj realne kasinove hry (spin winera live), ktore simuluju naladu skutočneho kasina. To je vhodne pre ty, ktori si pri hre cenia spoločnosť a skutočnosť. Ďalsie zaujimave prvky su spin winer kurzy, ktore mozu pomocť hračom porozumieť pravidlam a strategiam, alebo spin winera vysledky, ktore umozňuju pozorovať priebeh ich hry.

    Ak sa chystate začať hrať, je dobre zistiť spin winera kontakt, aky je pristupny. Niektore kasina ponukaju podporu cez diskusiu alebo e-mail, čo moze byť pomocne pri rieseni problemov alebo dotazoch. Ďalsou vyznamnou vecou je registracia a vytvorenie spin winera karty, ktora umozňuje jednoduchsie a bezpečnejsie platby. Pre hračov, ktori sa zaoberaju internetovymi kasinami, je tiez dolezite zistiť, či je kasinove miesto licencovane a bezpečne.

    Celkovo je spin winera internetove casino vhodnou volbou pre hračov, ktori hľadaju vysoke hry s skvelymi bonusmi a rychlym ovladanim. Ak ste novici, mozete začať s mensimi sazkami a postupne sa zlepsovať. Vzdy vsak pamatajte na zodpovedne hranie a nehrajte viac, ako si mozete dovoliť ztratit. Pokiaľ ste zaujateny o dalsie informacie, zistite si sami, čo tento webu ponuka a hodnotite jeho vyhody a nevyhody.

  8. chickenroad-Iderync

    Se ti definisci un cultore riguardo i titoli virtuali ma cerchi una pratica dinamica e coinvolgente, la pagina aperta tramite chickenroad-revisiones.it/demo costituisce la alternativa ideale per poter verificare le tue competenze [url=https://chickenroad-revisiones.it/demo]chicken road free play[/url] . Questo portale propone un ingresso diretto riguardo quello che numerosi considerano il caso attuale nel campo del ambito degli titoli crash. Grazie alla demo chickenroad, conquisterai l’occasione di valutare l’insieme delle le opzioni di questo software dentro un luogo garantito, senza tal impegno monetario inoltre escludendo la richiesta del eseguire ricariche tempestivi.

    Per chi desidera familiarizzare con le regole di gioco, utilizzare la tipologia demo chicken road costituisce il avviativo passo necessario. Detta variante test permette di cogliere il andamento, i valori mentre la interfaccia invitante dell’attuale prodotto, proponendo una simulazione concreta di quello cio che scopriresti presso la modalita per gioco reale. Molti iscritti amano particolarmente la opzione di dover collegarsi presso il chicken road free play, in quanto permette a di voler provare svariate metodologie operative durante completa serenita. Indipendentemente dal fatto che tu sia tale partecipante scafato sia un principiante, il sistema ti indirizza mediante approccio immediato, garantendo un svago continuo ed privo di pause.

    Decidere di saggiare chicken road gratis significa inoltre poter giocare impiegando ogni dispositivo, indifferentemente se esso un desktop o uno mobile, assicurando ogni volta la ottimale chiarezza estetica e una risposta istantanea riguardanti le tasti. Supponendo che il tuo obiettivo risulti apprendere in che modo gira la logica di gioco, non c’e nulla di superiore meglio rispetto al iniziare immediatamente nel testare la interfaccia. Quando ti riterrai preparato, sarai in grado di scegliere se provare a avanzare utilizzando le proprie strategie preferite. Non sprecare la chance di apprendere il motivo per cui la demo chicken road risulti estremamente popolare tra gli amanti del detto tipo. Accedi al dominio segnalato, lasciati trasportare nell’atmosfera del detto gioco ed parti proprio ora momento nel intrattenerti in piena tranquillita. Qualora cerchi il sistema ottimale al fine di svagarti nel proprio momento di pausa, tienilo a mente che sarai in grado di provare chicken road in ciascun attimo per mezzo di questo pratico portale, progettato specificamente studiato per tutti coloro che mira a verificare il titolo prima a ciascun diversa cosa.

댓글 달기

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