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”의 68,924개의 댓글

  1. Die Frumzi Casino gilt in der Welt der modernen Freizeitgestaltung als die etablierte Größe positioniert sowie gewinnt immer mehr Spieler aus dem heimischen Markt hinzu [url=https://frumzi-casino-6.lionakonangzn.workers.dev]frumzi online casino[/url] . Spieler, die nach der modernen Seite ausschau hält, gelangt umgehend auf das Frumzi Online Casino, welches mit diesem beeindruckenden Portfolio an Spielen und diesem intuitiven Aufbau überzeugt. Falls man sich die Frumzi Casino Erfahrungen betrachtet, wird erkennbar, weshalb besonders solche flüssige Handhabung neben solche kurze Reaktionsgeschwindigkeit der Webseite herausragen. Zahlreiche Nutzer loben solche breite Auswahl, bei welcher man im Frumzi Slots Kasino aus jener Fülle an erstklassigen Spielen wählen darf, die von führenden Herstellern stammen.

    Ein wichtiger Punkt für Kunden bleibt selbstverständlich solche Sicherheit sowie solche Stabilität bei Finanztransaktionen. Die Frumzi Casino Auszahlung wird zudem in jenen Kundenstimmen regelmäßig lobend erwähnt, denn dieser Prozess effizient organisiert wurde sowie solche Beträge umgehend transferiert können. Wenn es darum geht, bei Frumzi zu bezahlen, liegen den Nutzern diverse bewährte Wege zur Verfügung, die die unkomplizierte Transaktion ermöglichen. Dieser leistet beträchtlich hierzu dazu, weshalb sich Spieler bei diesem Anbieter hervorragend behandelt wähnen. Ebenso für Zocker aus Frumzi Deutschland ist das Portal eine interessante Anlaufstelle, weil die Seite eine abwechslungsreiche Umgebung liefert, die einerseits für Einsteiger als auch für geübte Spieler konzipiert ist.

    Spieler, die das Casino Frumzi betritt, erkennt sofort solchen Schwerpunkt auf dieses reibungsloses Gaming-Erlebnis. Ganz gleich, ob nun man über das Desktop oder auf dem Tablet zockt, jene Frumzi Casino Online liefert jene zuverlässige Basis, die wenige Ansprüche unerfüllt lässt. Zusammenfassend ist festzustellen, dass solche guten Frumzi Erfahrungen wahrlich kein Zufall bleiben. Die Kombination aus einem breiten Portfolio, jener korrekten Durchführung solchen Ein- und Auszahlungen neben dem seriösen Auftritt gestaltet diese Seite zu jener unter den besten Optionen für Anhänger von Online-Glücksspielen. Spieler, die also jenes sicheres Online-Casino findet, sollte sich jene Sortiment des Frumzi kurz genauer betrachten neben sich selbst das Bild über solchen gebotenen Wegen verschaffen. Die Webseite bleibt mittels stetige Aktualisierungen und aktuelle Inhalte immer nah am Puls der Entwicklung sowie bietet nachhaltigen Gaming-Spaß auf hohem Level.

  2. onlyspins-Braxapy

    Une plateforme pour les jeux d’argent en ligne qui attire de plus en plus l’attention parmi les joueurs francophones a la recherche d’amusement et de recompenses possibles [url=https://onlyspins-36.vercel.app]Only Spin fr[/url] . Disponible sur le lien onlyspins-36.vercel.appun domaine specifique, ce site se presente comme une option innovante pour les amateurs de jeux de hasard, notamment les fans des machines a sous et des paris sportifs. Cependant de s’y enregistrer un compte, il est essentiel de bien s’informer pour eviter les desagrements. Voici une analyse approfondie sur le site Only Spin, ses atouts et ses eventuels inconvenients.

    Le site Only Spin se distinge par son design intuitive, parfait pour les utilisateurs presses. Le site propose une vaste gamme de jeux, notamment des slots en ligne, des paris sportifs et peut-etre des variantes de betting. Pour les joueurs francophones, c’est un vrai plus de pouvoir naviguer dans une langue familiere, ce qui simplifie la comprehension des conditions et des details. Les avis sur Only Spin sur les forums et sur les reseaux sociaux sont dans l’ensemble positifs, mettrant en avant l’efficacite des operations et la variete des jeux proposes. Neanmoins, comme pour tout casino en ligne, il est crucial de verifier la legalite et la fiabilite du site avant tout versement de l’argent.

    Un point cle a considerer est la reputation de Only Spin en matiere de paris. Certains joueurs temoignent un service de retrait efficace, des bonus attractifs, mais d’autres mentionnent des problemes techniques ou des restrictions sur les versements. Pour eviter les mauvaises surprises, il est conseille de etudier en detail les conditions generales et de consulter les avis Only Spin les plus pertinents avant toute inscription.

    Only Spin semble prometteur pour ceux qui cherchent un jeu sans encombre, mais une vigilance supplementaire est necessaire. En synthese, Only Spin est une alternative attrayante pour les passionnes en quete de divertissement en ligne, notamment pour les amateurs de le langue francaise. Que vous optiez pour des machines a sous Only Spin ou des paris sportifs, il offre une alternative innovante. Neanmoins, de maniere generale, il est essentiel de bien se renseigner et de parier avec moderation. Les retours Only Spin different, mais une bonne preparation permet de beneficier a plein de l’experience sans risques inutiles. Si vous recherchez Only Spin comme plateforme de jeux, une etude detaillee des retours d’experience reste la cle pour une decision eclairee.

  3. spinogambino-opift

    La experiencia de juego online ha evolucionado notablemente, y una cantidad creciente de usuarios buscan la comodidad de llevar su diversion a todas partes [url=https://spinogambino-bonuscasino.es/app]spinogambino casino app[/url] . En este contexto, surge la propuesta de Spinogambino, una plataforma que ha captado la atencion de los jugadores por su catalogo de opciones y su optimo funcionamiento. Si buscas acceder a este espacio desde tu movil, la Spinogambino app es la herramienta definitiva para disfrutar de una navegacion fluida y rapida, optimizada disenada para dispositivos moviles.

    Para quienes quieren comenzar a jugar de inmediato, el proceso de instalacion es sencillo y directo. El Spinogambino casino app esta creado para ofrecer una plataforma facil de usar que facilita tanto el alta como la gestion de bonos y la seleccion de titulos. Muchos usuarios prefieren optar por el Spinogambino apk para asegurar una conexion estable y un acceso rapido desde la pantalla de inicio de su smartphone. Al realizar el Spino Gambino download, los jugadores aseguran que cualquier sesion de juego sea eficiente, sin los retrasos que a veces presentan los navegadores convencionales.

    La adaptabilidad de la experiencia Spino Gambino mobile es uno de sus puntos fuertes. No importa si utilizas un sistema operativo u otro, la infraestructura detras de la plataforma permite que el Spino Gambino app se ajuste sin errores a diferentes tamanos de pantalla. Si aun no has empezado, realizar el Spino Gambino apk es el primer movimiento hacia una forma de juego mas moderna y portatil. Por su parte, el proceso de Spinogambino download asegura que siempre tengas a mano tus apuestas preferidas con la maxima seguridad. En definitiva, instalar la version oficial de Spinogambino mobile es la eleccion acertada para quienes no quieren perderse ni un segundo de accion. Descubre hoy mismo por que muchos usuarios eligen la fiabilidad y el confort que ofrece esta aplicacion, convirtiendose en la referencia lider para los amantes de los juegos de casino en su version digital mas avanzada.

  4. Совместные занятия с другими пациентами создают атмосферу поддержки и понимания. Под руководством психотерапевта участники группы делятся опытом, обсуждают сложные ситуации и находят оптимальные способы удержаться от срыва.
    Выяснить больше – https://lechenie-alkogolizma-sochi0.ru/lechenie-alkogolizma-anonimno-v-sochi/

  5. Все медицинские записи и личные данные хранятся на защищённых серверах с ограниченным доступом. Только лечащий врач и медицинская сестра имеют право просматривать их при необходимости оказания помощи.
    Подробнее – http://тайный-вывод-из-запоя.рф/vyvod-iz-zapoya-na-domu-v-samare/

  6. Этот медицинский обзор сосредоточен на последних достижениях, которые оказывают влияние на пациентов и медицинскую практику. Мы разбираем инновационные методы лечения и исследований, акцентируя внимание на их значимости для общественного здоровья. Читатели узнают о свежих данных и их возможном применении.
    Подробная информация доступна по запросу – [url=https://shokolad-txt.ru/kapelnicza-ot-pohmelya-idealnoe-reshenie-dlya-bystrogo-vosstanovleniya/]”delta clinic ru[/url]

  7. Этот медицинский обзор сосредоточен на последних достижениях, которые оказывают влияние на пациентов и медицинскую практику. Мы разбираем инновационные методы лечения и исследований, акцентируя внимание на их значимости для общественного здоровья. Читатели узнают о свежих данных и их возможном применении.
    Узнать больше – [url=https://prigotovim-v-multivarke.ru/kodirovanie-ot-alkogolizma-osvobozhdenie-ili-mif.html]Кодировка от алкоголя[/url]

  8. Наши специалисты оценивают клинические признаки запоя уже при первом осмотре — измеряют пульс, артериальное давление и насыщение кислородом, осматривают кожу и слизистые оболочки на предмет обезвоживания. Специальные тесты на когнитивные функции позволяют определить степень дезориентации и риск развития острых психотических реакций.
    Разобраться лучше – http://тайный-вывод-из-запоя.рф/

  9. chicken-Bulfips

    Cuando necesitas una vivencia de juego trepidante y veloz, llego el instante de explorar Chicken Road [url=https://chicken-roadreview.es]juego chicken road[/url] . A traves del portal digital chicken-roadreview.es encontraras la completa guia necesaria para controlar este producto que ha atraido a cientos de jugadores. Se trata de un juego fundamentado en la dinamica de crash, en el cual la emocion sube a cada instante mientras el personaje trata de pasar la calzada. Visitando una detallada resena chicken road, veras por que esta alternativa brilla comparado con diversos pasatiempos de azar semejantes, unificando un formato estetico sencillo con una mecanica chicken road adictiva y sencilla.

    La meta central en chicken road es medir tu intuicion para recoger tus beneficios previo a que el suceso de fallo suceda. La agilidad del gameplay chicken road facilita que asi principiantes y profesionales puedan aprovechar rondas breves pero intensas. No obstante, no todo depende de tema de azar. Aplicar una estrategia chicken road fuerte es capaz de generar una variacion significativa en tus ganancias a largo tiempo. En la plataforma mencionado, los expertos desglosan los superiores tips para administrar tu dinero y saber en que momento es la oportunidad idonea para salir.

    Bastantes usuarios que prefieren un entretenimiento agil prefieren chickenroad por su curva de aprendizaje accesible. La interfaz es clara, haciendo que te concentres exclusivamente en la partida. Si aun guardas dudas sobre la forma de optimizar tus envites, los articulos extensos en chicken-roadreview.es actuan como una guia vital. Aprenderas a identificar patrones y comprender la mecanica de el multiplicador en este popular juego crash chicken road. En definitiva, si quieres aumentar tu diversion y aprender a detalle las leyes del juego chicken road, este sitio web se transforma en tu mas grande socio informativo. No desaproveches la oportunidad de desarrollar tu maestria en este ameno reto y mira hoy mismo las indicaciones de los expertos para incrementar tu estatus de apuesta y saborear la vivencia al tope en toda ronda que juegues.

  10. Should you are searching for an immersive and exciting gaming experience in India, the patang platform remains prominent as a top-tier venue for enthusiasts [url=https://patang-8.vercel.app]patang game[/url] . While the realm of virtual amusement evolves, patang has developed as a primary option for players seeking excitement and reliability. Regardless of if you are a devotee of standard gambling or contemporary dynamic quests, the patang official site provides a seamless atmosphere engineered to satisfy the diverse choices of the national community.

    When investigating the patang online platform, you will discover a vast range of entertainment options tailored to match your preference. Plenty of participants visit the patang casino section, which features an stunning collection of products that keep gamers focused for extended periods. Starting with vintage card games to latest machines, the patang game catalog is frequently improved to guarantee a fresh and superior adventure. For those who appreciate the rush of risks, the patang bet tool offers a intuitive interface that renders participating in your preferred activities both straightforward and safe.

    A single of the important benefits of opting for patang India is its accessibility. The patang mobile setup is optimized for mobile devices, enabling you to carry your entertainment wherever you travel. Like highlighted in many a patang casino review, the portal succeeds in delivering rapid payouts and dedicated help, which is essential for any trusted patang betting site. Whether you are hunting for a patang casino online or merely desire to partake in a leisurely patang online casino period, the dashboard is intuitive adequate for as well as beginners and experienced pros.

    Overall, for anybody looking for a verified patang online hub, this platform succeeds on all sides. Featuring strong safety protocols and a concentration on customer satisfaction, it has swiftly grown into a popular choice for those attracted in casino patang pursuits. Provided that you desire to enter the domain of virtual gaming currently, visiting the site will open the path to a universe of infinite opportunities and potential rewards. Partake in the best of digital play with the thorough solutions presented by this platform.

댓글 달기

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