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

  1. ohmyspins9-enquize

    Wer, die Person, beim Stobern nach dem modernen und spannenden Online Casino agiert, entdeckt zwangslaufig auf die Dienste von ohmyspins [url=https://oh-my-spins-9.onrender.com]ohmyspins bewertung[/url] . Diese Webseite wurde im Bereich des virtuellen Entertainments rasch einen Namen gemacht sowie zieht User durch eine gro?artige Palette an Games sowie attraktive Bonusaktionen hin. Wenn man die zahlreichen ohmyspins erfahrungen betrachtet, wird sofort klar, dass die Spielbank besonders aufgrund seiner intuitive Oberflache nebst das flussige Design geschatzt wird. Die Webseite, die unter der angegebenen Adresse aufrufbar ist, gewahrt einen schnellen Eintritt zu einer Vielzahl an Spielautomaten, Tischspielen zusammen mit einem nervenaufreibenden Live-Casino-Bereich.

    Viele Gamer stobern online nach einer fundierten ohmyspins bewertung, damit sie sich vor der Registrierung einen exakten Eindruck uber die Vertrauenswurdigkeit sowie der Spieleauswahl zu machen. Durch das ohmyspins casino review darf haufig unterstrichen, dass die Seite mit namhaften Spieleentwicklern kooperiert, was hinsichtlich top Qualitat sowie transparente Gewinnchancen spricht. Ebenso jene ohmy spins Bonusangebote fur Neukunden generieren stetig bezuglich positive Resonanz. Eine personliche ohmyspins erfahrung belegt daruber hinaus, dass der Support schnell arbeitet samt bei Problemen schnell zur Seite steht.

    Sucht man gezielt wegen ohmyspins casino erfahrungen, findet man in diversen Foren und Portalen meist lobende Worte hinsichtlich die rasche Bearbeitung bei Transaktionen sowie die mobilen Optimierung der Seite. Die Plattform ohmyspins schafft es, der erstklassige Atmosphare zu erzeugen, welche gleicherma?en Gelegenheitsspieler als auch Profis begeistert. Jeder, der diesen ohmyspins review durchliest, wird bemerken, dass Sicherheit und Spielerschutz in diesem Casino Prioritat haben. Zusammenfassend prasentiert die Seite eine gelungene Mischung bestehend aus Unterhaltung sowie Spannung. Abschlie?end lasst sich sagen, dass ohmyspins eine top Anlaufstelle hinsichtlich Zocker bildet, die Wert auf eine massive Auswahl und Zuverlassigkeit setzen. Falls man demnach beim Ausschauhalten nach einem neuen Favoriten im Bereich der Online-Casinos ist, musste die Seite einmal genauer anschauen und sich selbst ein Bild uber das Angebot machen. Die Kombination aus klassischen Slots und modernen Live-Formaten steht fur dauerhaften Spielspa?, welcher absolut keine Wunsche unerfullt lasst.

  2. chickenroad-acatry

    Si anhelas aquella experiencia relacionada con el juego intensa ademas de sencilla desde tu dispositivo, la app chickenroad constituye esa respuesta optima enfocada hacia aquellos seguidores de esa excitacion [url=https://chickenroad-login.es/app]chicken road telefono[/url] . Aquella web se posiciona ejerciendo de alguna de ciertas posibilidades mas conocidas de aquellos que intentan vivir mediante esparcimiento movido dentro de algun espacio. A causa de esta puesta a punto sobre la app chicken road, ahora parece factible acceder a la totalidad de las herramientas con manera agil, clara asi como plenamente pensada para pantallas sensibles, haciendo posible iniciar partidas bajo absoluta naturalidad.

    Pensando en empezar, el proceso de descarga chicken road se muestra facil ademas agil. Siempre que usas aquel soporte operativo de Apple, la version de chicken road ios asegura un rendimiento seguro y seguro, disenado particularmente orientado a potenciar la potencia desde tu movil. Asimismo, los jugadores de Google consiguen obtener la chicken road apk a fin de ejecutar la puesta en marcha bajo forma personal, cumpliendo varios procedimientos sumamente simples donde posibilitan ajustar el contacto directo en escasos momentos. Esta armonia de chicken road android asegura logrando que casi todos cualquier persona logre integrarse en esa aventura estando libre de obstaculos tecnicas.

    Cuando haya sido completada esta instalacion, aquella interfaz de chicken road movil se acomoda integramente para nuestras demandas del usuario gamer, ofreciendo esa interaccion agil asi como eficaz. Siempre que posees cierta pregunta durante el proceso bien sufres algun dificultad informatico, ese soporte referente a ayuda por medio de chicken road telefono se encuentra accesible con el fin de ayudarte acerca de dicha preparacion sobre aquel usuario. No pierdas aquel lapso buscando elecciones complicadas; esa modalidad oficial para telefonos inteligentes parece dicha mejor forma para garantizar aquella experiencia estando libre de pausas. Independientemente de si escojas dicha constancia de esos soportes de Apple y esta adaptabilidad que ofrece esa APK, esa plataforma pone a alcance de tu mano cada dicha emocion propia del entretenimiento. Entra prontamente ya, completa esa puesta a punto ademas de averigua por que varios jugadores desde hace tiempo resultan elegido esta herramienta con el fin de divertirse empleando todo punto, asegurando asi horas sobre el entretenimiento bajo elevada categoria por ese particular equipo privado.

  3. Этот текст посвящён сложным аспектам зависимости и её влиянию на жизнь человека. Мы обсудим психологические, физические и социальные последствия зависимого поведения, а также важность своевременного обращения за помощью.
    Где почитать поподробнее? – [url=https://9610085.ru/zdorove/vyvod-iz-zapoya-stacionar]вывод из запоя екатеринбург[/url]

  4. spinogambinocasino-Insach

    Learning the legal basis of an online casino hub is vital for each user, and the Spinogambino Terms and Conditions area is designed to deliver absolute honesty [url=https://spinogambinocasino-game.net/terms-and-conditions]spino gambino[/url] . By browsing the primary portal at spinogambino-game.net/terms-and-conditions , users acquire permission to the regulations that manage their membership, gameplay, and monetary payments. Reading these stipulations is the primary action toward ensuring a secure and exciting journey when participating with the wide selection of options available on Spino Gambino.

    The user agreements define the requirements for user eligibility, confirming that all members meet the essential statutory age thresholds and local barriers. When you sign up with Spinogambino, you agree to follow these directives, which encompass items from bonus betting terms to mindful gambling methods. These regulations are in effect not merely to secure the service but also to shield your personal records and balance. By obeying these laws, you help maintain a just space where each user has an uniform chance of victory.

    Also, the paper clarifies the processes for transfers and payouts, describing the timelines and identity procedures necessary to maintain your money protected. If you at any time face a conflict or possess queries concerning a promotion, the Spino Gambino conditions offer clarity on the dispute settlement flow and customer service rules. It is highly recommended to revisit this portal regularly, as business standards may be updated to indicate fresh rules or platform updates.

    Valuing your awareness of these stipulations grants for a stress-free gaming adventure. Assuming you are checking latest machine options or joining in real-time gambling events, getting knowledgeable concerning the Spinogambino policies empowers you to take improved judgments. Forever recall that mindful playing is a goal, and the guidelines established on the portal are designed to foster a serious and protected environment for fans. By staying you current with the information at spinogambino-game.net/terms-and-conditions , you ensure that your hours invested at Spino Gambino stays both entertaining and entirely consistent with the established platform requirements.

  5. Bienvenue sur la rubrique d’introduction de Spino Gambino, votre adresse de reference dans domaine de l’univers des jeux de casino en ligne [url=https://spino-gambinojeux.fr/a-propos-de-nous]spino gambino[/url] . La interface est imaginee afin d’apporter a tous les amateurs de divertissement un moment fluide, securisee ainsi que palpitante. Chez spinogambino, nous mettons une attention particuliere a selectionner les meilleures options ludiques pour ravir aussi bien les nouveaux joueurs que les joueurs les experts.

    L’objectif majeur de spino gambino consiste a batir un environnement ou l’honnetete ainsi que la surete restent au milieu de chaque interaction. Nous saisissons le fait que le monde des casinos virtuels semble parfois difficile, c’est pourquoi nous avons elabore un design ergonomique offrant la possibilite de consulter facilement a une large selection de divertissements prises, allant des slots aux jeux traditionnels. Tous les details de notre site est travaille pour vous garantir un usage rapide tout comme sans accroc, quel que soit votre support sur PC ou sur smartphone.

    La loyaute de nos utilisateurs represente notre objectif majeur. C’est pourquoi, nous adoptons des mecanismes de protection avances visant a preserver vos informations privees ainsi que vos echanges financiers. Notre staff travaille sans arret pour mettre a jour regulierement notre offre, vous assurant ainsi de trouver les sorties fraiches et les capacites les plus modernes de l’industrie. Au sein de spinogambino, nous pensons totalement le fait que le jeu doit avant tout garder un loisir. Ainsi, nous favorisons des habitudes de jeu responsable et mettons a disposition des instruments pour vous accompagner en toute serenite.

    En decidant de rejoindre la communaute spino gambino, vous optez pour un univers qui valorise la perfection et le bonheur des joueurs. Nous sommes heureux de batir un lieu dans lequel la qualite des aides croise les attentes des membres. Nous vous convions a explorer notre site et a profiter de l’experience rare que nous avons creee a votre intention. Pour des questions ainsi que recours a un support, notre support dedie reste a votre service pour vous accompagner a tous les niveaux de votre aventure parmi nous.

  6. В данной статье рассматриваются физиологические и эмоциональные аспекты зависимости. Мы обсудим, как организм реагирует на зависимое поведение, и какие методы помогают восстановить здоровье и внутреннее равновесие.
    Читать далее > – [url=https://fixbuilders.ru/pages/narkologicheskie-kliniki/]наркологическая клиника в екатеринбурге[/url]

  7. En tiempos recientes, este entretenimiento *Chicken Road* se ha conquistando popularidad a través de plataformas virtuales, especialmente dentro de plataformas como YouTube, en el que varios usuarios cuestionan siendo parece el juego real simplemente solo ilusión [url=https://chicken-road-es-60.onrender.com]Lo De Chicken Road Es Real[/url] .

    El portal digital *chicken-road-es-60.onrender.com* se presenta ser una para castellano este desafío, pero generarse incertidumbres sobre esta veracidad así como si realmente funciona como anuncian.

    Analicemos analizar siendo *Chicken Road* resulta real simplemente una evidente trampa, fundados en esas opiniones y experiencias por parte de los mencionados visitantes.

    —

    *El juego *Chicken Road* lo una para resistencia psicológica así como corporal, en el que los deben recorrer un sendero virtual que contiene desafíos y decisiones que ponen a la prueba esa determinación. Sin esto numerosos jugadores los cuales procurado visitar a este portal web descubren que no siempre funciona como debe u los cuales no ofrecen esa aventura que anuncia. Algunos denuncian sería una evidente farsa creada con el fin de defraudar a quienes desean alegría sin ofrecer dar nada.

    —

    La cuestión resulta ser ¿Es auténtico Chicken Road o una invención?. No obstante ese desafío existe en versión primigenia, esa traducción en español se presenta tener fallos de funcionamiento así como escasez de experiencia real. Diversos jugadores comentado al procuran jugar a ese juego, este web no se abre sin errores incluso envía a unas secciones incompletas. Esto resulta que que los pregunten si lo de Chicken Road es real u una clara farsa para quienes caen el ese timón.

    —

    Una pregunta resulta ser si *el juego de Chicken Road es real o falso*. Desde esa origen, este juego efectivamente contaba con la para realidad virtual, pero en versión en español, especialmente en plataformas tales como *chicken-road-es-60.onrender.com*, se presenta como una una mala reproducción que una prueba auténtica. Muchos jugadores asociado la circunstancia con otras variadas farsas dentro de redes en las que los cuales promete alegría sin proporcionar ofrecer valor a cambio.

    —
    Tras analizar resultado, aunque *Chicken Road* como esencia es conocido, esa versión en español accesible en diversos webs no parece constituir casi que una clara trampa o intento fallido de replicar el juego. Si procuras acceder, resulta necesario consultar referencias reputadas así como evitar plataformas las cuales no cumplan adecuadamente. La respuesta acerca de ¿Es auténtico Chicken Road o una trampa? en caso quedaría conclusa: no resulta sería una verdadera prueba, sino casi una engaño que conduce frustrando a quienes logran aprovecharla.

  8. Этот обзор посвящен успешным стратегиям избавления от зависимости, включая реальные примеры и советы. Мы разоблачим мифы и предоставим читателям достоверную информацию о различных подходах. Получите опыт многообразия методов и найдите подходящий способ для себя!
    Дополнительно читайте здесь – [url=https://e-marcet.ru/kapelniczy-ot-pohmelya-informacziya-ob/]deltaclinic[/url]

  9. Голова чугунная, сам никакой. Ни есть, ни пить. Капельница от похмелья — И человеку становится легче. И голова начинает соображать. Вывод из запоя капельница на дому — работает и после праздников. Советую глянуть источник: капельница на дом от похмелья [url=https://detoks.kapelnicza-ot-pokhmelya-ektb.ru]капельница на дом от похмелья[/url] Там и про то, сколько стоит капельница на дому для нашего города. Иногда один звонок решает всё.

  10. В этой медицинской статье мы погрузимся в актуальные вопросы здравоохранения и лечения заболеваний. Читатели узнают о современных подходах, методах диагностики и новых открытий в научных исследованиях. Наша цель — донести важную информацию и повысить уровень осведомленности о здоровье.
    Погрузиться в детали – [url=https://jurywise.ru/pages/narkologicheskij-stacionar-voronezh/]клиника для алкоголиков[/url]

댓글 달기

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