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”의 79,731개의 댓글

  1. GT Apuestas Online se posiciona una web de juegos de suerte que ha ganado atención significativa entre los apostadores locales en España, aunque que su estatus y seguridad permanecen cuestionamientos entre los jugadores [url=https://gtbet-157.onrender.com]Gt Bet Es Legal[/url] .

    En este informe, evaluamos con detalle qué significa GT Apuestas Online, a través de qué método se ejecuta y qué valoraciones se expresan sobre este plataforma, especialmente en el territorio nacional.

    GTbet Casino, apodado GT Casino Online, resulta una servicio que proporciona casino en línea, dentro de póker. Su plataforma, GTBetJuegos.net, da la impresión activo para apostadores en español, aun así que su regulación en el territorio resulta cuestionable. Según la ley local, solo las plataformas autorizadas por la DGOJ tienen permiso desarrollarse en España. GT Casino Online no constan en la base de datos legal de casinos autorizados, lo que genera dudas sobre su confianza.

    En atendiendo a su operativa, GT Casino Online brinda la posibilidad de crear cuenta y realizar pagos, beneficiándose en entre otros apuestas deportivas. Aun así que muchos visitantes manifiestan preocupaciones sobre su confiabilidad, las opiniones sobre GT Casino Online se dividen en contradictorias: algunos jugadores valoran su oferta diversificada y bonificaciones iniciales, en cambio otros alertan sobre dificultades en transacciones, riesgos sin control y satisfacción deficiente.

    Si te interesa una alternativa fiable, es recomendable elegir webs autorizadas en Europa, como los regulados por la DGOJ. Casinos comparables a GT Apuestas Online, por operar en la sombra, pueden presentar factores de incertidumbre como la exposición de información o retrasos en transacciones en caso de disputas.

    En análisis final, no obstante GT Casino Online ofrece una elección para quienes buscan entretenimiento en juegos de azar, su legalidad en el territorio es problemática y las opiniones dejan mucho que desear. Si te animas usarlo, comprueba leer las opiniones recientes y evaluar los riesgos antes de ingresar recursos. La seguridad y la confiabilidad han de ser siempre para decidir un sitio de apuestas en línea en el entorno online.

  2. В этой статье рассматриваются различные аспекты избавления от зависимости, включая физические и психологические методы. Мы обсудим поддержку, мотивацию и стратегии, которые помогут в процессе выздоровления. Читатели узнают, как преодолеть трудности и двигаться к новой жизни без зависимости.
    Погрузиться в детали – [url=https://boilervdom.ru/zdorove/stoimost-vyvoda-iz-zapoya-na-domu.html]сколько стоит вывод из запоя в москве[/url]

  3. Обзор посвящён процессу восстановления после зависимостей. Мы расскажем о различных этапах реабилитации, поддерживающих ресурсах и важности мотивации в достижении устойчивого выздоровления.
    Детальнее – [url=https://flatrenthq.ru/pages/centr-lecheniya-alkogolizma-v-moskve/]анонимная наркологическая клиника москва[/url]

  4. Эта публикация посвящена актуальным вопросам современной медицины и здравоохранения. Мы обсудим новейшие технологии диагностики и лечения, а также их влияние на продолжительность и качество жизни. Читатель найдет здесь информацию о научных исследованиях и перспективных разработках, доступно изложенную для широкой аудитории.
    Узнай первым! – [url=https://moyateplica.ru/pages/stacionar-narkologicheskij/]наркологическая клиника москва платная[/url]

  5. jokerjewels-exhault

    Mientras anhelas una sesión de slots clásica con un matiz contemporáneo en Argentina, no puedes omitir descubrir joker jewels, un producto que se ha convertido en el favorito de decenas de participantes en todo el nación [url=https://jokerjewels-ar.pages.dev]joker jewels[/url] . Durante el llegar a nuestro portal especializado, poseerás la opción de probar joker jewels de modo simple y precisa, disfrutando una plataforma pulida para que todo giro sea una sesión fluida y estimulante. Este entretenimiento, desarrollado por joker jewels pragmatic, brilla por su visual colorida y su lógica sencilla, perfecta precisamente para aquellos que se inician en el sector de las predicciones como para los expertos.

    Para quienes que se cuestionan la forma de jugar joker jewels, la dinámica es muy clara: el propósito central es combinar imágenes icónicos como coronas, gemas y el infaltable joker en los rodillos. Gran cantidad de clientes investigan métodos sobre la mejor forma de ganar en joker jewels, y pese a que se refiere a un pasatiempo fundado en el aleatoriedad, entender bien la guía de pagos y controlar tu capital es la base fundamental para mejorar tus jugadas en joker jewels casino. La éxito de joker jewels argentina ha crecido brutalmente a causa de su diseño nostálgico que trae a la memoria a las máquinas convencionales, pero con la potencia digital moderna.

    Siempre que te encuentras entre los que optan por intentar destino con versiones distintas o requieres una forma nueva tipo joker jewels dice, la espacio proporciona el espacio ideal para gozar de la mejor edición de joker jewels slot. No interesa si accedes mediante tu PC o gadget móvil, el entrada a joker jewels online está garantizado para proporcionarte esparcimiento de primer orden. Considera constantemente jugar con prudencia y disfrutar de la intensidad que ofrece jokers jewels. Accede a la web en este momento para descubrir por qué joker jewel es una decisión predilecta en el mercado argentino y inicia a girar los carretes en pos de aquellos pagos extraordinarios que tanto anhelas. Esa experiencia en el sector de las máquinas empieza aquí, con la más completa selección accesible para el sector argentino.

  6. В первые часы абстиненции важно смотреть не только на самочувствие, но и на объективные признаки. Если больной много лет сталкивается с алкоголизмом, имеет болезни сердца, печени, почек или ранее переносил белую горячку, самостоятельный выход из запоя опасен. В Екатеринбурге в таких случаях разумно вызвать нарколога, а при угрозе жизни — скорую помощь.
    Ознакомиться с деталями – [url=https://vyvod-iz-zapoya-v-ekaterinburge19.ru/]вывод из запоя на дому недорого в Екатеринбурге[/url]

  7. gtbet157-Opponse

    internet gamingplatform wordt steeds aantrekkelijker onder Belgische casinogangers die zoeken naar een geldige en snel te bedienen spelervaring [url=https://gt-bet-157.vercel.app]Gt Bet Casino[/url] .

    Als je plaatst om bij Gtbet Casino te gokken, is het noodzakelijk om te begrijpen wat deze website te aanbiedt en of hij veilig is. In deze beoordeling analyseren we de essentiële aspecten van Gtbet, inclusief de spelkeuzes, betalingswijzen en de algehele gebruikerservaring.

    Gtbet staat geapprecieerd om zijn omvattende verscheidenheid aan spelopties, onder andere populaire titels van bekende leveranciers zoals NetEnt. Of je nu houdt van blackjack, Gt Bet levert een omvattend assortiment aan varianten. De site is eveneens toegankelijk via draadloos, waardoor je eenvoudig kunt meedoen vanaf je gadget. Dit maakt het optimaal voor casinogangers die onderweg willen meedoen.

    Een van de hoofd onderwerpen die casinogangers zich stellen is of Gt Bet Casino geldig is. Gtbet is gebergd op Vercel, wat een up-to-date en veilige infrastructuur aanduidt. Hoewel de omgeving zonder een vergunning of toezicht aangeeft zoals standaard gamingplatforms, is het essentieel om individueel informatie te verzamelen. Veel geven aan goede feedback met efficiënte uitkeringen en een professionele service. Toch is het altijd verstandig om kleine bedragen te proberen voordat je zwaardere bedragen doet.

    De financiële opties op Gt Bet zijn divers, met mogelijkheden zoals overboeking, kredietkaarten en online portemonnees zoals PayPal. Dit zorgt het gemakkelijk om bedragen op je profiel te overmaken en uit te ontvangen. De website heeft eveneens een minimale laagste inleg, wat uitstekend is voor nieuwe gokers.

    Als je benieuwd bent naar een casino review van Gtbet, is het goed om te inzien dat veel gamingfans goedkeurend reageren op de soepele navigatie en de uitvoering van de titels. Toch is het altijd verstandig om je eigen feedback te verzamelen en te letten op ervaringen van verschillende spelers. Als je hopend bent naar een veilige online casino ervaring, kan Gtbet Casino een goede keuze zijn, met name als je apprecieert een breed aanbod aan games en een intuïtieve interface.

    Of je nu op zoek bent naar een Gt Bet Casino beoordeling, is het zichtbaar dat deze omgeving een aantrekkelijke mogelijkheid is voor talloz gamingfans. Het is desalniettemin altijd verstandig om verantwoordelijk te spelen en je eigen grenzen te volgen. Als je kiest om bij Gt Bet te gokken, kun je er zeker van zijn dat je een veilige en gebruiksvriendelijke omgeving vindt die talloz te levert.

  8. mojabetreview-Traulty

    Assuming you are searching for a fluid technique to experience sports betting and casino gaming remotely, the primary mobile portal is your ultimate choice [url=https://mojabetreview.net/app]mojabet app[/url] . Numerous players prefer the comfort of having their favorite games right at their fingertips, and that is specifically what the moja bet app provides. By deciding on the mobile version, you certify that you continually seize an moment to wager in real-time or play some reel games while distanced from your desktop.

    For those attracted to the mojabet casino app, the layout is engineered to remain intuitive and rapid, allowing for quick navigation between sports matches and premium casino titles. The method of beginning is straightforward. To start, you will have to complete the mojabet app download for android. By navigating to the main domain, you can effortlessly discover the mojabet apk download package. As soon as you have triggered the mojabet app download, merely observe the on-screen guides to wrap up the setup.

    Security is a priority, which is why participants should exclusively obtain the application mojabet file from trusted sources. After the app is set up, you can access your profile through the mojabet login app feature, which saves your login data for quicker access to your betting dashboard. Whether you are a fan of football wagering or digital play, the mojabet application offers a reliable and protected space for all your gaming sessions.

    The execution of the moja bet app is enhanced to function smoothly even on legacy devices, verifying that your experience continues high-grade regardless of your hardware. If you are set to upgrade your entertainment level, ensure you perform your mojabet download immediately. By holding the utility installed specifically onto your mobile device, you obtain complete authority over your bets, payments, and withdrawals at any time of the day. Join myriads of other satisfied members who have upgraded their experience with this powerful handheld software and commence profit-making right now.

  9. Обзор посвящён процессу восстановления после зависимостей. Мы расскажем о различных этапах реабилитации, поддерживающих ресурсах и важности мотивации в достижении устойчивого выздоровления.
    Подробная информация доступна по запросу – [url=https://abitu.ru/zdorove/1403-centr-lecheniya-alkogolnoj-zavisimosti.html]лучшая наркологическая клиника москвы[/url]

  10. Joker Jewels se consolidó como una de las alternativas altamente buscadas dentro del mundo de los tragamonedas en este país [url=https://joker-jewels-ar.pages.dev]joker jewels pragmatic[/url] . Si buscas una vivencia divertido, la web joker-jewels-ar.pages.dev constituye el sitio perfecto para empezar a conocer aquello que este juego firmado por Pragmatic Play tiene para brindar. Este juego destaca por su apariencia retro combinada con funciones novedosas que convierten a la experiencia en dinámica y extremadamente atractiva para los jugadores locales.

    Bastantes usuarios se cuestionan la forma de jugar joker jewels de forma efectiva. La clave principal es entender el cuadro de ganancias y cómo funcionan sus filas de pago. Al optar por participar en joker jewels, entras dentro de una temática radiante donde las joyas y el icónico protagonista principal resultan los protagonistas. Contrastando con otros juegos, joker jewels slot proporciona un nivel de riesgo que conserva el suspenso durante todo tirada. Si bien no existe una receta infalible sobre triunfar en joker jewels, el control equilibrado de tu capital y la conocimiento previo de la dinámica de los dibujos bonificados se muestran esenciales para optimizar tus sesiones.

    Para quienes consultan respecto a las funciones extras, a menudo los usuarios pretenden encontrar joker jewels dice u versiones parecidas en los sitios de apuestas, sin embargo la versión estándar sigue siendo la preferida por su sencillez y generosas ganancias. La web joker jewels argentina habilita el ingreso directo a este slot de calidad premium, logrando que disfrutes de jokers jewels usando cualquier terminal portátil o computadora.

    Al optar por joker jewels online, tienes la garantía de gozar de un programa de máxima calidad. Este título creado por la compañía líder joker jewels pragmatic es reconocido por su transparencia y calidad visual. Si persigues alegría verdadera dentro de un joker jewels casino seguro, el sitio indicado te brinda todas las herramientas necesarias para comenzar ahora mismo. No olvides que jugar debe ser siempre una actividad recreativa. Investiga las posibilidades, familiarízate con todo joker jewel que aparece sobre los carretes y disfruta de una de las partidas altamente valoradas en el panorama de los slots online presente.

댓글 달기

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