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”의 78,457개의 댓글

  1. goplay365casino-sware

    Il piattaforma detta Goplay365 Online presenta giochi di casinò e giochi a premi, ma dopo aver prendere in considerazione la registrazione, si rende indispensabile esplorare specifiche informazioni per verificare se diventi una possibilità affidabile [url=https://go-play-365-casino.onrender.com]Goplay365 Promozioni[/url] .

    In questo esamineremo le più rilevanti caratteristiche tecniche, i feedback dei clienti e le alternative accessibili, concentrandoci su parole chiave come Goplay365 promozioni, le recensioni di Goplay365 e se Goplay365 è autorizzato.

    Il portale viene percepito come un ambiente facile da usare, ma risulta essenziale valutare se risulti davvero il sito autorizzato di Goplay365 o una versione contraffatta. Molti ricercano recensioni di Goplay365 per analizzarne la serietà, specialmente in riguardo a le campagne promozionali e alle promozioni.

    I feedback su Goplay365 sono spesso diverse: alcuni visitatori apprezzano la scelta degli sport e la semplicità di utilizzo, mentre altri mettono in luce limiti legati a l’immediatezza dei bonifici o alla mancanza degli standard definiti. Per questo motivo chi desidera Goplay365 nel Belpaese deve informarsi su possibili ispezioni da parte delle entità regolatorie territoriali, poiché la conformità di un portale può modificarsi a seconda della giurisdizione.

    Un altro cruciale risulta “Scegliere Goplay365 conviene?”. Le impressioni su Goplay365 diventano polarizzate, con molti utenti che dimostrano la solidità del servizio, mentre diversi consigliano per quanto riguarda possibili problemi. Per ridurre sorprese, conviene paragonare Goplay365 in relazione a piattaforme concorrenti, come altre piattaforme online legali, che garantiscono superiore affidabilità.

    In definitiva, nel momento in cui considerando questo portale come opzione per divertirsi via web, controlla di esaminare con attenzione le recensioni di Goplay365, accertarsi l’ufficialità di un indirizzo certificato e confrontare le offerte paragonato a altre piattaforme sicure. La affidabilità e la legalità devono risultare sempre determinanti, principalmente nel caso di bonifici e risultati.

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

  3. Wenn ihr auf einer Recherche nach der tollen Plattform fur Glucksspiele ist, sollten Sie euch das neue spinogambino casino intensiver betrachten [url=https://spino-gambino-bonus.de]spinogambino review[/url] . Dieses Portfolio wendet sich auf alle, wer innerhalb einer Welt von Glucksspielportalen die sichere und spannende Basis suchen. In dieser spinogambino review analysieren man die wichtigsten Pluspunkte, diejenigen jenes spinogambino deutschland bezuglich User bereithalt. Dieses spino gambino casino punktet vor besonders dank der intuitive Oberflache sowie die gro?e Auswahl von Spielen, diejenigen teils Evergreens sowie auch neueste Reel-Games beinhaltet. Wer euch wegen jenes casino spinogambino entschlie?t, profitiert durch der zeitgema?en technischen Struktur, welche das storungsfreies Zocker-Vergnugen garantiert.

    Massig Nutzer wollen direkt auf einer detaillierten spinogambino bewertung, damit solche Klasse sowie Seriositat dieses Betreibers einzuschatzen. Besagte fruheren spinogambino bewertungen betonen dadurch besonders den tollen Kundendienst und solche flotten Auszahlungsmethoden. Ebenso bezuglich deutsche Spieler stellt dieses spino gambino deutschland solche attraktive Adresse, da jene Seite bewusst auf die Bedurfnisse besagter Zielgruppe optimiert wurde. Sofern Sie euch fur spino gambino begeistern, konnten Sie bemerken, dass dieses spino gambino casino online dank stetige Pramien nebst reizvolle Treueprogramme punktet.

    Der weiterer Faktor, welcher fur casino spino gambino spricht, bleibt solche gro?e Schutz wahrend Ein-. Dieses spinogambino online Image erscheint professionell sowie transparent, was jenes Zutrauen der Spielergemeinde langfristig festigt. Absolut egal, ob man ein versierter Zocker ist oder blo? in solche Welt von Gaming-Seiten einsteigen, am Betreiber spinogambino erhalten samtliche nach eure Kosten. Abschlie?end kann euch feststellen, dass die Kontoeroffnung bei spinogambino sich, falls jeder Fokus auf Vielfalt sowie Soliditat setzt. Checken ihr die Webprasenz nebst uberzeugen Sie sich eigenstandig davon, weshalb das spino gambino casino bei so zahlreichen Spielern aktuell hoch im Trend liegt. Dank dessen frischen Optik sowie dem Fokus auf Entertainment setzt jener Portal andere Standards bezuglich jeden, der liebend im spino gambino casino online sein Risiko an der Prufung stellt. Versuchen Sie dies aus sowie gewinnen Sie durch dem breiten Sortiment, welches jenes Haus aufzubieten hat. [url=https://brilliantbluelogistics.com/2024/03/25/hello-world/#comment-23372]SpinoGambino Casino Erfahrungen: Fundierte Einschatzung zur angesagten Glucksspielplattform fur den hiesigen Bereich[/url] [url=http://119dongwon.com/bbs/board.php?bo_table=sub0501&wr_id=35512]SpinoGambino Testbe[/url] c98001e

  4. Публикация посвящена жизненным историям людей, успешно справившихся с зависимостью. Мы покажем, что выход есть, и он начинается с первого шага — принятия проблемы и желания измениться.
    Изучите внимательнее – [url=https://autohirebuy.ru/pages/centr-lecheniya-alkogolizma-v-moskve/]платный наркологический центр[/url]

  5. В этой статье рассматриваются различные аспекты избавления от зависимости, включая физические и психологические методы. Мы обсудим поддержку, мотивацию и стратегии, которые помогут в процессе выздоровления. Читатели узнают, как преодолеть трудности и двигаться к новой жизни без зависимости.
    Продолжить изучение – [url=https://jurywise.ru/pages/psihiatr-narkolog-na-dom/]частный нарколог на дом[/url]

  6. jackpotraider-Ecodien

    Exploring the universe of digital entertainment can seem demanding, however sites like Jackpot Raider are making an impact for devotees throughout the globe [url=https://jackpotraider-21.rekhafirandih.workers.dev]Jackpot Raider login[/url] . For those hunting for a premier gaming hub, Jackpot Raider delivers a simplified adventure designed for equally novices and expert players. Regardless of whether you are wanting to reach your beloved slots alternatively investigate live dealer titles, the workflow commences with a straightforward Jackpot Raider login, guaranteeing your adventure into this cyber arena remains as fluid as feasible.

    While performing a Jackpot Raider casino review, it appears obvious that the site emphasises player usability and convenience. Gamers often question, is Jackpot Raider casino legit? The domain functions with an emphasis upon protection as well as openness, offering confidence for individuals relishing the games. If you are navigating from the UK, Jackpot Raider UK presents a bespoke environment that satisfies the requirements of local participants who demand top-notch imagery plus reliable output.

    One of the most important elements for every loyal player is the financial portion of the journey. Worries concerning the Jackpot Raider withdrawal time are common, furthermore the platform has worked to guarantee that clearing periods stay competitive, enabling winners to withdraw their funds without unnecessary hesitation. This devotion to promptness is a core reason why numerous members mention the site in positive Jackpot Raider reviews digitally.

    The collection at casino Jackpot Raider is extensive, featuring a range of styles that suit diverse betting tastes. Starting from old-school table titles through to contemporary video slots, JackpotRaider guarantees that there is constantly something novel to find. By preserving a equilibrium among variety as well as reliability, JackpotRaider casino has developed itself as a trusted entity in the sector. If you happen to be reaching the portal through computer otherwise mobile, the consistent calibre stays the hallmark of the company. If you are looking for a novel gaming abode that esteems security, speed, as well as a broad selection of slots, exploring the options at Jackpot Raider is a logical subsequent action for each gaming enthusiast.

  7. khelakorocasino-epica

    Grasping the way a website manages your details proves essential in order to have a safe online gaming experience [url=https://khelakorocasino-casino.com/cookie-policy]khela koro[/url] . Within Khela Koro, our team emphasize transparency along with client confidentiality, the motivation the data tracking guidelines has been crafted as straightforward plus accessible. When visitors access the Khela Koro casino platform, we utilize small data packets to enhance the journey, store specific settings, together with verify that our features function smoothly across each gadgets.

    Tracking tools consist of small text files that are stored within your browser once you open our site. Such entities permit the Khela Koro casino system so it can recognize your hardware during later logins, turning the exploration faster as well as extremely personalized. By studying the way gamers interact with the titles and layout, our developers are able to perpetually optimize this site to provide the superior gambling space. We utilize both temporary files, that vanish once users close your browser, plus permanent trackers, which remain on your gadget during a set timeframe in order to maintain you logged in or recall the regional preferences.

    Security is at the center of this Khela Koro experience. We execute top-tier protocols in order to guarantee the fact that the content gathered through cookies is managed carefully along with utilized only for system, data-driven, as well as promotional purposes. We never trade the user’s personal information with outside companies. Provided you choose not to have cookies stored on the gadget, you have an possibility in order to modify your software configurations to prevent these files. Nevertheless, do understand the fact that blocking trackers could restrict your capacity in order to access specific functions plus titles on the Khela Koro casino website.

    We invite every the users to examine the full privacy documentation within the portal to stay educated about the way we safeguard your data. Through still using our site, you consent towards the employment regarding cookies the way it is described within the rules. Provided players possess specific queries about the way we process your information, the support staff stays always available to give assistance. Select Khela Koro to gain a dependable, transparent, plus enjoyable betting journey where your privacy remains our top priority.

  8. spinogambinocasino-Snape

    Der Start in die Welt der digitalen Games ist unkompliziert, sobald man die richtigen Schritte kennt [url=https://spinogambinocasino.ch/login]login spino gambino[/url] . Wenn Sie sich fragen, wie Sie reibungslos und zugig auf Ihr Spielerkonto zugreifen konnen, ist der spinogambino login der ideale Ausgangspunkt fur ein reibungsloses Erlebnis. Viele Spieler aus der Schweiz suchen nach einer einfachen Losung, um ihre Lieblingsspiele zu genie?en, und genau hier setzt der spino gambino login an. Ob Sie nun von zu Hause oder unterwegs spielen, der Prozess fur den spinogambino casino login ist so gestaltet, dass er intuitiv und sicher ablauft.

    Fur Nutzer, die nach dem spino gambino casino login Switzerland suchen, bietet die Plattform eine geschutzte Umgebung, die den strengen Anforderungen fur Glucksspiel in der Schweiz entspricht. Wenn Sie das erste Mal den login spinogambino nutzen, sollten Sie darauf achten, dass Sie Ihre Anmeldedaten vertraulich behandeln. Nach der erfolgreichen Eingabe beim login spino gambino offnet sich eine Welt voller spannender Slots und spannender Live-Casino-Angebote. Der casino login spinogambino ist der direkte Weg zu exklusiven Boni und Aktionen, die speziell fur Schweizer Nutzer bereitgestellt werden.

    Falls Sie bei dem casino spinogambino login auf Probleme sto?en, bietet die Webseite eine hilfreiche Support-Seite an. Ein sicherer spinogambino login Switzerland Prozess ist wichtig, um ein unterbrechungsfreies Spielvergnugen zu gewahrleisten. Der login spino gambino Switzerland ermoglicht es Ihnen, jederzeit auf Ihren Spielverlauf zuzugreifen und Ihre Gewinne zu verwalten. Achten Sie stets darauf, dass Sie sich nur uber die korrekte Webadresse einloggen, um Ihre Daten bestmoglich zu schutzen. Mit wenigen Klicks sind Sie bereit, die breite Palette dieser Plattform zu entdecken. Genie?en Sie die hochwertige Spielerfahrung, die Ihnen nach einem erfolgreichen Anmeldevorgang zur Verfugung steht, und tauchen Sie ein in ein innovatives Gaming-Format, das speziell auf die Bedurfnisse von Spielern in der Schweiz zugeschnitten ist. Mit einem sicheren Login steht Ihrem nachsten gro?en Gewinn nichts mehr im Wege.

  9. В этой заметке мы представляем шаги, которые помогут в процессе преодоления зависимостей. Рассматриваются стратегии поддержки и чек-листы для тех, кто хочет сделать первый шаг к выздоровлению. Наша цель — вдохновить читателей на положительные изменения и поддержать их в трудных моментах.
    Погрузиться в детали – [url=https://autohirebuy.ru/pages/centr-lecheniya-alkogolizma-v-moskve/]частный центр наркологии[/url]

댓글 달기

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