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”의 63,886개의 댓글

  1. needforslots-Exceway

    Wybor właściwego punktu do rozrywki w wirtualnej przestrzeni bywa wyzwaniem, zatem należy zwrocić uwagę na witrynę need for slots [url=https://needforslots-casino-13.onrender.com]need for slots casino[/url] . To świeże lokum, ktore wabi graczy oczekujących doskonałej jakości wrażeń i bogatego asortymentu tytułow. Jeśli zajmuje Cię need for slots casino, z pewnością docenisz prosty panel oraz rozbudowaną kolekcję slotow, ktora spełni oczekiwania nawet najbardziej trudnych graczy. Kasyno need for slots kładzie nacisk na jasne warunki oraz bezpieczeństwo, co czyni je ciekawym punktem na liście cyfrowego gamingu.

    Dla korzystających funkcji need for slots pl kluczowe jest odczucie relaksu w trakcie zabawy. Serwis została zaprojektowany w ten sposob, aby dowolny osoba była w stanie bezproblemowo odnaleźć swoje ulubione tytuły, bez względu od tego, czy woli klasyczne maszyny typu fruit, czy skomplikowane gry wideo z ciekawymi mechanikami specjalnymi. Need for slots polska dostarcza możliwość do rozrywki na świetnym poziomie, zważając jednocześnie o responsywność portalu na wielu urządzeniach.

    Wielu użytkownikow zadaje sobie kwestię, co wyrożnia casino needforslots na kontekście rynku. W głownej mierze jest to stabilność oraz szybkość funkcjonowania, co sprawia, że needforslots online wyrasta na wyborem numer jeden dla wielu wielbicieli emocji. Niezależnie od tego, czy wklepujesz w Google hasło kasyno need for slots, czy zwyczajnie pragniesz miejsca do relaksu po ciężkim czasie, ta platforma zapewni Ci precyzyjnie tego, czego wymagasz.

    Nowoczesne normy, ktore promuje casino need for slots, gwarantują, że każda partia gry będzie odbywać się w sprawiedliwych zasadach. Jeśli doceniasz sobie zmienność, nowoczesne rozwiązania technologiczne i klarowną ofertę, needforslots casino bez wątpienia trafnie wypełni Twoje wymagania. Nie ma wątpliwości, że marka ta konsekwentnie buduje swoją markę na sektorze, pozyskując stale większe grupę fanow zabaw kasynowych. Należy przetestować na własnej skorze, jakie perspektywy daje to miejsce i sprawdzić, czemu tak dużo graczy często stawia na tę samą stronę do codziennej stałej dawki emocji. Zachęcamy do sprawdzenia przestrzeni obfitującego w możliwości i rozrywki, gdzie dowolny obrot bębnem może przynieść wyjątkowe chwile.

  2. spinogambino-Pluff

    If you choose to sign up for a fresh virtual gaming site, comprehending the guidelines of conduct is essential for a fluid journey [url=https://spinogambino-casinobonus.com/terms-and-conditions]spino gambino[/url] . The website for spinogambino presents a comprehensive user agreement section that details everything users need to know ahead of they commence wagering. By investing the moment to study these regulations, you ensure that your time passed with spino gambino is equally transparent and fun, defending your interests while you explore their various betting selections.

    The terms and conditions file serves as a official pact among the user and the service. It addresses critical areas including membership registration standards, personhood verification procedures, and the statutory obligations users are required to adhere to. As spinogambino works with a commitment to safe gaming, this section also offers perspective on how to manage your profile, configure deposit limits, and understand the blocking policies accessible to individuals who need them. Reading via these points aids you bypass frequent errors about profile status and territorial limitations.

    Furthermore, the materials on the domain details the nuanced regulations regulating rewards and marketing deals. Many gamers register with spino gambino for the thrill of signup bonuses or recurring rewards, but these benefits constantly feature precise playthrough requirements. The terms and conditions document breaks down exactly how these rewards work, covering rollover rates and expiration dates, so you are hardly ever caught off guard when seeking to cash out your winnings.

    We highly urge all fresh and current players to access the spinogambino terms and conditions page frequently. Policies may shift as the platform develops, and keeping knowledgeable is the top way to maintain a protected space. By learning you with these policies, you are more ready to navigate the world of spino gambino with assurance and inner mind. Whether you are curious about withdrawal completion speeds or privacy protection, the information provided is crafted to maintain your gaming journey safe, just, and entertaining for the long run.

  3. chickenroad-actiogs

    Aves Calle resultó un diversión en boca de todos que creó excesiva expectación y análisis entre los internautas de las redes sociales, especialmente en Europa [url=https://chickenroad-es-30.vercel.app]El Juego De Chicken Road Es Real[/url] .

    Casi todos se hacen eco de si *¿Existe realmente Chicken Road?* u si se trata de solo una artimaña, un descarado estafa u una bien disfrazada artimaña.

    La dirección web *chickenroad-es.website* presenta una interactiva experiencia que recrea un tipo de retos de elecciones, cuando los participantes tienen que elegir entre múltiples campos de acción para avanzar.

    Pero, ¿se considera con fundamento un de responsabilidad u exclusivamente una adictiva estrategia de ocio con objetivos de marketing?

    Este *Chicken Road: ¿Juego o realidad?* desarrolla momentos diarias que generan consecuencias increíbles, tal como seleccionar entre saltarse el semáforo en señal de peligro, o asumir el riesgo de una inevitable multa. Aunque resulta inocuo, muchos visitantes han cuestionado si *El Juego Chicken Road Es Real O Falso* resulta una forma de influencia cognitiva o más bien el de grupo.

    La verdadera esencia resulta que, no hay indicios de que sea una manipulación, su esencia interactiva y adictiva genera provocar dudas sobre esta autenticidad.

    Varios piensan que *Chicken Road: ¿verdad o ficción?* se presenta como una estratégica herramienta con el fin de promocionar productos, para otros es varios esto consideran como entretenimiento allende cualquier significado.

    La pregunta *¿Es Chicken Road una realidad?* no tiene allende explicación clara, ya que este fenómeno de momento no brinda datos oficial sobre este origen u objetivo auténtico. Pese a todo, Esta fama en redes sociales muestra que, para varios, *¿Es real el juego de Chicken Road?* resulta una manera de pasarlo bien allende consecuencias reales.

    Si te *Chicken Road: ¿engañar o divertir?*, lo obvio no hay de momento no pruebas de que constituya una clásica trampa, aunque este estructura puede ser adicto y manipulador en términos de concentración.

    Numerosos visitantes han relatado sus experiencias relacionado con *Juego Chicken Road Es Real*, poniendo de relieve de qué manera este experimento a los participantes vicia adictos gracias a opciones que, en la realidad cotidiana, no tendrían sentido valor.

    *El lado real de Chicken Road* parece ser un fenómeno masivo más que el estafa, aunque siempre es recomendable permanecer cauteloso hacia páginas que prometen aventuras virtuales allende honestidad.

    En visión general, no obstante *El Juego Chicken Road Es Real O Falso* sigue resultando el enigma en el caso de algunos, esto evidente es que su influencia en la red resulta marcado.

    Si te interesa acceder, te es posible visitar a la versión en lengua española disponible en *chickenroad-es.site* y juzgar mediante tu percepción si funciona como un experimento genuino, una bien planeada toma de pelo o algo más.

    La base quede en vivirlo fuera de sumergirse en esta, pues, al definitivo y al resultado, *¿Es real Chicken Road?* en es una virtual aventura digital allende implicaciones visibles.

  4. chickenroad-Plada

    Nel contesto dei prodotti virtuali contemporanei, Chickenroad si e rapidamente distinto quale una delle novita piu coinvolgenti e appassionanti per gli amanti di gare rapide [url=https://chickenroad-gamereview.it]crash chicken road[/url] . Qualora tu sia consultando una recensione Chicken road approfondita, sei capitato nel posto adatto per apprendere la ragione per cui questo prodotto sta dominando le vette. Il gioco Chicken road si fonda su una cadenza serrato e una curva di assimilazione istantanea, rendendolo perfetto sia durante momenti mordi e fuggi o per competizioni prolungate. Valutando il gameplay Chicken road, si palesa una fluidita che valorizza la prontezza pronti e l’abilita di scegliere in pochi attimi di secondo. Il concept appare lineare tanto funzionale: pilotare il personaggio principale attraverso un percorso disseminato di pericoli insidiosi. Tuttavia, il vero anima del divertimento giace nella minaccia perenne di un crash Chicken road, episodio che pone a verifica la tenacia dell’utente tuttavia spinge a ritentare istantaneamente. Per eccellere, risulta essenziale ideare una solida strategia Chicken road che consenta di amministrare in modo ottimale le risorse e il posizionamento lungo il tracciato. Ogni partita ti costringe a esaminare attentamente la meccanica Chicken road, che non rappresenta solo un aspetto di fortuna, ma chiede una comprensione approfondita dei sistemi di movimento delle minacce. Consultando indirizzo relativo, gli appassionati hanno modo di reperire consigli preziosi e analisi tecnici per ottimizzare i propri performance e salire le classifiche. Sia che tu rappresenti un esperto dei prodotti arcade o un neofita desideroso di un svago avvincente, Chickenroad propone un compromesso ottimo tra gara e appagamento visiva. La community intorno a Chicken road prosegue nel allargarsi, catturata dalla semplicita delle norme connesse a una profondita che emerge soltanto in seguito a numerose ore di tempo. Infine, se vuoi testare la tua rapidita di riflesso, esplorare i meccanismi dietro codesto fenomeno e un passo doveroso. Immergiti rapidamente nella realta di Chickenroad e verifica fino a dove ti e possibile spingerti precedentemente all’ imminente imprevisto.

  5. В такой ситуации важно действовать рационально. Наркологическая служба Нижнего Новгорода предлагает решение — это выезд специалистов. Наркологическая клиника в Нижнем Новгороде анонимно принимает. Если рассматривать бюджетные варианты. Рекомендую ознакомиться с источником: экстренная наркологическая помощь наркология [url=https://vrach.narkologicheskaya-pomoshh-nnovgorod-ftx.ru]https://vrach.narkologicheskaya-pomoshh-nnovgorod-ftx.ru[/url] И про наркологическую помощь круглосуточно для Нижнего Новгорода. Не откладывайте.

  6. Opening your favorite gambling platform must remain a seamless experience, and that represents what players anticipate when they navigate to the Spino Gambino page [url=https://spino-gambino-casinoreview.net/login]login spino gambino[/url] . If you hope to dive right into the excitement, learning how to complete the spinogambino login steps is the first action toward accessing high-quality reel games and table games. Assuming you happen to be a recurring member or a fresh user establishing your membership, the login spinogambino portal is built for optimum productivity and protection.

    To commence, simply navigate to the main webpage and locate the entry field. Inputting your info for the spino gambino login is straightforward, ensuring you devote less minutes waiting and additional hours betting. It is important to check your network connectivity is solid ahead of attempting the login spino gambino operation to avoid any lags. Once your verified details are verified, you gain fast admission to your personalized dashboard, account history, and exclusive bonuses.

    Many gamers hunt for the spinogambino casino login to utilize premium games from elite studios. The casino spinogambino login is one of the most reliable ways to control your gaming bankroll while enjoying a safe gaming environment. When you employ the spino gambino casino login, you remain shielded by advanced cryptography standards that maintain your private information and banking data protected. Similarly, the casino spino gambino login operation runs smoothly on every computer and cellular gadgets, letting you to bet outside.

    For players who like the virtual gambling experience, the spino gambino online login guarantees you hardly ever skip a bonus event or a latest tournament. By completing the spinogambino online login, you unleash the entire potential of the service. Always recall to keep your password secure to uphold the security of your account. If you at any time encounter difficulties during attempting to sign in, the customer staff is available to support you in restoring site entry so you might pursue your gambling path without any lag. Reach out to the platform whenever you want assistance gaining your member page.

  7. spingrannycasino-Grarge

    Jestlize prahnete po misto, v niz se vyspěle systemy prolinaji s pohodovou atmosferou, sekce o nas na webu spingrannycasino.cz je idealnim vychozim mistem [url=https://spingrannycasino.cz/o-nas]spingranny[/url] . Nas portal bylo zalozeno s jasnou vizi postavit koutek, v němz si registrovani klienti nehledě na sve zkusenosti najde to sve. Platforma spin granny vyvinula se z nadseni pro prvotřidni odreagovani a touhy nabidnout domacim hračům jiste a transparentni prostředi pro provozovani oblibenych automatů i karetnich titulů. Nase hodnoty sedi na třech zakladnich piliřich, kterymi jsou spravedlnost, pokrok a pečlivy přistup ke klientům. Od prvopočatku se usilujeme o to, aby spingranny nestalo obyčejnou webovou adresou, ale komunitnim mistem, kam se lide maji přijemny pocit a kde je jejich zabava neustale na vrcholu priorit. Nas kolektiv sestava z odbornici z oboru herniho průmyslu, kteři průbězně sleduji moderni novinky, protoze navstěvnikům mohli přinest ty nejnovějsi kasinove novinky od vyznamnych globalnich tvůrců. Uvědomujeme si, ze, ze je vira v digitalnim prostoru kličova, a proto věnujeme velkou vahu na ochranu vasich dat i peněznich operaci. Na strance o nas se dozvite, jak přistupujeme k zodpovědnemu hrani a z jakeho důvodu je pro nas tym vase radost tim nejdůlezitějsim. Bez ohledu na to, zda přichazite jako novačkem, připadně znalym harcovnikem, spin granny je připraveno pro vas s rozmanitou paletou odměn, VIP systemem a ochotnou zakaznickou podporou, ktera je odhodlana zodpovědět jakoukoli pochybnost. Jsme hrdi, na to, ze dokazeme budovat spingranny jako brand, ktera je symbolem pro prvotřidni česky herni zazitek. Zveme vas, abyste se přidali současti nasi cesty a vyzkouseli to nejkvalitnějsi, coz dnesni trh s hrami nabizi. Jsme vděčni, ze jste jste si pro chvile volna zvolili pravě tento portal a věřime, ze s nami okusite mnoho adrenalinovych zazitků na cestě za velkymi vyhrami.

  8. spinogambinocasino-cooxy

    Locating the perfect hub for premium amusement is necessary for each play fan, and the spinogambino official website stands out as a premier venue for users searching for a high-end adventure [url=https://spinogambinocasino-bonus.net]casino spinogambino[/url] . Upon visiting spinogambino, you are met by a modern design developed for smooth movement over all gadgets. Whether you are fond of rotating the slots of famous slots or investigating the scope of the spinogambino live casino, this site guarantees that one session is crammed with thrills and honesty.

    For gamers who rate selection, the spinogambino online casino supplies an wide array of options sourced from elite software developers. From standard table games like blackjack and roulette to engaging video slots with fresh themes, spino gambino has options for all category of player. The site is constructed to offer a secure environment where gamers can engage in their preferred games with total confidence. Also, the spinogambino betting section grants added excitement for match fans who plan to bet on their preferred events in instant play.

    Picking a spinogambino casino online implies picking reliability and innovation. The page is refined to guarantee that the spinogambino online experience stays speedy, responsive, and flawless, particularly throughout peak periods. If you are seeking a total play package, casino spinogambino scores on all fronts, covering rewarding marketing offers and focused help. Many users praise how spino gambino casino balances an wide game library with user-friendly functions, making it simple for as well as rookies and veteran gamblers to launch. By supplying a firm and wide casino landscape, spinogambino keeps acting as a preferred option for fans searching for a top-class virtual atmosphere. Whether you are visiting the domain on a laptop or smartphone device, the devotion to perfection is evident in every part of the offering. Discover the massive options today at the spinogambino official website and discover why so countless members view this platform their chosen spot for web play and athletic wagering.

  9. где купить мефедрон сайт закладок наркотики Мефедрон, кокаин, бошки, гашиш масло конопли купить купить наркотики онлайн модафинил купить
    гашиш закладками гашиш москва амфетамин кокаин купитьhttps://lisichanskkupit.xyz купить гашиш тг мдма купить

  10. needforslots-Peagiaf

    Decyzja trafnego punktu do gry w świecie wirtualnego hazardu bywa wyzwaniem, dlatego opłaca się skupić się na platformie Need for Slots [url=https://needforslots-casino-14.jacinthfxstolteneha60.workers.dev]need for slots pl[/url] . Jeśli intryguje Cię nowoczesna rozrywka na doskonałym poziomie, Need for Slots kasyno stanowi propozycję, ktora jest w stanie zaspokoić Twoje oczekiwania. Serwis ten został zaprojektowany z uwagą o graczach, ktorzy doceniają rożnorodność oraz intuicyjną nawigację. Wykorzystując Need for Slots pl, zyskujesz dostęp do ogromnej biblioteki gier, ktore kuszą oprawą wizualną i dynamicznymi mechanikami rozgrywki.

    Sporo użytkownikow w naszym kraju poszukuje rzetelnych rozwiązań, a Need for Slots polska wychodzi naprzeciw tym potrzebom, oferując pewne środowisko do zabawy. Casino needforslots stawia na kooperację z czołowymi dostawcami oprogramowania, co skutkuje wysoką jakość każdej partyjki. Jeśli Twoim priorytetem jest kasyno need for slots, warto przyjrzeć się ofercie, ktora zawiera zarowno tradycyjne automaty, jak i nowoczesne produkcje wideo. Dzięki ulepszeniu, ktorą oferuje Needforslots online, każdy fan hazardu może cieszyć się płynną rozgrywką bez zbędnych zwłoki, niezależnie od urządzenia, z ktorego korzysta.

    Wybierając Need for Slots kasyno, zyskujesz rownież dostęp do klarownych zasad i bezpieczeństwa, ktore są kluczowe w wspołczesnym internecie. Casino need for slots stale rozwija swoją ofertę, aby nadążać za trendami i oczekiwaniami użytkownikow. Bez względu na tego, czy jesteś zaawansowanym graczem, czy właśnie rozpoczynasz swoją zabawę, Needforslots casino gwarantuje właściwe warunki do rozwoju swoich umiejętności. Decydując się na Need for Slots, wybierasz platformę, ktora łączy pasję do gier z zaawansowaną technologią. Przetestuj, dlaczego tak wielu graczy wybiera właśnie to rozwiązanie do swojej codziennej porcji emocji. Opłaca się przeznaczyć czas na zapoznanie się z pełnym wachlarzem usług, jakie przygotowało to kasyno, aby w pełni wykorzystać możliwości oferowanych bonusow i tytułow, ktore zapewniają wspaniałe wrażenia z każdej przeżytej minuty.

댓글 달기

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