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

  1. Ein relativ junge Online-Casino namens “OscarSpin” hat in den letzten Jahren an Beliebtheit gewonnen [url=https://oscar-spin-de.pages.dev]oscarspin casino online[/url] . Besonders in der Bundesrepublik suchen viele Spieler nach vertrauenswurdigen und spannenden Optionen zu langjahrigen Casinos. Doch was macht besonders OscarSpin aus und ist es wert sich eine genauere Betrachtung auf die Website?

    Hier erfahrst du alles Relevante zu diesem Casino den Pluspunkten, den Optionen zum Spielen und den wichtigsten Aspekten wie Anmeldung, Login und Geldabhebungen.

    Dieses Casino bietet eine moderne und benutzerfreundliche Spielumgebung, die sowohl auf Desktop-PCs als auch auf Tablets optimal nutzbar ist. Die Seite ist in Deutsch verfugbar, was vor allem fur deutschsprachige Nutzer ein gro?er Pluspunkt ist. Dieses Casino richtet sich an Nutzer im legalen Alter und legt Wert auf Gerechtigkeit und Datenschutz. Die Auswahl an Spielen umfasst eine Vielzahl von Glucksspielautomaten, Tischkarten und Live-Spielen, die durch lockende Bonusangebote erganzt werden.

    Ein eigener Vorteils ist das Startbonus, das neuen Kunden oft eine attraktive Einzahlungspramie oder kostenlose Drehungen bietet. Auch die Einzahlungs- und Auszahlungsmethoden sind vielfaltig, darunter Uberweisung vom Konto, Kreditkarten und E-Wallets wie Skrill oder Neteller. Die Auszahlungszeiten sind meist rasant, was fur Transparenz und Vertrauen sorgt. Wer sich fur eine Anmeldung entscheidet, sollte jedoch auf die Nutzungsbedingungen achten, da einige Spielanforderungen oft mit Spielpflichten verbunden sind.

    Fur Spieler, die sich fur dieses Casino begeistern konnen, ist ein Einloggen unkompliziert. Nach der gelungenen Anmeldung erhalt man eine Bestatigungs-E-Mail, mit der man sich anmelden und sofort mit dem Glucksspiel beginnen kann. Wer vorab mehr uber die Plattform erfahren mochte, findet zahlreiche OscarSpin Casino Reviews im World Wide Web, die von zufriedenen Spielern mit der Spielqualitat und dem Support berichten.

    Zusammengefasst: OscarSpin Casino ist eine spannende Alternative fur Gamer, die nach einem modernen Online-Casino mit vielfaltigem Spielangebot und attraktiven Bonusangeboten suchen. Besonders in Deutschland gibt es viele Spieler, die auf zuverlassige Plattformen mit deutscher Lizenz legen Wert. Dieses Casino konnte eine optimale Alternative sein, dennoch sollte man wie bei jedem Online-Anbieter die Nutzungsbedingungen detailliert prufen, bevor man sich anmeldet. Wer auf der Suche nach einem neuen Online-Casino ist, sollte sich unbedingt die Website naher ansehen und selbst testen, ob sie den personlichen Anspruchen entspricht.

  2. Whenever you are searching for a dynamic approach to challenge your luck, the Plinko game turned into a massive trend in the Nigerian market [url=https://plinko-game-100.pages.dev]Plinko game online real money[/url] . Regardless of you stay an experienced wagerer or a novice player exploring the world of virtual entertainment, understanding what is Plinko game is the first stage towards potential gains. You might savor this fast-paced excitement that presents a fluid platform for players aiming to savor the classic gameplay atmosphere.

    A multitude of people frequently inquire what is Plinko game and the cause it appears so famous. Fundamentally, it is a gamble of luck wherein you let go of a Plinko ball out of the top of a triangular surface filled with pins. As the sphere descends underneath, its route grows erratic till it settles in a hole at the floor, calculating your payout. Studying how to play Plinko is extraordinarily straightforward, causing it accessible for everybody. You simply pick your bet amount, tweak the volatility degree, plus launch the object to see where it lands.

    Regarding those keen on Plinko game online real money chances, the joy becomes heightened. Users frequently wondering in case the portal remains secure and query is Plinko legit. During engaging in Plinko gambling, it is crucial to pick reputable venues which value transparent systems. Numerous admirers of the category liken the encounter to the notable bc game Plinko, the one that aided popularize this current version of the game.

    The Plinko casino adventure is created to be aesthetically engaging as well as rewarding. Through betting on a Plinko casino game, you might transform a modest wager into a substantial return contingent on where the sphere finishes. If you are prepared to dive into the thrill, Plinko game online provides a great mix of nostalgia plus modern betting technology. Remember to wager responsibly while savoring the anticipation of the dropping object. Browse the site today to uncover the cause this uncomplicated pastime has seized the interests of players all over Naija beyond abroad.

  3. kingmaker-irraky

    Para quienes buscan una experiencia de juego premium, el casino Kingmaker se ha posicionado como una de las alternativas mas interesantes en el sector actual [url=https://kingmaker-4.14vkge0o7rgen8o3w4ak.workers.dev]kingmaker casino online[/url] . En nuestra detallada Kingmaker casino review, analizamos que hace que esta plataforma sobresalga sobre la oferta actual. Al entrar en el casino online Kingmaker, los jugadores se encuentran con una interfaz intuitiva y una seleccion de juegos que complace tanto a principiantes como a expertos. La facilidad para completar el Kingmaker casino login permite a los jugadores disfrutar de sus slots y juegos de mesa favoritos en un instante, garantizando una entrada directa hacia la diversion.

    Muchos jugadores que buscan un Kingmaker casino online de seguridad destacan la diversidad de promociones y la seguridad de la plataforma. Al revisar las opiniones sobre Kingmaker casino, es claro que la comunidad valora sobre todo la solidez del sitio y la agilidad en los procesos. Realizar el Kingmaker login es el paso inicial para acceder a un catalogo inmersivo donde el azar y la estrategia se encuentran. El ecosistema de la marca esta disenado bajo los estandares mas modernos, garantizando que cada partida sea fluida y emocionante.

    Si te cuestionas por que seleccionar kingmakercasino, la razon reside en su constante actualizacion y dedicacion a la excelencia. El sitio Kingmaker fusiona tecnologia de vanguardia con un aspecto estetico atractivo, lo que convierte king maker un referente dentro de la escena de los casinos. Tanto si te gusta jugar desde tu PC como desde smartphones, la vivencia que ofrece esta plataforma es consistente y gratificante. No es de extranar que cada vez mas jugadores elijan este casino como su destino principal para entretenerse y probar su suerte. Si estas listo para elevar tu nivel de juego, no dejes de registrarte y explorar todo lo que esta casa tiene preparado para ti. La excelencia en servicios de juego online comienza aqui, brindando entretenimiento de primer nivel al alcance de un solo clic.

  4. chickenroad-Enlinue

    If you are searching for a modern gaming destination, Chicken Road might be exactly what you need [url=https://chickenroad-login-casino.com]ChickenRoad Casino[/url] . As a rising star in the online betting world, Chicken Road Casino has quickly captured the attention of players seeking a safe and smooth environment. Whether you are a fan of classic slots, immersive table games, or live dealer experiences, the platform provides a comprehensive library that caters to all types of bettors. When you visit the ChickenRoad platform, you will immediately notice the intuitive interface designed to make signing up and playing as smooth as possible. Accessing the site via the Chicken Road login page is straightforward, ensuring that you spend less time waiting and more time playing your favorite titles. The developers who created ChickenRoad Casino have prioritized mobile compatibility, letting you experience high-quality graphics and fast loading speeds directly on smartphone or tablet. For those curious about what others think, a quick look at a Chicken Road Bewertung reveals that players particularly value the rewarding bonuses and the wide variety of payment methods offered. Security is a key aspect of the Chicken Road Online Casino experience, as the operator utilizes advanced encryption technology to protect your financial data and personal information at all times. Choosing an Online Casino ChickenRoad means opting for a trusted brand that values transparency and fair play. If you are prepared to check out the diverse gaming lobby, visiting the official Casino Chicken Road portal is your first step toward potential wins and premium entertainment. With a commitment to innovation and customer satisfaction, Chicken Road keeps growing, adding new games and promotional offers regularly to keep the community engaged. Sign up today to see why so many users are making the switch to this vibrant gaming site and discover the thrill that you can find at every turn.

  5. spinogambinobet-Brerret

    Scoprire nel mondo del betting digitale richiede una precisa comprensione delle regole che regolano le siti di gioco [url=https://spinogambinobet.it.com/termini-e-condizioni]spinogambino[/url] . Per chiunque che vogliono provare i prodotti offerti da spinogambino, e fondamentale soffermarsi alla lettura approfondita della sezione regolamentare. Questa sezione rappresenta infatti il contratto ufficiale tra il portale e il utente, definendo con chiarezza i diritti e i doveri di entrambe le soggetti. Quando si decide di entrare a spino gambino, e fondamentale conoscere delle normative che disciplinano l’apertura del conto di gioco, la movimentazione di denaro e le procedure per il prelievo delle vincite.

    La sezione dei termini e condizioni disponibile sul portale web e creata per garantire chiarezza e protezione in ogni fase dell’esperienza di navigazione. Consultare con attenzione queste norme permette di evitare incomprensioni riguardanti le offerte bonus, ai vincoli di puntata e alle restrizioni territoriali imposte dalle leggi attuali. Molto frequentemente, molti giocatori ignorano questa sezione fondamentale del sito, ma restare informati e il punto di partenza per un approccio al gioco informato e responsabile.

    Su spinogambino, le regole sono aggiornate per rispecchiare i piu elevati standard del settore. Troverete informazioni complete sulla privacy dei dati, sulla sicurezza delle informazioni e sulle misure di sicurezza che fanno si che l’ambiente sicuro per tutti gli iscritti. Sia che si parli di bonus di benvenuto o di premi per gli utenti, ogni aspetto e descritto per offrire chiarezza totale. Invitiamo tutti gli appassionati a consultare la sezione apposita delle regole su spino gambino prima di iniziare qualsiasi attivita di gioco. Tenere un atteggiamento leale e rispettare le linee guida stabilite e essenziale per godere appieno dei servizi offerte dalla piattaforma. Se avreste dubbi specifici su una norma specifica, il supporto clienti e costantemente operativo per spiegare ogni punto oscuro, garantendo in tal modo una esperienza serena e conforme all’interno del portale. La conoscenza delle normative e la base per un intrattenimento all’insegna del divertimento e della totale protezione digitale.

  6. chickenroad-Twerpag

    A online betting site famous as Roadside Gamblers Club is attracted widespread focus within the UK for its diverse range of betting options and the intuitive interface [url=https://chickenroad-uk-39.onrender.com]Play Chicken Road Casino[/url] .

    Situated at the dedicated UK gaming site, every gaming platform offers gamblers the freedom to experience a broad spectrum of playing options from the ease of their abodes. Regardless of you’re an veteran bettor or the rookie to internet gambling, this hub provides a suite of choices crafted to varied tastes.

    A major aspect that bettors often weigh when choosing an digital betting site is their legitimacy. Numerous individuals question whether the Chicken Road Gambling Den is legit instead questionable. Despite one must vital to regard all internet gaming hub with wisdom, the Chicken Road Gambling Den is perceived to remain a trustworthy hub designed for real-money playing. This adheres standard virtual wagering procedures, offering equitable gameplay and safe payments. That said, similar to with all virtual gaming hub, you should sensible to confirm its certification and security steps before committing a investment.

    For those looking to uncover Chicken Road Casino games UK, every site features a broad array of choices, covering slots, roulette, and interactive sessions. Bettors can delight in favourite selections such as genuine iterations of their beloved games choices, ensuring an immersive and exciting gaming outing. Such casino also includes comprehensive analyses of Chicken Road Casino games, guiding gamblers to construct judicious evaluations about what entertainment to try as a starting point.

    Upon assessing whether to play at Chicken Road Casino, plenty of enthusiasts seek truthful feedback to evaluate its reputation. Favourable testimonials frequently highlight the effortless gameplay, generous incentives, and helpful service team. However, you should essential to verify any feedback with external sources to guarantee accuracy. Various players have exchanged one’s feedback in UK Chicken Road forums, commending any platform’s convenience of use and equitable returns.

    For online casinos, understanding the fundamentals of the Chicken Road Gaming Hub’s mechanics workings can improve the entire journey. The venue is structured to appear user-friendly, facilitating it less daunting for rookies to navigate while still delivering advanced features for skilled gamblers. Whether you’re looking to try your chance with slot machines or dive into high-stakes table games, the Chicken Road Gambling Den delivers a balanced range.

    Put simply, the Chicken Road Gambling Den stands as this notable solution for Great Britain bettors seeking a consistent and exciting virtual wagering venture. While Chicken Road Casino reviews usually depict a favourable view, you should perpetually recommended to perform detailed research before deciding to each virtual gaming hub. By uncovering their offerings, scanning user feedback, and verifying the hub fulfils legal guidelines, gamblers can securely conclude whether Roadside Gamblers Club is every ideal alternative for themselves.

  7. Эта публикация посвящена актуальным вопросам современной медицины и здравоохранения. Мы обсудим новейшие технологии диагностики и лечения, а также их влияние на продолжительность и качество жизни. Читатель найдет здесь информацию о научных исследованиях и перспективных разработках, доступно изложенную для широкой аудитории.
    Читать дальше – [url=https://justwoman.club/kodirovanie-ot-alkogolizma-osnovnaya-polza/]Медикаментозное кодирование от алкоголизма[/url]

  8. Мы рассмотрим современные вызовы здравоохранения и пути их решения с помощью технологий и научных исследований. В статье собраны данные о новых лекарствах, методах диагностики и системном подходе к улучшению здоровья населения.
    Что скрывают от вас? – [url=https://juripedia.ru/pages/narkologicheskaya-pomosch-anonimno/]реабилитационный центр алкоголизма екатеринбург[/url]

  9. Zoek naar een verfrissende ontmoeting in de sector van online gokken? In dat geval is het slim om eens te kijken naar instasino [url=https://insta-sino-13.onrender.com]instasino casino online[/url] . Dit portaal stijgt snel aan faam bij gebruikers die op jacht zijn naar een eenvoudige en eigentijdse spelomgeving. In deze instasino review gaan we dieper in wat dit domein zo bijzonder vormt en waarom steeds meer bezoekers opteren voor deze bepaalde aanbieder.

    Indien je voor het eerst de pagina van instasino casino aandoet, merkt direct het elegante en logische layout op. Gemak staat hier duidelijk prioriteit. Hetzij je nu een ervaren speler bent of net begint, het instasino casino online is zo georganiseerd dat je moeiteloos je weg bepaalt onder de talloze aanwezige games. Van oude gokkasten tot prikkelende tafelspellen, het palet is uitgebreid en afwisselend. Met het oog op de nationale markt is er ook aanzienlijk aandacht besteed aan de behoeften van regio klanten, wat instasino casino nederland tot een sterke speler in de huidige markt bestempelt.

    Een veelgestelde vraag is uiteraard: is instasino betrouwbaar? Betrouwbaarheid en duidelijkheid zijn essentieel bij het beslissen voor een online casino. Het domein gebruikt strikte regels om te waarborgen dat jouw informatie en transacties geveild zijn. Dankzij de snelle instasino casino login verkrijg je vlug en veilig entry tot je profiel, waardoor je meteen kunt starten met gokken zonder vervelende wachttijden.

    Als je staart naar instasino nederland, vervolgens besef je een combinatie van een enorme gamecollectie en een klantvriendelijke visie. Het platform blijft ontwikkelen en geeft gokkers een milieu alwaar genot en verantwoord spelen samen gaan. Voor iedereen die instasinocasino eens wil proberen, is de ondergrens minimaal en de beleving vaak gunstig. Hetzij je nu op zoek bent naar de nieuwste slots of wellicht de traditionele casino ervaring begeert ondergaan, casino instasino levert de perfecte balans van fun en comfort. Word je klaar om je kansen te testen bij dit groeiende platform? Verken het eigenhandig en proef de waardevolle aspecten van dit aantrekkelijke online casino.

  10. Wenn Sie auf der Jagd nach den optimalen Angeboten in der Welt der Online Casinos sind, gelangen Sie an Spino Gambino schwer vorbei [url=https://spino-gambino-bewertung.de/bonuses]spinogambino bonuscode[/url] . Die Webseite hat sich zugig einen Ruf erarbeitet und lockt Spieler mit einer gro?artigen Palette an Games und verlockenden Promotionen an. Wer sich fur das Programm interessiert, durfte einen Moment auf die hauseigenen Bonusbereiche werfen, weil sich ein adaquater Spino Gambino Bonus oft als wahrer Vorteil erweist. Ganz gleich ob Sie nach einem traditionellen Einzahlungsbonus suchen oder von unterhaltsamen Aktionen profitieren mochten, an dieser Stelle werden Sie fundig.

    Besonders begehrt sind bei frisch registrierten Spielern immer wieder Bonusaktionen, fur die keine personliche Transaktion notig ist. Recherchieren Sie bewusst nach einem Spino Gambino No Deposit Bonus Code, um frei von finanzielles Gefahr fruhe Kenntnisse zu erlangen. Zusatzlich Spino Gambino No Deposit Bonus Codes werden periodisch auf der Plattform publiziert und erlauben einen sicheren Start. Applizieren Sie bei der Kontoeroffnung einen gultigen Spinogambino Bonus Code oder den aktuellen Spinogambino Promo Code, um Ihr Startguthaben sofort zu maximieren.

    Fur langjahrige Klienten gibt es erganzend haufig besondere Spinogambino Freispiele, die speziell an beliebten Slots fur zusatzliche Unterhaltung beitragen. Ebenso die Spino Gambino Freispiele sind ein Highlight, das Sie sich nicht entgehen lassen sollten. Konzentrieren Sie bei der Aktivierung immer auf den exakten Spino Gambino Bonuscode, damit die Zuweisung glatt erfolgt. Ein kluger Spino Gambino Promo Code kann den Unterschied zwischen einem durchschnittlichen Spielerlebnis und einem echten Jackpot-Abenteuer darstellen.

    Zusammenfassend lasst sich behaupten, dass ein Check auf Spino Gambino Casino No Deposit Bonus Codes immer rentiert, vor Sie Ihre anfangliche Einzahlung tatigen. Die Bandbreite an Promotions, die mit dem Spinogambino Bonus verknupft sind, ist uberdurchschnittlich umfangreich. Orientieren Sie sich kontinuierlich auf der Webseite uber die frischesten Spinogambino Bonuscode Optionen und tatigen Sie jeden Spino Gambino Bonus Code intelligent aus. Mit dem passenden Spinogambino Bonus beginnen Sie mit einem erheblichen Vorsprung in Ihr kommendes Spielabenteuer. Holen Sie sich noch heute Ihren personlichen Bonus-Vorteil und erleben Sie, weshalb so unzahlige User auf Spino Gambino vertrauen.

댓글 달기

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