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”의 70,789개의 댓글

  1. В этой публикации мы предложим ряд рекомендаций по избавлению от зависимостей и успешному восстановлению. Мы обсудим методы привлечения поддержки и важность самосознания. Эти советы помогут людям вернуться к нормальной жизни и стать на путь выздоровления.
    Нажмите, чтобы узнать больше – [url=https://9610085.ru/zdorove/professionalnyj-vyvod-iz-zapoya]вывод из запоя без госпитализации[/url]

  2. Главная задача — вернуть контроль над самочувствием мягко и последовательно. Мы не соревнуемся в дозах, а собираем устойчивую траекторию улучшения: каждый модуль терапии отвечает за одну цель и имеет своё «окно оценки». Если отклик ниже ожиданий — меняем ровно один параметр (темп, последовательность или поведенческий элемент среды), чтобы точно понимать, что помогло.
    Ознакомиться с деталями – [url=https://vyvod-iz-zapoya-v-kazani16.ru/]вывод из запоя на дому недорого казань[/url]

  3. El juego online es una actividad que debe ser disfrutada siempre desde la prudencia y el entretenimiento, priorizando en todo momento el bienestar del usuario [url=https://needfor-slotscasino.es/juego-responsable]need for slots[/url] . En la plataforma Need for Slots, la proteccion de los usuarios es una prioridad absoluta. Por ello, el portal ha dedicado una seccion dedicada a la fomento del juego responsable, donde se brindan herramientas y recomendaciones esenciales para mantener una relacion saludable con las apuestas. Al acceder a Needforslots, los usuarios descubriran recursos disenados para que la actividad ludica nunca deje de ser divertida ni se convierta en un problema.

    Para garantizar este entorno seguro, Need for Slots implementa diversas herramientas de gestion. Entre las mas importantes se encuentran los topes de ingreso, que permiten a los jugadores configurar topes economicos diarios, semanales o mensuales. Ademas, existen opciones de autoexclusion para aquellos momentos en los que se necesite tomar un periodo de pausa. Es esencial que cualquier persona que entre en Needforslots sea consciente de que el juego debe ser considerado como una opcion de ocio y nunca como una fuente de dinero o una solucion a problemas financieros.

    La pagina de juego responsable en Need for Slots tambien contiene informacion valiosa sobre como identificar las senales de alarma relacionadas con el juego compulsivo. Si un usuario percibe que esta perdiendo el control, el sitio proporciona el contacto con organizaciones de ayuda profesional, promoviendo siempre la honestidad y el respaldo. La comunidad de Needforslots se edifica sobre valores de integridad y consideracion, garantizando que cada sesion de juego se lleve a cabo en un marco de proteccion total.

    Si quieres disfrutar de las slots y otros juegos de casino, te invitamos a explorar las secciones informativas sobre conductas adecuadas en Need for Slots. Mantener una mentalidad prudente y establecer limites claros es la mejor forma de garantizar que el azar continue siendo un entretenimiento divertido. Recuerda que en Needforslots, tu bienestar y tranquilidad son lo mas importante, permitiendote navegar por el mundo del juego con total seguridad y responsabilidad.

  4. chickenroad-ruirusy

    Si deseas hallar una experiencia trepidante y agil en el ambito de los juegos de azar digitales, el sitio [url=https://chickenroad-reviewgame.es]chickenroad[/url] es tu destino obligatorio. Este espacio web se ha establecido como la opcion preferente para aquellos usuarios que buscan dominar el famoso juego chicken road, proporcionando un estudio detallado sobre sus mecanicas y opciones. Al visitar esta web, los jugadores descubren una resena chicken road integra que desglosa paso a paso que hace a este software uno de los mas interesantes en la seccion de los juegos de choque.

    El juego chicken road es un exponente destacado del estilo crash chicken road, mientras la adrenalina asciende a conforme el factor sube. En el portal, aprenderas a fondo la mecanica chicken road, la cual es simple pero altamente adictiva: el proposito es retirar tus premios siempre que el recorrido se detenga. La web no solo describe las instrucciones, sino que indaga en la estrategia chicken road para que cualquier usuario pueda incrementar sus posibilidades de victoria. Gracias a los consejos practicos y las guias detalladas, podras comprender mejor cuando es el instante perfecto para cobrar tus jugadas y cuando jugarsela un extra.

    Aparte de los articulos explicativos, el portal proporciona un panorama preciso al gameplay chicken road, facilitando a los novatos ver como opera el juego en tiempo real previo a invertir su capital. Entender la fluidez y el compas de chicken road es esencial para todo apasionado que quiera perfeccionar su destreza. Si te motivan los titulos rapidos y necesitas una plataforma confiable y experta, chicken road se perfila como la mejor opcion para vivir un tiempo de ocio. Accede a la pagina para conseguir toda la conocimiento requerida, comenzando por las bases tecnicas llegando a los consejos mas complicados. La agrupacion de jugadores que ya aprovecha de chicken road aumenta cada jornada, y estar bien preparado es el paso inicial para transformarte un especialista en este desafiante desafio. No dejes pasar la oportunidad de mejorar tu tecnica siguiendo las sugerencias de los profesionales en este espacio digital.

  5. Should you are hunting regarding a truly exciting technique to test your chances and strategy, the Plinko game has evolved into among the most popular selections serving gaming enthusiasts throughout the region [url=https://plinko-84.pages.dev]plinko[/url] . By visiting plinko-84.pages.dev, users can delve into an excellent adventure that brings the vintage retro-style thrill right onto your screen. As the demand concerning a dependable Plinko Malaysia website grows, this hub shines by providing a fluid layout that is tailored for each of desktop and handheld clients.

    The Plinko casino game is lauded owing to its simplicity and the potential of profitable outcomes. When you enjoy the Plinko game online, the goal is simple: drop a sphere starting at the summit belonging to a pointed board and observe it ricochet across numerous obstacles once it lands inside a multiplier slot at the bottom. This fundamental mechanic is the reason the Plinko online game quite engaging and easy to learn catering to novices and pros both.

    Regarding individuals keen on the rivalry-based aspect related to matters, plenty of players are hunting for a Plinko Malaysia real money opportunity. This exact portal supplies a safe space as fans can savor the Plinko casino thrill as they keeping their information secured. Regardless of if you are hunting for a relaxed round or aiming to maximize your payouts, the Plinko game online real money alternatives provide a level involving enthusiasm that keeps players coming back seeking additional action.

    The charm of the Plinko online setup is that it demands zero intricate skill sets, however it showcases plenty of tactical complexity concerning the way you control your wagers. As an increasing number of people discover the pleasure of this pastime, it is necessary to select a service that upholds integrity and fast performance. By checking out the functions found on plinko-84.pages.dev, you are stepping into a lively group comprising players who value the quick-fire character of this modern staple. Join the action right now and observe where the ball settles while you experience the top quality of Plinko entertainment.

  6. Internet-Casino OscarSpin ist ein innovative Anwendung, die sich durch ein zeitgema?es Layout und eine gro?e Auswahl an Casino-Spielen sowie Echtzeit-Spielen auszeichnet [url=https://oscar-spin-4.onrender.com]oscarspin[/url] . Die Plattform hat in den letzten Jahren an Beliebtheit gewonnen, insbesondere bei Spielern, die Wert auf eine intuitive Benutzeroberflache und eine umfassende Palette an Spieloptionen legen.

    Doch was macht das Casino genau zu einer attraktiven Wahl fur Spieler in Deutschland? Dieser Artikel gibt einen Einblick uber die wichtigsten Faktoren des Casinos, von der Einschreibung bis hin zu den Auszahlungsbedingungen.

    Das Online- Casino-Angebot OscarSpin bietet eine gro?e Auswahl an Casino-Spielen, die sowohl Neulinge als auch erfahrene Spieler ansprechen. Besonders interessant sind die klassischen Spielautomaten, die mit lockenden Bonusangeboten und attraktiven Auszahlungsquoten locken. Viele Spieler schatzen zudem die Chance, direkt uber die Plattform auf das Casino zuzugreifen, ohne zusatzliche Programme herunterladen zu mussen. Die Plattform ist auf deutscher Sprache verfugbar, was die Verwendung fur deutsche Spieler deutlich optimiert.

    Wer sich fur das Casino einschreiben mochte, kann dies in kurzen Schritten tun – die Einschreibung ist schnell erledigt und ermoglicht sofortigen Zugang zu den Glucksspieloptionen.

    Ein wichtiger Aspekt fur viele Spieler ist die Frage nach der Seriositat des Casinos. OscarSpin Casino hat sich in der Community einen guten Vertrauenswert erworben, besonders wegen seiner klaren Zahlungsmodalitaten und der zugigen Bearbeitung von Ein- Auszahlungen. Wer sich fur eine Anmeldung entscheidet, sollte jedoch darauf achten, dass das Casino lizenziert ist und den deutschen Rechtsvorschriften entspricht ist. Die Anmelde- Prozesse sind einfach gestaltet, sodass auch weniger technikaffine Nutzer keine Herausforderungen haben sollten.

    Wer sich fur OscarSpin online fragt findet zudem haufig frische Bewertungen von anderen Spielern. Diese geben oft wertvolle Informationen in die Ausfuhrung der Spiele, die Fairness der Auszahlungen und den Support. Besonders popular ist OscarSpin bei Spielern, die Wert auf eine moderne Smartphone-Optimierung legen, da die Website auch uber mobile Gerate optimal erreichbar ist.

    Abschlie?ende Bewertung: OscarSpin Casino ist eine lohnenswerte Alternative fur Spieler, die ein modernes Online-Casino mit einer breiten Auswahl an Casino-Spielen suchen. Die benutzerfreundliche Anmeldung, die effizienten Zahlungsmodalitaten und die bundesdeutsche Verfugbarkeit machen es insbesondere interessant fur den bundesdeutschen Spielermarkt. Wer sich fur eine Anmeldung entscheidet, sollte jedoch regelma?ig die aktuellen Regeln prufen und auf eine sichere Kommunikation vergewissern, um ein gerechteres und ungestortes Glucksspielerlebnis zu gewahrleisten.

  7. goldenlion-arrarly

    When searching towards some premium play experience, the site situated within goldenlion-3.badutcok.workers.dev has become a point regarding curiosity for numerous fans [url=https://goldenlion-3.badutcok.workers.dev]goldenlion review[/url] . This destination serves being the access into the broader realm associated with the golden lion casino, providing that modern layout which appeals to users hunting regarding diversity plus trust. Whenever you are conducting a goldenlion casino review, you might quickly notice that the webpage highlights player satisfaction, securing how browsing is simple together with the fact the selection of games remains readily accessible to each desktop and handheld participants.

    The fame linked to the golden lion brand remains built around its commitment for offering an captivating atmosphere. Regardless if you remain the enthusiast of traditional table options alternatively the newest digital reels, the goldenlion casino online portal aims towards deliver the smooth environment. Plenty players looking regarding some reliable casino golden lion experience enjoy the diverse assortment comprising titles accessible, which are crafted towards offer high-quality art and fair play logic. Doing a detailed goldenlion review shows the fact the site weighs fun value plus strong protection steps, providing members peace of mind as one enjoy their preferred hobbies.

    Choosing the ideal casino goldenlion platform is essential to every committed gamer. Given the golden lion online sector becoming increasingly challenging, sites similar to that site separate themselves by steady output plus constant refreshes. The goldenlion casino stays known regarding its alert assistance together with some easy registration process, creating the portal the inviting option towards those which are beginners to digital gambling. By checking the offered URL, users can explore the functions that previously fixed the standing linked to the golden lion like a known name within the industry. As you look into the services, the situation grows evident how quite plenty gamers move towards this particular layout. Regarding players searching for the even play adventure, the portal offers the full set featuring options which mirror the great standards expected by a elite online site. Whether you remain betting to pleasure plus searching regarding a durable spot, the portal stays well-positioned for fulfil the demands.

  8. После первичного разговора врач собирает анамнез, уточняет длительность запоя, количество выпитого, возраст, аллергию, хронические диагнозы и лекарства, которые принимаются регулярно. Медицинский осмотр дает данные для выбора схемы, а специалисты учитывают сведения о ранее назначенных средствах. Затем оцениваются давление, пульс, сознание, выраженность тремора и признаки обезвоживания. При необходимости центр использует экспресс-диагностику. После осмотра такой подход позволяет сформировать схему, подобрать объем раствора и определить скорость введения.
    Подробнее – [url=https://1.kapelnica-ot-zapoya-v-moskve14.ru/]капельница от запоя клиника москва[/url]

  9. Клиника принимает людей с разным стажем зависимости. Одни обращаются впервые, другие проходили лечение несколько раз за год и сталкивались со срывами. Очень важно не ждать, пока проблемы станут тяжелыми. Наркологическая помощь необходима при выраженной абстиненции, острой интоксикации, патологическом влечении, изменениях поведения и психических нарушениях. Если состояние связано с делирием или другими опасными проявлениями, обращение за медицинской помощью становится жизненно важным.
    Получить больше информации – [url=https://narkologicheskaya-klinika-v-krasnoyarske20.ru/]наркологическая клиника нарколог в Красноярске[/url]

  10. Verantwortungsbewusstes Spielen reprasentiert den Mittelpunkt einer sicheren und attraktiven Casino-Erfahrung [url=https://spino-gambino-casino.ch/verantwortungsbewusstes-spielen]spinogambino[/url] . Seitens spinogambino legen wir gro?ten Wert darauf, dass unsere Spieler ihre Tatigkeiten stets unter Kontrolle behalten und das Vergnugen am Spiel auf keinen Fall verlieren. Die Webseite spino gambino stellt somit umfangreiche Informationen und effektive Tools bereit, um ein gesundes Spielverhalten dauerhaft zu starken.

    Das Konzept des kontrollierten Zockens grundet darauf, Wetten als eine Variante des Entertainments anzusehen statt als Geldeinnahme. Um dafur zu sorgen, stellt spinogambino seinen Kunden verschiedene Optionen hinzu. Dies beinhalten vor allem individuelle Limitierungen, Verlustbegrenzungen oder zeitlich gesteuerte Spielunterbrechungen. Diese Werkzeuge sind darauf ausgelegt, jedem Spieler die restlose Kontrolle uber seine Ausgaben und seine Zockdauer zu bieten.

    Sollten Sie das Gefuhl haben, dass Ihr Spielverhalten sich negativ verandert oder Sie Beistand benotigen, bietet die Plattform spino gambino schnellen Zugang zu professioneller Unterstutzung. Wir agieren eng mit renommierten Verbanden dort, die auf Gefahrenabwehr spezialisiert sind. Durch unsere Seite finden Sie samtliche wichtigen Kontakte, um vertraulich und fachmannisch Beistand zu finden. Zusatzlich offerieren wir einen Selbsttest an, sodass Sie Ihren eigenen Spielstil stetig analysieren konnen.

    Wir glauben fest daran, dass Offenheit und Information die geeignetsten Ansatze sind, um Risiken zu minimieren. Fur spinogambino ist die Sicherheit unserer Community wichtigste Maxime. Wir streben an sicherzustellen, dass jeder Augenblick, die Sie auf unserer Seite nutzen, von Freude und verantwortungsvollem Handeln durchdrungen ist. Sollten Sie Anfragen zu den Hilfsmitteln haben, hilft Ihnen unser Support stets bereit. Schauen Sie auf unsere spezielle Informationsseite, um mehr uber unsere Ideologie und Mittel zum Schutz zu erfahren. Wir stellen gemeinsam sicher, dass Glucksspiel ein sicheres Hobby erhalt. Bitte spielen Sie immer besonnen und gehen Sie keinesfalls uber Ihre eigenen finanziellen Moglichkeiten hinweg. Ihr Schutz und Ihr Wohlergehen haben bei uns bei jedem Spiel immer oberste Wichtigkeit.

댓글 달기

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