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”의 77,109개의 댓글

  1. В этой медицинской статье мы погрузимся в актуальные вопросы здравоохранения и лечения заболеваний. Читатели узнают о современных подходах, методах диагностики и новых открытий в научных исследованиях. Наша цель — донести важную информацию и повысить уровень осведомленности о здоровье.
    Проверенные методы — узнай сейчас – [url=https://9610085.ru/zdorove/srochnyj-vyvod-iz-zapoya-v-klinike]вывести из запоя в стационаре анонимно[/url]

  2. Читатели получат представление о том, как современные технологии влияют на развитие медицины. Обсуждаются новые методы лечения, персонализированный подход и роль цифровых решений в повышении качества медицинских услуг.
    Ознакомиться с деталями – [url=https://kak-zarabotat-v-internete.com/zdorove/cena-vyvoda-iz-zapoya-na-domu.html]вывод из запоя на дому анонимно москва[/url]

  3. Статья посвящена анализу текущих трендов в медицине и их влиянию на жизнь людей. Мы рассмотрим новые технологии, методы лечения и значение профилактики в обеспечении долголетия и здоровья.
    Кликни, не пожалеешь – [url=https://netgribkov.ru/lechenie-alkogolizma-v-belgorode/]Частная наркологическая клиника В Белгороде[/url]

  4. Die Sphare von handybasierten Glucksspiels hat sich mittels der Etablierung der Spino Gambino Umgebung stark gewandelt [url=https://spino-gambinobonus.com.de/app]spino gambino[/url] . Wenn Sie nach einem hochwertigen Entertainment-Moment direkt auf Ihrem Smartphone sind, dann ist die spinogambino casino app die perfekte Option fur Sie. Diese Software prasentiert eine nahtlose Bedienoberflache, die bewusst entwickelt wurde, um Ihnen den Zugriff auf Ihre Favoriten so einfach wie denkbar zu bereitstellen. Wer sich hinsichtlich das aktuelle Entertainment begeistern lasst, sto?t an Spino Gambino keineswegs vorbei.

    Der Ablauf, um mit dem Spielen zu loslegen, ist au?erst schlicht. Massen an Nutzer bevorzugen die unmittelbare Integration via spinogambino apk, da dies eine fixe nebenbei effiziente Chance liefert, die gesamte Casino-Auswahl in die Hosentasche zu integrieren. Die spinogambino app zeichnet sich durch geringe Anlaufzeiten und eine hohe visuelle Gute aus, die auch im Bus keine Einbu?en bei der Unterhaltung eingeht. Schutz rangiert dabei an hochster Position, weshalb der Herunterladen der zertifizierten spino gambino apk immer uber die sichere Webseite erfolgen sollte.

    Nachdem eingerichtet, liefert die spinogambino casino Anwendung Einlass auf eine beeindruckende Sammlung an Slots und Live-Games. Ob Sie in den eigenen vier Wanden auf der Couchgarnitur beziehungsweise in der S-Bahn sitzen, die spino gambino app sorgt, sodass Sie niemals eine Gewinnchance verpassen. Massig Gamer wurdigen die durchdachten Menufuhrungen und die angepasste Steuerung, die das mobile Spielen zu einem gro?en Highlight machen. Wenn Sie auf der Suche nach einer konstanten Performance suchen, ist die spinogambino apk punktgenau das ideale Werkzeug fur Ihre Spielwunsche.

    Abschlie?end kann sich konstatieren, dass Spino Gambino durch ein gro?artiges mobiles Angebot uberzeugt. Mit der spinogambino app haben Sie Ihr Casino immer parat. Denken Sie darauf, stets die neueste Version der spinogambino apk zu verwenden, um von den aktuellsten Funktionen und Sicherheitsaktualisierungen zu profitieren. Erkunden Sie jetzt gleich die Fulle, die Spino Gambino zu liefern hat, und genie?en Sie erstklassiges Gaming auf einem neuen Standard. Die Mischung aus Nutzererfahrung und Spielspa? formt die App zu einem Muss hinsichtlich samtliche Liebhaber von Automatenspielen. [url=http://evsagro.com/bbs/board.php?bo_table=inquiry&wr_id=3021]Das ultimative mobile Spielvergnugen: Die neue Spino Gambino Casino App fur unterwegs[/url] [url=http://duopharm.sn/2026/07/11/inauguration-du-nouveau-siege-du-groupe-duopharm/]Das ultimative mobile Spielvergnugen: Die neue Spino Gambino Casino App fur unterwegs[/url] 5fa7732

  5. В этой статье рассматриваются способы преодоления зависимости и успешные истории людей, которые справились с этой проблемой. Мы обсудим важность поддержки со стороны близких и профессионалов, а также стратегии, которые могут помочь в процессе выздоровления. Научитесь первоочередным шагам к новой жизни.
    Ознакомьтесь с аналитикой – [url=https://moyateplica.ru/pages/stoimost-vyvoda-iz-zapoya-na-domu-moskva/]срочный вывод из запоя москва[/url]

  6. highflybet-kneef

    Discovering a trustworthy and captivating site for digital betting can really be a demanding endeavor, yet the growth of highflybet has snared the attention of plenty of gamers [url=https://highflybet-reviewlogin.org]high fly bet casino[/url] . As a prominent brand in the sector, highflybet casino offers a wide library of slots crafted to suit to either recreational participants and high rollers. Regardless of whether you are looking for traditional slots, board games, or immersive live dealer encounters, the selections available at casino highflybet are perfectly organized to ensure excellence and integrity.

    For individuals curious about the user experience, reviewing highflybet reviews is a smart opening move. These testimonials regularly highlight the platform’s simple interface, fast loading rates, and firm security rules. Numerous patrons like that high fly bet aims on creating a fluid setting where browsing is straightforward. Opening your portal is effortless via the dedicated highflybet login gateway, which is perfected to secure your private data while enabling you to dive straight into your favored titles.

    The growth of the high fly bet casino company is attributed to its loyalty to transparency and profitable deals. As a gambler, you can take advantage of diverse rewards that enhance your bankroll, transforming your session at casino high fly bet even more dynamic. Additionally, the highflybet online casino portal is fully flexible, signifying you can bring the excitement with you on your mobile device without sacrificing performance.

    It is apparent why high fly bet online casino has turned into a top spot for gamers pursuing fun. By keeping strict levels in client assistance and selection diversity, the portal confirms that each session appears novel and engaging. If you are prepared to explore a platform that matches excitement with honesty, today is the ideal time to access the site and witness what the buzz is all about. Once you complete your highflybet login, a universe of elite gaming waits, giving you the chance to enjoy a top-tier virtual session from the comfort of your own house or while on the move.

  7. Zoek je op zoek naar een nieuwe plek om online te gokken en overweeg je de mogelijkheden van het platform? In deze gedetailleerde beoordeling van kaasino duiken we dieper in wat dit platform te bieden heeft voor Nederlandse spelers [url=https://kaasino-casino-42.onrender.com]kaasino casino[/url] . Het is altijd slim om jezelf goed te informeren voordat je besluit te spelen bij een goksite zoals kaasino, vooral als je op zoek bent naar een leuke en betrouwbare spelervaring.

    Wanneer we kijken naar het online aanbod van kaasino, valt direct het gevarieerde spelaanbod op. Van traditionele slots tot spannende live casino games, het kaasino casino probeert voor ieder wat wils aan te bieden. Voor veel nieuwe gebruikers is de eerste stap de kaasino casino login. Het aanmeldproces is doorgaans eenvoudig en intuitief, waardoor je direct kunt beginnen tot je favoriete games. Veel spelers vragen zich af of kaasino betrouwbaar is. Bij het beoordelen van een platform is het altijd essentieel om te kijken naar de vergunningen, de beveiliging van transacties en de algemene reputatie in de sector.

    Voor spelers die op zoek zijn naar een specifieke ervaring bij kaasino Nederland, is het fijn om te weten dat het platform gebruiksvriendelijk is en een prettige interface biedt. Een goede beoordeling benadrukt vaak het belang van klantenservice en de snelheid van uitbetalingen. Bij online casino kaasino is dit niet anders. Het is belangrijk om altijd je eigen grenzen te bewaken en verantwoord te spelen.

    Als je overweegt om bij casino kaasino te spelen, neem dan de tijd om de kleine lettertjes goed door te lezen. Of je nu een doorgewinterde speler bent of net begint met kaasino, een goed geinformeerde speler heeft altijd een streepje voor. Bezoek de website en ontdek zelf of het aanbod aansluit bij jouw wensen. Houd altijd de verantwoordelijkheid in eigen hand en geniet van de het speelplezier die een platform zoals kaasino te bieden heeft in de online gokwereld.

  8. goplay36517-Jariami

    uno dei siti web più analizzati nel settore delle piattaforme di divertimento virtuale, specialmente tra gli appassionati di slot automatiche e luoghi digitali.

    Il sito una versione parallela di Goplay365, che viene percepito essere un duplicato o un sito speculare, ha attirato l’interesse di vari utenti italiani in cerca di bonus, valutazioni e dati certificate.

    Tuttavia, prima di a questa, è fondamentale approfondire alcuni fattori principali, come la legalità, la sicurezza e le alternative presenti sul mercato.

    Le **Goplay365 promozioni** sono di solito il principale che induce gli giocatori a iscriversi su siti come questa. Tuttavia, è necessario valutare se le offerte siano genuine o puro marketing ingannevole. Molte valutazioni su **Goplay365 recensioni** segnalano che alcune offerte possono essere restrittive da regole non trasparenti, il che fa importante leggere attentamente i particolari prima di qualsiasi bonus.

    Inoltre, molte giocatori si dubitano se **Goplay365 sia legale** in Italia. Sebbene facilmente raggiungibile, la pagina non è certificata da enti come la Commissione Italiana per le Scommesse (CIS), il che innalza domande sulla la loro reputazione e sulla protezione dei giocatori.

    Un ulteriore essenziale è la sicurezza. Molte **recensioni di Goplay365** avvertono contro eventuali frode o difficoltà di bonifico, soprattutto se si tratta di siti non autorizzati. Chi desidera una opzione più garantita potrebbe considerare le **Goplay365 alternative**, come sale autorizzati, che promettono più alta trasparenza e sicurezza dei dati sensibili.

    Tra le possibilità più trasparenti ci sono siti come WinZo, che agiscono in forma regolare e propongono offerte chiari.

    Per chi dunque vuole provare Goplay365Game, è necessario controllare se si tratta del **Goplay365 sito ufficiale** o di una copia falsa. Molti utenti si sono troviamo in pagine contraffatti che esigono bonifici anticipati senza mai erogare i incentivi annunciati. Dopodiché, è necessario analizzare le **recensioni Goplay365** più affidabili, eventualmente su gruppi dedicati o siti non affiliati, per schivare negative disavventure.

    Infine, la domanda se **Goplay365 è affidabile** risiede da numerosi aspetti, tra cui la serietà del sito, la chiarezza delle norme e la sicurezza dei informazioni privati. Se si scegliere di testare questa piattaforma, è necessario ridurre gli depositi iniziali e porre curiosità a eventuali avvertimenti di pericolo, come lenti nei pagamenti o domande di informazioni personali non verificate. In soluzione, optare per casinò con autorizzazione europea può assicurare superiore sicurezza e confidenza nel breve termine.

  9. Эта публикация раскрывает психологические механизмы зависимости и их роль в развитии расстройств. Читатель узнает о том, как психология влияет на формирование зависимостей и как профессиональная помощь может изменить ситуацию.
    Ознакомиться с теоретической базой – [url=https://ihdd.ru/narkologicheskaya-klinika-ceny]платное лечение алкоголизма в стационаре[/url]

댓글 달기

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