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”의 67,738개의 댓글

  1. Diese Kosmos des digitalen Casinobetriebs entwickelt den Markt rasant weiter sowie offeriert Zockern stetig innovative Moeglichkeiten fur exzellente Kurzweil [url=https://moro-spin-38.vercel.app]moro spin casino[/url] . Jene Anlaufstelle, welche aktuell fur Interesse sorgt, ist morospin. Uber der Domain moro-spin-38.vercel.app finden Nutzer ein zeitgema?es Angebot, das mit der intuitiven Bedienung plus einer Vielzahl an mitrei?enden Games punktet. Wenn Sie auf der Recherche auf einem tollen moro spin Casino Erlebnis ist, liefert das Angebot einen tollen Weg zu einer bunten Welt von Reels und Automatenspielen.

    Vornehmlich fur Gamer aus dem deutschsprachigen Raum bleibt morospin deutschland derzeit ein interessanter Zielort. Besagtes morospin online Gaming-Haus wurde dazu eingerichtet, das nahtloses Spielerlebnis direkt per Web-Interface zu gewahrleisten, ohne wie schwierige Installationen zwingend sind. Jedes moro spin casino zeichnet sich durch der optimierte Geschwindigkeit und der intuitive Bedienung hervor, was einerseits Anfanger als sowie versierte User unterhalt. Verlasslichkeit sowie Fairness liegen fur morospin de grundsatzlich immer an Fokus, sodass sich alle Spieler komplett samt stark bei das Spielspa? konzentrieren wollen.

    Ein zentrales Kriterium bei die Suche nach dem richtigen Betreibers ist grundsatzlich die Sicherheit fur Ein- und Auszahlungen. Jeder, der auf Daten zur moro spin auszahlung sucht, findet auf morospin kasino offene Ablaufe, was darauf optimiert sind, Ertrage geschutzt sowie schnell zu transferieren. Dies ist einen entscheidender Grund, wieso immer zunehmend User moro spin deutschland als ihre bevorzugte Plattform wahlen. Diese Symbiose von dem abwechslungsreichen Angebot, einem modernen Design und einem direkten Start formt jene Prasenz als einer tollen Alternative im Sektor der virtuellen Zerstreuung.

    Falls man neugierig aufgekommen sind, zahlt sich der Abstecher bei der Domain, um sich eigens das Bild von das Angebot und verschaffen. Egal, obwohl ihr klassische Reels oder aktuelle 3D-Spiele bevorzugen, das morospin Casino bietet fur individuellen Bedurfnis das Richtige. Gehen Sie los in die jener Sphare von morospin zudem erfahren man, warum dieses Casino aktuell in aller Munde ist. Bedenken Sie daran, kontrolliert und zocken und das Unterhaltungspotenzial im Mittelpunkt zu stellen, indem ihr die Auswahl an moro spin nutzen.

  2. Основные задачи
    Изучить вопрос глубже – [url=https://lechenie-alkogolizma-krasnodar00.ru/]наркология лечение алкоголизма[/url]

  3. Вывод из запоя — это управляемая медицинская процедура, где каждая деталь важна: от скорости выезда до состава инфузии и «тихой» среды дома. В наркологической клинике «КазаньДетокс Медлайн» мы придерживаемся принципа поэтапной стабилизации: сначала безопасный старт и оценка рисков, затем прицельные капельницы и, при необходимости, краткосрочное наблюдение. Такой подход исключает «универсальные коктейли» и делает результат прогнозируемым: снижение интоксикации, выравнивание вегетативных реакций, восстановление сна и аппетита. Анонимность встроена в протоколы: немаркированный выезд, лаконичная документация, один доверенный контакт для связи 24/7, нейтральные формулировки без стигмы.
    Получить дополнительные сведения – [url=https://vyvod-iz-zapoya-v-kazani16.ru/]анонимный вывод из запоя в казани[/url]

  4. El juego *”El Desafío del Pollo”* ha despertado atención en los últimos períodos, notablemente entre los amantes de los juegos que desean excitación de moda [url=https://chicken-road-es-54.vercel.app]Chicken Road Es Real[/url] .

    No obstante, varios participantes se dudan si *”La Carretera de los Pollos”* es real, u si se trata de un fraude. En este artículo, revisaremos el dominio *”elservidordechickenroad.es” y explicamos a las dudas comunes sobre este aplicación, tal como *”¿El juego de Chicken Road es real o falso?”* además *”¿El Desafío del Pollo es legítimo o un timo?”*.

    Dicha página en consideración es una adaptación adaptada de la plataforma *”Road Pollos”*, en el que se desafía un desafío en línea en el que los participantes deben evitar tocar impedimentos a lo largo de se mueven en camino.

    A pesar de el juego resulta accesible, Esta popularidad ha generado incertidumbre acerca de su veracidad. Algunos jugadores asumen que *”Chicken Road”* no es ficticio ya que se percibe una aplicación de manejo fidedigna, aunque constituye una representación tecnológica aislada del mundo físico.

    El interrogante *”¿El Desafío del Pollo es auténtico?”* suele levantarse ya que el desafío simula momentos críticas, por ejemplo superar a otros coches, y detenerse en el último momento. Aun así, se considera crítico explicar que *”Chicken Road”* no es inventado en su versión virtual, no obstante no tiene impacto en la realidad física. No es una aplicación con premios, ni un timo de dinero, en cambio una actividad centrada en reflejos y tácticas.

    En caso de que te preocupe *”¿El juego de Chicken Road es real o falso?”*, la respuesta es constituye una aplicación digital sin repercusiones materiales. No se encuentran premios económicos, ni por supuesto relación con el mundo físico, de ahí que no puede ser etiquetado como un timo. Aun así, resulta crítico participar con precaución, ya que determinados internautas acostumbran a malinterpretarlo como una prueba peligroso fuera de lo virtual.

    Para concluir, *”Chicken Road”* no es ficticio en su adaptación digital, sin embargo no tiene vínculo con la realidad. En caso de que busques entretenimiento sin riesgos, este experiencia representa una elección acertada, bajo la condición de que lo vivas de manera responsable. Si te interesa experimentarlo, verifica que jugar en un ámbito controlado y sin distracciones a fin de no accidentes digitales.

  5. spinogambino-Diopay

    Our digital iGaming landscape remains continually changing, and aimed at enthusiasts searching for one premium experience while traveling, that spinogambino app offers the seamless entry towards first-class fun [url=https://spinogambino-casinogame.com/app]spinogambino apk[/url] . If you are aiming towards elevate these betting rounds, picking the ideal venue is essential. Via opting for the spinogambino mobile interface, users get entry to one vast array featuring titles refined exclusively designed for portable gadgets. This confirms that graphics remain crisp plus gameplay continues seamless, ignoring your screen dimensions plus system specifications.

    In order to commence, the spinogambino download procedure appears built with top ease. Regardless of if gamers might be employing some device plus a smartphone, that spino gambino app offers that user-friendly layout that makes searching straightforward. Numerous enthusiasts prefer that freedom of that spinogambino apk due to the fast deployment along with reliable functionality. If gamers want that spinogambino download apk, they stay selecting the pathway to a protected plus firm play space which fits perfectly inside your hectic schedule.

    For players interested about this start, that spinogambino apk download is simple. Simply navigate towards that verified site for start this spinogambino app download. Assuming gamers are looking for that highly suitable version, that spinogambino app download for android is commonly known for the fast opening times with included functions. The fact remains evident that the spino gambino mobile experience remains tailored toward current players that appreciate simplicity shunning compromising upon standard.

    If you decide in order to download spinogambino app, you are entering the growing community of players who enjoy that spinogambino online app originating any location during all hour. That process to finish the spinogambino download app is simple, enabling you for dive within these favorite slots inside seconds. Via picking the official spino gambino download, players ensure that you possess this top up-to-date features with security updates. Never miss out on this fun; start your adventure shortly by using that spinogambino app along with uncover the reason numerous players are making that change into this versatile handheld venue. Possessing consistent fixes and the commitment to user happiness, this app appears as the premier option aimed at handheld betting fans globally.

  6. Możliwość wejścia do krainy hazardowych gier nie stał się aż tak banalny jak teraz, a platforma Spino Gambino zapewnia graczom wielkie wrażenia na wyciągnięcie ręki [url=https://spino-gambino.info.pl/login]spinogambino login[/url] . Gdy rozważasz, jak ekspresowo zacząć zabawę, kluczem stanowi poprawny spinogambino login. Proces ten został zaprojektowany w taki sposob, by dowolny użytkownik, pomijając doświadczenie, zdołał bez problemu przejść proces weryfikacji i korzystać z szerokim wachlarzem maszyn slotowych i gier karcianych.

    By dostać się do własnego konta, wystarczy wejść na witrynę startową i zaznaczyć przycisk spinogambino casino login. Po wpisaniu poprawnych danych, system błyskawicznie przekieruje Cię do Twojego panelu użytkownika. Wielu graczy szukających szybkiego wejścia wprowadza do przeglądarki hasła takie jak spino gambino login czy spino gambino casino login. Niezależnie od wykorzystanego określenia, proces pozostaje taki sam – należy wpisać użytkownika oraz hasło, by pogrążyć się w krainę najwyższej jakości rozrywki.

    Dla graczy lubiących ułatwienia, login spinogambino to gwarancja bezpieczeństwa oraz pełnej kontroli nad własnym kontem. Jeśli często korzystasz z mobilnej odsłony strony, zapisanie informacji dla login spino gambino umożliwi Ci w krotkim czasie wrocić do swoich hitow. Należy też nadmienić o możliwościach w rodzaju spinogambino online casino login, ktore są przeznaczone dla wybrednych miłośnikow rozgrywek online. Wybierając spinogambino casino online login, otrzymujesz przekonanie, iż używasz fachowego oraz innowacyjnego platformy do gier.

    Dla graczy preferujących konkretne frazy, jak choćby online casino spinogambino login, strona oferuje płynność oraz przyjazną nawigację. Miej na uwadze, by zawsze pilnować o poufność swoich danych. Skuteczny spinogambino online login stanowi początek drogi do wielkich wygranych. Jeśli masz jakiekolwiek problemy z logowaniem, opcja casino spinogambino login jest stale osiągalna pod głownym linkiem portalu. Nie czekaj, wejdź na konto już teraz i przekonaj się, dlaczego mnostwo osob stawia właśnie na tę witrynę jako głowną bazę do zabawy w sieci. Spino Gambino to postęp oraz ochrona w jednym serwisie. [url=http://1.s.2.free.fr/viewtopic.php?f=13&t=445495&p=532555#p532555]Wstęp do krainy hazardowych gier nie okazywał się tak łatwy jak teraz, natomiast witryna Spino Gambino oferuje użytkownikom wielkie wrażenia w zasięgu wzroku — przetestuj właściwy spinogambino login oraz rozpocznij zabawę dzisiaj![/url] [url=https://chemiestudent.de/forum/viewtopic.php?p=98805]Możliwość wejścia do krainy wirtualnej zabawy nigdy nie był tak prosty jak obecnie, a platforma Spino Gambino zapewnia graczom wielkie wrażenia na wyciągnięcie ręki — przetestuj szybki spinogambino login i wejdź do gry już teraz![/url] d23f5fa

  7. ohmyspins1-Abeve

    Alle, welcher auf der Suche nach einem innovativen und vergnuglichen Online-Glucksspielanbieter befindet, sollte sich die Produktpalette auf dem Portal oh-my-spins-1.web.app prazise unter die Lupe nehmen [url=https://oh-my-spins-1.web.app]casino ohmyspins[/url] . Das oh my spins casino wusste sich innerhalb der Sphare der digitalen Spiele einen Ruf erarbeitet und zieht User anhand eines bunten Sortiments an Walzengeraten nebst Live-Croupier-Offerten in die eigene Welt. Viele Nutzer teilen optimistische oh my spins erfahrungen, da die Plattform uberaus intuitiv aufgebaut wurde zudem einen einfachen Zugriff bietet. Wer, welcher sich fur der Spielhalle ohmyspins entscheidet, profitiert ausschliesslich aus einer umfassenden Auswahl an Automatenspielen, jedoch auch von haufigen Bonus-Events sowie Pramien-Paketen.

    Ein tiefgehender recensione ohmyspins zeigt schnell, dass bei diesem Anbieter Seriositat zudem Offenheit gro?geschrieben werden. Zahlreiche User konzentrieren sich insbesondere hinsichtlich den oh my spins Zahlungsverkehr, weil eine rasche zudem problemloser Prozess der Ertrage fur das Vertrauen in einen Anbieter essenziell ist. Die ohmyspins erfahrungen in diesem Bereich fallen oft sehr ermutigend, weil die Ablaufe schnell funktionieren. Auch die oh my spins casino Fachberichte unterstreichen immer wieder das exzellente Niveau der Game-Entwickler sowie die attraktive grafische Aufbereitung, die fur reales Glucksspiel-Feeling sorgt.

    Das ohmyspins Konzept begeistert mittels einer Mixtur aus Spannung sowie leichter Handhabung. Ganz gleich ob ein Spieler ein Profi-Zocker agiert oder gerade erst mit dem Einstieg bei einem Web-Anbieter anfangt, dieses Portal bietet fur alle Anspruche das Richtige. Die Plattform wurde darauf ausgerichtet, ein nahtloses Spielerlebnis auf verschiedenen Endgeraten zu garantieren, sodass der Fan ebenfalls unterwegs jederzeit Zugang auf seine bevorzugten Games besitzt. Kurzum kann man festhalten, dass diese Webseite eine erstklassige Wahl fur jeden bedeutet, die Augenmerk auf ein vertrauenswurdiges Umfeld, eine gro?e Auswahl und kompetente Hilfe setzen. Schauen Sie sich die Optionen auf der Firmenwebseite in Ruhe an und bilden Sie sich eine eigene Meinung von den vielfaltigen Moglichkeiten, welche dem User diese moderne Glucksspielplattform bietet. Die Kombination aus Spass sowie Expertensupport gestaltet diesen Anbieter zu einer wahren Option in der aktuellen Ara.

  8. Публикация охватывает основные направления развития современной медицины. Мы обсудим значимость научных исследований, инноваций в лечении и роли общественного участия в формировании системы здравоохранения.
    Подробнее можно узнать тут – [url=https://tokzamer.ru/zdorove/vyvedenie-iz-zapoya-na-domu-cena]Вывод из запоя[/url]

  9. In case you find yourself hunting for an electrifying and fast-moving gaming journey, the Chicken Road demo is the perfect spot to start [url=https://chicken-road-logincasino.com/demo]chicken road game demo[/url] . This distinct release has swept the web-based gambling sector by force, providing users a possibility to gauge their fortune in a playful, arcade-style environment. By attempting the chicken road game demo, you can acquaint yourself with the gameplay, wager approaches, and overall excitement of the app avoiding having to risk any actual funds right away.

    Navigating to the chicken road casino demo is effortless and delivers an excellent method to witness why this specific title is trending amidst enthusiasts. Whether you remain a seasoned user or a newcomer to the world of internet slots, the chicken road demo casino interface is crafted to be responsive and user-friendly. You can investigate the elements of the chicken road demo play mode to grasp how the bonuses function and how to navigate the road proficiently.

    Lots of clients prefer to utilize the demo chicken road version to refine their plans before entering live rounds. When you interact with the chicken road slot demo, you get a precise insight of the software’s variance and reward layout. Because it is a chicken road gambling game demo, it emphasizes entertainment while offering a authentic simulation of the full experience. The greatest part is that you can gain entry to the chicken road demo free of charge, permitting you to enjoy the thrilling environment anytime you want.

    Provided you are ready to submit your skills to the challenge, the chicken road demo game delivers everything you must have to begin. It acts as a risk-free area where you can conquer the sequences and timing needed to succeed. With no stress, you can savor tons of involvement. Head towards the platform this moment, activate the sample version, and see if you hold what it takes to traverse the road to victory. It is the best method to enjoy top-tier betting features with total security.

댓글 달기

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