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

  1. При ухудшении сознания, судорогах, выраженной боли, нарушении дыхания или психозе не следует ограничиваться заявкой на обычную капельницу на дому. В таких ситуациях необходимо сообщить диспетчеру обо всех симптомах: специалист оценит срочность, а при наличии угрожающих жизни признаков следует вызвать скорую помощь. Безопасность человека имеет приоритет перед скоростью проведения детокса.
    Получить больше информации – [url=https://4.kapelnica-ot-zapoya-v-moskve14.ru/]kapelnica-ot-zapoya-na-domu[/url]

  2. kingmaker-artic

    En caso de que estas buscando una experiencia de juego emocionante, es probable que hayas escuchado hablar de Kingmaker [url=https://kingmaker-5.pages.dev]kingmaker casino[/url] . Este portal se ha posicionado rapidamente como una alternativa lider para los amantes de las apuestas digitales. En este analisis de Kingmaker casino analizaremos por que tantos jugadores estan seleccionando esta plataforma para sus sesiones de entretenimiento. Cuando ingresas a este sitio, lo primero que destaca es su interfaz intuitiva disenada para facilitar la navegacion. Acceder es muy sencillo mediante el kingmaker casino login, permitiendo que los usuarios comiencen a disfrutar de una gran seleccion de juegos en cuestion de segundos. La biblioteca ludica en este casino en linea es realmente atractiva, integrando desde tragaperras clasicas hasta mesas en vivo con crupieres reales. Al explorar la web, veras que esta casa de apuestas cuida cada detalle tecnico para garantizar una conexion fluida y segura. Muchos miembros comparten sus kingmaker casino opiniones destacando la velocidad de los retiros y la calidad del soporte tecnico, puntos clave para cualquier plataforma de apuestas. Si bien el nombre Kingmaker puede variar en algunas busquedas, lo cierto es que la identidad de kingmakercasino se consolida gracias a su constante actualizacion de contenido. Aquellos que buscan un portal de juegos fiable encontraran aqui un catalogo variado que se ajusta a diferentes perfiles de jugador. Completar el registro en Kingmaker es la puerta de entrada a promociones que mejoran significativamente el saldo inicial. En definitiva, si tu objetivo es explorar el mundo de Kingmaker casino, la plataforma presentada aqui ofrece las herramientas necesarias para una experiencia inmersiva. Recuerda siempre jugar con responsabilidad al utilizar los servicios de kingmaker casino, asegurandote de gestionar bien tu tiempo y presupuesto mientras disfrutas de toda la emocion que ofrece este operador. La plataforma sigue creciendo en popularidad dentro del sector, consolidando su reputacion como un lugar ideal para quienes desean un servicio completo y adaptado a las tendencias actuales del sector de los juegos de azar online.

  3. Дверь заперта, телефон не берёт. Запой жуткий, сам не остановится. Вывод из запоя на дому — Когда счёт идёт на часы, медлить нельзя. Через пару часов человек задышал спокойно. Срочный вывод из запоя — без осуждения. Если кому надо — вот тут подробности: капельница от похмелья на дому цена [url=https://snyatie.vyvod-iz-zapoya-na-domu-msk-mnq.ru]https://snyatie.vyvod-iz-zapoya-na-domu-msk-mnq.ru[/url] Там и про вывод из запоя цены для Московской области. Не тяните, если близкий срывается.

  4. Provided that you stay hunting for an enthralling approach to challenge your odds, the Plinko game has developed into a significant phenomenon within Nigerian players [url=https://plinko-game-99.onrender.com]Plinko game online real money[/url] . Regardless of whether you stay novice to the scene or a experienced gambler, the Plinko game online offers a straightforward yet captivating encounter that maintains you fixed on the brink of your seat. As you browse the page found at plinko-game-99.onrender.com, you get to enjoy the traditional arcade design mixed with advanced elements that characterize the modern Plinko casino experience.

    For people questioning what is Plinko game, it serves as fundamentally a trial of chance where a Plinko ball is pitched from the summit of a pyramid-shaped structure packed with pegs. As the ball rebounds downwards, it finally lands in a single the gaps at the bottom, every one holding a different multiplier. Assuming you stay pondering how to play Plinko, the system is straightforward. You merely set your bet, pick your risk level, and watch as the ball cascades to verify your pay-out.

    Numerous players search for a Plinko game online real money site to add an additional layer of fun to their gaming sessions. Since the logic are transparent, numerous users often inquire is Plinko legit. When utilized on reputable sites, the software employs provably fair innovation, guaranteeing that each drop stays random and safe. While several users might be familiar with the famous bc game Plinko, there exist plenty of versions accessible today that deliver equally premium visuals and smooth gameplay.

    Plinko gambling has evolved significantly, moving from old-school TV show parts to a online staple in the Plinko casino game sphere. It seems perfect for those who like quick rounds and instant conclusions. Through accessing plinko-game-99.onrender.com, you can dive straight into the action. Always keep in mind to gamble wisely and establish boundaries for you. With its engaging gameplay and the prospect for high rewards, it appears easy to understand the reason Plinko stays to lead the charts in Nigeria and elsewhere. Explore the thrill today and observe where your Plinko ball rests.

  5. spinogambinobet-GODAY

    Accedere alla tua piattaforma di gioco preferita dovrebbe essere semplice e veloce, e il processo di login spinogambino e studiato per assicurarti di iniziare a giocare senza attese [url=https://spinogambinobet.it.com/login]spinogambino casino login[/url] . Sia che tu sia un utente alle prime armi o un veterano esperto, imparare a usare la pagina di login del casino spinogambino e il primo passo per goderti una ampia selezione di slot premium e giochi con dealer dal vivo. Visitando il portale ufficiale, puoi effettuare l’accesso e immergerti nel mondo coinvolgente dell’intrattenimento online.

    Per gli utenti che cercano il modo piu efficiente per entrare nel proprio profilo, utilizzare il link di accesso diretto di spinogambino e raccomandato. Questo garantisce di essere sempre sul sito ufficiale e sicuro, tutelando i tuoi dati personali e i metodi di pagamento. Molti giocatori digitano “login spino gambino” per raggiungere la loro area personale istantaneamente. Una volta effettuato il tuo spino gambino login, ottieni entrata diretta a promozioni esclusive, bonus giornalieri e una collezione di giochi eccellenti che mantengono l’esperienza di gioco sempre stimolante.

    Se ti trovi in Italia, la area di accesso italiana di spinogambino e specificamente ottimizzata per offrire una connessione fluida e dedicata. Assicurarsi di utilizzare il sito di login giusto di spinogambino aiuta a mantenere una connessione fluida, soprattutto durante le ore di punta. Per chi ama il gioco da mobile, l’interfaccia di casino login spinogambino e completamente adattabile, permettendoti di accedere al tuo account tramite dispositivi mobili con facilita.

    Ricorda di proteggere la tua chiave di accesso e di non rivelare mai i tuoi dettagli di login al casino spinogambino con terze parti. Qualora incontrassi difficolta tecniche, basta aggiornare la pagina o verificare il sito ufficiale di spinogambino bet login per superare solitamente ogni piccolo glitch tecnico. Con un design intuitivo e robusti protocolli di sicurezza, la tua esperienza di spino gambino casino login e costruita per essere protetta e piacevole. Inizia oggi dirigendoti alla piattaforma ed accedendo per scoprire tutto cio che il sito ha da offrire.

  6. купить героин где купить мефедрон Мефедрон, Гашиш, Бошки, Альфа-ПВП шишка бошка купить трамадол капсулы купить трамадол купить в москве
    купить гашиш купить мефедрон гашиш сайт где купить наркотикиhttps://svatovokupit.xyz купить рецепт на трамадол где купить лирику без

  7. chickenroad-beriery

    casino venue offers captured interest from English players hunting for a diverse range of entertainment choices and a straightforward interface. Based on the domain the official hub, this casino platform delivers a variety of possibilities for those interested in wagering for actual money.

    Whether you’re brand-new new to online betting or a experienced gambler, grasping its authenticity and aspects is essential before leaping in.

    One of the first concerns many enthusiasts raise is whether Chicken Road Casino is legit or not. While the platform looks to be running, it’s important to handle it with care. Licensed digital venues in the UK must follow with tight regulations, encompassing licensing from organisations like the UK Gambling Commission. While Chicken Road Casino doesn’t openly disclose its approval details, enthusiasts should check its credibility through independent feedback and player experiences. Checking the casino evaluations from credible sources can offer invaluable understandings into its equity, payout speed, and general trustworthiness.

    For those curious about the entertainment on offer, the casino offers a selection of varieties, including slot games, table games, and real-time host sessions. Gambling on Chicken Road Casino’s games in the Britain can be an exciting way to enjoy fun while potentially winning genuine money. The site claims to feature well-known titles from famous developers, guaranteeing a blend of classic and modern experiences. Nevertheless, it’s worth to highlight that some players state variations in game offering or promotions, so reviewing the casino game feedback can help establish expectations.

    If you’re considering exploring the casino, it’s also helpful to comprehend the platform’s conditions, primarily regarding bonuses and withdrawals. Some players have shared diverse feedback with Chicken Road Casino’s game real money transactions, so transparency in withdrawal mechanisms is essential. Furthermore, thoughtful gambling habits should always be focused on, ensuring that entertainment keeps an fun activity rather than a financial burden.

    In final analysis, while the venue showcases itself as a viable option for UK players, comprehensive study is necessary before committing. Scrutinising Chicken Road Casino feedback, confirming its validity, and grasping its entertainment processes will guide you to form an considered decision. Whether you’re hunting for leisure or likely winnings, always wager responsibly and choose sites that align with your choices and anticipations.

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

  9. Эта публикация посвящена актуальным вопросам современной медицины и здравоохранения. Мы обсудим новейшие технологии диагностики и лечения, а также их влияние на продолжительность и качество жизни. Читатель найдет здесь информацию о научных исследованиях и перспективных разработках, доступно изложенную для широкой аудитории.
    Смотри, что ещё есть – [url=https://ria-ami.ru/2024/12/kodirovanie-ot-alkogolizma-kak-eto-rabotaet-i-pochemu-stoit-poprobovat/]кодирование от алкоголизма в Рязани[/url]

  10. instasino-Invoids

    Ben je naar een bijzondere ervaring in de wereld van digitale kansspelen? In dat geval is het verstandig om eens aandachtig naar de kansen van het portaal op instasino-13.onrender.com te analyseren [url=https://instasino-13.onrender.com]instasino casino nederland[/url] . Vele deelnemers ervaren de charme van instasino, een plek die geprezen wordt om de gebruiksvriendelijkheid en diverse portfolio. In dit instasino review gaan we de essentiële aspecten onder de loep om te beoordelen of dat platform de ideale optie is voor jouw gokavontuur.

    Als je initieel de website bekijkt, merkt meteen op hoe toegankelijk het instasino casino online is. De layout is strak, waarbij je soepel kunt navigeren tussen je geliefde slots, tafelspellen en live casino opties. Diverse gebruikers in de regio overwegen: is instasino betrouwbaar? Veiligheid prioriteert bij dit platform hoog in het vaandel, wat zorgt voor een zorgeloze ervaring waarbij je maximaal mag profiteren van je inzetten.

    Speciaal voor de enthousiastelingen van het instasino casino nederland is het proces van instasino casino login bijzonder simpel. Zodra je een account hebt gecreëerd, geniet je onverwijld de mogelijkheid tot een groot assortiment aan games. Of je wel een beginner of liever een professionele gokker, de instasino nederland ervaring levert voor elk wat leuks. Het gamma aan spellen is uitgebreid en wordt continu vernieuwd met de modernste ontwikkelingen uit de branche.

    Concluderend, het casino instasino verzorgt een moderne en beschermde speelsessie voor eenieder die op zoek is naar actie. Het is niet vreemd dat instasinocasino alsmaar populairder wordt in ons land. Wens je persoonlijk ervaren wat het casino te aanbieden heeft? Bezoek dan de URL en ervaar het zelf. Vergeet echter goed om bewust te inzetten en uitsluitend te wedden met kapitaal dat je kunt missen. Met de goede houding wordt het deelnemen bij instasino een fijne bezigheid rijk aan mogelijkheden en vermaak. Kijk nu nog wat er voor je in voorraad is op dat veelzijdige domein en laat je verrassen door het assortiment.

댓글 달기

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