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”의 65,942개의 댓글

  1. ohmyspins-Zisex

    Alle, welcher auf der Suche nach einem modernen plus unterhaltsamen Online Casino sich befindet, stosst umgehend bei der Plattform ohmyspins [url=https://oh-my-spins.pages.dev]ohmyspins[/url] . Das Angebot geniesst zunehmender Beliebtheit seitens der User, die Prioritat legen auf ein riesiges Sortiment an Games zudem eine intuitive Gestaltung bevorzugen. Innerhalb dieser Analyse schauen wir uns das oh my spins casino starker unter die Lupe, um festzustellen, warum es bei den Kunden so gut ankommt. Sobald man die einschlagigen oh my spins erfahrungen studiert, wird schnell deutlich, dass primar das grosse Spektrum der Automaten sowie die lukrativen Bonus-Deals gunstig erwahnt werden.

    Das casino ohmyspins bietet eine beeindruckende Palette an Spieltiteln von etablierten Providern. Ob klassische Slots, moderne Video-Slots oder ein packendes Live-Casino-Erlebnis, hier findet jeder glucklich. Der Aufbau auf der Seite ist intuitiv gestaltet, sodass gleichermassen Einsteiger als auch Cracks schnell zurechtfinden. Ein zusatzlicher entscheidender Faktor fur Kunden ist die Sicherheit bei Geldtransfers. Die Gewinnauszahlung bei ohmyspins wird in vielen Berichten als schnell sowie nachvollziehbar beschrieben, was das Vertrauen in das Unternehmen nachhaltig starkt.

    Selbstverstandlich bedarf es auch eine kritische Reflektion dazu. Samtliche recensione ohmyspins weist darauf hin, dass der User vorab grundsatzlich uber die geltenden Bonusregeln kundig machen sollte. Derjenige, der nach einer tiefgrundigen oh my spins casino recensioni sucht, findet im Netz zahlreiche Expertenmeinungen, die das Gesamtpaket loben. Die gesammelten Berichte reflektieren insgesamt eine gute Tendenz wider, da das Portal durch Sicherheit, eine breite Spielauswahl nebst einen engagierten Kundendienst punktet.

    Zusammenfassend lasst sich sagen, dass dieses Spielcasino eine hervorragende Wahl fur jeden darstellt, die Vielfalt und Spannung wunschen. Wer ein zuverlassiges Zuhause fur sein Spiel bevorzugt, entdeckt beim casino ohmyspins einen starken Partner. Das Gesamtkonzept uberzeugt durch Professionalitat sowie ein sich stetig erweiterndes Spielsortiment, das keine Fragen offen lasst. Fur Spieler, die Wertschatzung fur hohe Standards haben, ist das Portal absolut einen Versuch wert. Tauchen Sie ein in die Welt des Casinos plus erfahren Sie, warum das Spielportal zu einer festen Grosse der Gaming-Szene aufgestiegen ist.

  2. Una experiencia en línea conocido como Pollo Veloz es una alternativa por los seguidores de pruebas populares y juegos de maniobras digitales [url=https://chicken-road-es-47.onrender.com]Chicken Road Opiniones Forocoches[/url] .

    Si necesitas información sobre este juego, desde perspectivas confiables, su reputación o el proceso se ejecuta, este guía te explicará a comprender qué es Chicken Road y qué opinan los aficionados sobre él.

    En espacios como Forocoches, donde se debaten opiniones sobre juegos y simulaciones de maniobras, La Carrera del Pollo se menciona con frecuencia. Los aficionados destacan que el producto implica en dirigir un coche en carreteras con giros pronunciadas, donde la meta es evitar choques y mantener el dominio del medio.

    Aunque es un juego gratuito, algunos jugadores indican que la simulación puede ser enganchosa gracias a su creación enganchoso y la experiencia de movimiento que brinda.

    Las opiniones sobre La Carrera del Pollo en español son contradictorias. Por un lado, muchos jugadores destacan la diversión y la pasión que aporta, principalmente debido a su estructura sencilla pero compleja. No obstante, algunos participantes han comentado críticas sobre la propaganda intrusiva o la falta de contenido nuevo, ya que el juego se se inspiró en una idea parecido a otros juegos como *Carrera de Pollo*. También hay quienes revisan si es de verdad fiable, ya que al ser un servicio digital, requiere servicios terceros que pueden exhibir errores intermitentes.

    Si estás buscando reseñas reales sobre el juego, es relevante considerar que, similar a cualquier juego virtual, los resultados podrían variar según el hardware y la red a la conexión. Algunos usuarios sugieren experimentar en una plataforma mejorado para evitar errores de ejecución. Igualmente, aunque no resulta un título remunerado, algunos aficionados sugieren que la modalidad instantánea puede ofrecer una prueba más eficiente que la modalidad en línea.

    En conclusión, El Camino del Pollo es un título emocionante que ha creado impresiones heterogéneas para los fans de experiencias de conducción. Si te motiva experimentar con él, asegúrate de consultar los testimonios en espacios entre usuarios o en comunidades de aficionados en español para crear una opinión más fundamentada. La punto reside en apreciar la simulación sin demandar un título profesional, antes bien como un pasatiempo sencilla y viciada.

  3. Verantwortungsvolles Spielen gilt als Kernpunkt in der modernen Welt der Online-Unterhaltung [url=https://spinmama-spielcasino.co.at/verantwortungsvolles-spielen]spin mama[/url] . Bei Spinmama steht die Sicherheit der Spieler an oberster Stelle, denn ein gerechtes und offenes Umfeld ist das Fundament fur ein positives Erlebnis. Wenn Sie sich auf der Seite informieren, finden Sie hilfreiche Informationen, die Ihnen dabei helfen, die Kontrolle uber Ihr Spielverhalten zu behalten.

    Spin Mama legt viel Wert darauf, dass Glucksspiel als eine Form der Freizeitgestaltung betrachtet wird und niemals die personliche Lebensqualitat oder die finanziellen Mittel eines Nutzers schadigen sollte. Deshalb bietet das Portal zahlreiche Werkzeuge an, mit denen Spieler ihre Aktivitaten einschranken konnen. Dazu gehoren unter anderem Einzahlungslimits, die Moglichkeit fur zeitlich begrenzte Pausen oder auch ein vollstandiger Selbstausschluss. Diese Instrumente sind darauf ausgelegt, fruhzeitig einzugreifen, bevor das Spielverhalten problematisch werden kann.

    Transparenz ist bei Spinmama ein Kernwert. Das Team hinter dem Angebot arbeitet engagiert daran, Vorbeugungsma?nahmen zu fordern und sicherzustellen, dass jeder Nutzer uber die Gefahren beim Spielen aufgeklart ist. Ein verantwortungsbewusster Umgang mit dem eigenen Geld und die bewusste Steuerung der Spielzeit sind dabei die wichtigsten Pfeiler. Sollten Sie das Gefuhl haben, dass Ihr Spielverhalten beim Casino au?er Kontrolle gerat, bietet Spin Mama direkt auf der entsprechenden Unterseite nutzliche Kontakte zu Unterstutzungsorganisationen an.

    Der Schutz der Spieler geht jedoch uber blo?e Werkzeuge hinaus. Es ist eine fortlaufende Verpflichtung zur Qualitat und Sicherheit, die Spinmama ernst nimmt. Durch klare Informationen und leicht zugangliche Hilfeleistungen schafft das Casino einen sicheren Bereich. Wir laden alle Nutzer ein, sich auf der Webseite von Spinmama ausfuhrlich uber die Moglichkeiten des Selbstschutzes zu informieren. Gemeinsam mit der Plattform konnen Sie sicherstellen, dass der Spa? am Spiel im Vordergrund bleibt und verantwortungsvolles Handeln jederzeit Prioritat genie?t. Ihr Wohlbefinden und eine gesunde Spielumgebung sind das Ziel, das Spin Mama taglich verfolgt.

  4. Эта публикация посвящена актуальным вопросам современной медицины и здравоохранения. Мы обсудим новейшие технологии диагностики и лечения, а также их влияние на продолжительность и качество жизни. Читатель найдет здесь информацию о научных исследованиях и перспективных разработках, доступно изложенную для широкой аудитории.
    Читать полностью – [url=https://optimed-narkolog.ru/stati/trevoga-i-panicheskie-ataki.html]реабилитационный центр для алкоголиков[/url]

  5. Рекомендации строятся вокруг состояния человека, а не по универсальному шаблону для всех случаев.
    Дополнительная информация – [url=https://3.kapelnica-ot-zapoya-v-moskve14.ru/]kapelnica-ot-zapoya-na-domu[/url]

  6. Si eres aquel entusiasta de los entretenimientos de casino en linea, posiblemente has escuchado hablar respecto a el popular chicken road [url=https://chicken-roadjuego.com.es/terminos-y-condiciones]chicken road game[/url] . Dicho titulo se ha transformado en una tendencia creciente dentro de los apostadores que persiguen una vivencia dinamica, emocionante y con dinamicas sencillas pero sumamente entretenidas. Con el objetivo de confirmar que tu experiencia dentro de esta plataforma sea siempre fiable y transparente, resulta vital que entiendas a fondo la normativa establecida en el sitio oficial.

    Al ingresar a la seccion de terminos y condiciones de chicken road game, los usuarios hallan un reglamento que protege tanto al jugador al igual que al operador. Este archivo es el fundamento fundamental que regula aspectos criticos como el registro de cuentas, la tramitacion de depositos, las reglas de retiro y, sobre todo, el juego responsable. Resulta imprescindible que previamente a efectuar tu primera apuesta, inviertas unos minutos a analizar estas pautas, ya que ahi se especifica quienes pueden entrar legalmente al sistema y que comportamientos estan autorizados a lo largo de el ejercicio de cada sesion.

    Entender como se maneja chicken road no solo supone conocer sus tacticas de juego, sino igualmente conocer los privilegios y responsabilidades de cada cliente. La plataforma se esfuerza en preservar un entorno justo, y los terminos y condiciones detallan claramente como se procesan los regalos, las promociones y la seguridad de los informacion personales. Al acostumbrarte con esta informacion, esquivaras malentendidos comunes y disfrutaras de una sesion de juego mucho mas agil y sin problemas.

    No olvides que chicken road game esta creado para brindar ocio bajo firmes patrones de prestacion. Cumplir las reglas del sitio asegura que puedas sacar partido al maximo todas las funciones accesibles sin peligrar tu cuenta. Si posees inquietudes respecto a los limites de apuesta o los procedimientos de validacion de identidad, toda la solucion se halla plasmada alli. Te alentamos a revisar siempre la data oficial para garantizar que tu aventura en este pasatiempo tan adictivo llegue a ser siempre positiva, segura y segun el marco legal actual en la plataforma.

  7. spinogambino-spearce

    Όποτε ψάχνετε μια μοναδική διασκέδαση στο χώρο του online gaming, το spinogambino συνιστά έναν ανάμεσα τους εξαιρετικά ανερχόμενους σταθμούς για τους θαμώνες στην χώρα μας [url=https://spinogambino-casino.com.gr]spinogambino betting[/url] . Το spinogambino casino κατόρθωσε να κερδίσει την εμπιστοσύνη του ανθρώπων χαρίζοντας μια τεράστια γκάμα από slots, σύγχρονα στοιχεία και μια πολύ προσιτή προς τον παίκτη πλατφόρμα. Είτε δηλώνετε φαν των παραδοσιακών παιχνιδιών ή διαλέγετε τη αγωνία του live καζίνο, το spino gambino ικανοποιεί κάθε απαίτηση με εχεμύθεια και ποιότητα.

    Η παρουσία του spinogambino greece ενισχύεται διαρκώς, προσφέροντας στους χρήστες πρόσβαση σε ειδικές προσφορές και άριστες επιστροφές. Για τους ανθρώπους επιλέγουν το spinogambino ελλάδα, η βιωματική κατάσταση αναβαθμίζεται χάρη μιας πλήρως μεταφρασμένης διεπαφής που βοηθά την περιήγηση και την ανακάλυψη κορυφαίων θεμάτων. Παράλληλα, οι δυνατότητες για στοιχήματα spinogambino είναι συναρπαστικές, συμπεριλαμβάνοντας όλα τα σπουδαία αθλητικά αγώνες με ανταγωνιστικές τιμές που κεντρίζουν τους οπαδούς του betting.

    Διαλέγοντας το spino gambino casino, εισέρχεστε σε ένα τοπίο όπου η ψυχαγωγία σμίγει την προηγμένη μηχανική. Το spino gambino greece φροντίζει για την γρήγορη εξυπηρέτηση των χρηστών του, παρέχοντας ασφαλείς τεχνικές συναλλαγών και βοήθεια που παραμένει συνεχώς διαθέσιμη. Δεν θεωρείται τυχαίο ότι όλο και πιο πολλοί επισκέπτες κατευθύνονται προς το spino gambino καζινο για να δοκιμάσουν την τύχη τους σε ένα αξιόπιστο και διαφανές χώρο.

    Η πλατφόρμα του spinogambino casino ξεχωρίζει επιπλέον για την αμεσότητα των αναλήψεων και την ποικιλία των προσφορών που ανταμείβουν τόσο τους καινούργιους όσο και τους τακτικούς παίκτες. Αν επιθυμείτε να ενώσετε το καζίνο με τα αθλητικά στοιχήματα σε έναν ενιαίο χώρο, τότε το spinogambino είναι η ιδανική επιλογή για εσάς. Κάντε εγγραφή σήμερα και ανακαλύψτε για ποιο λόγο το συγκεκριμένο καζίνο θεωρείται πλέον σημείο αναφοράς για όσους αναζητούν εκλεκτό online gaming στην Ελλάδα, απολαμβάνοντας μια συναρπαστική διαδρομή με κάθε σας ενέργεια.

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

  9. chickenroad-Amidway

    El entretenimiento móvil Chicken Road es una de las demandados dentro del recentes tiempos, de manera destacada en el mercado hispanohablante, donde su éxito ha creado tanto alegría y polémica [url=https://chickenroad-es-47.pages.dev]Chicken Road Opiniones Es Fiable[/url] .

    Si estás buscando este juego, especialmente retornos de jugadores, es común tener interrogantes sobre su confiabilidad, sistema de juego y si realmente merece la inversión. Aquí proporcionamos un resumen completo fundamentado en las experiencias recurrentes que se observan en comunidades como comunidades digitales y grupos de fans en lengua española.

    El aspecto inicial dudas que se repiten es en qué consiste Chicken Road. Se trata de un desafío automovilístico en el que los jugadores tienen que esquivar chocar con otros transporte virtual mientras se mueven por una vía digital. La estructura es sencilla, pero el vicio y la frustración que despierta han hecho que muchos participantes compartan sus historias.

    En comunidades como Plataformas de entretenimiento, las opiniones sobre la aplicación abarcan múltiples perspectivas. Algunos clasifican como un tiempo libre provechoso y adictivo, en cambio otros lo cuestionan por su falta de innovación y la ausencia de creatividad. Muchos aficionados subrayan que, aunque en un primer momento, puede ser divertido, con el transcurso deja de enganchar debido a la repetición de los caminos y los retos.

    La cuestión principal que genera opiniones es si la plataforma cumple expectativas. Algunos usuarios señalan que el servicio carece de problemas técnicos graves, pero otros señalan que los anuncios intrusivos y las transacciones monetarias pueden ser incómodas. En cuanto a las críticas verídicas, muchos jugadores coinciden en que el producto es adictivo, en particular por su política de beneficios y la evolución visible. Pero también existen críticas sobre la escasez de cambios sustanciales y la monotonía recurrente. En el mercado hispanohablante, el juego ha conseguido una amplio reconocimiento, aunque no todos están de acuerdo con su modelo de negocio, que abarca pagos adicionales para acceder a extras.

    Si te preguntas en experimentar con él, es importante tener en cuenta que, al igual que en otros simulador de riesgo, puede provocar ansiedad. Las críticas sobre si justifica el esfuerzo participar se basan en la personalidad de cada usuario: si necesitas algo tranquilo y adicto, este juego puede ser una propuesta, pero si buscas juegos con más variedad, es dudoso que no satisfaga tus necesidades. En comunidades como grupos de fans, muchos jugadores sugieren evitar el exceso y renunciar a transacciones en adquisiciones sin valor, ya que el entretenimiento es gratuito y incluye funcionalidades sin pago.

    En resumen, este juego resulta ser un entretenimiento con opiniones divididas, pero su impacto en el mercado hispanohablante y en hispano confirma que tiene un grupo de seguidores. Si te interesa experimentar con él, asegúrate de leer las experiencias de participantes hasta dedicar horas o fondos. La estrategia radica en aprovecharlo evitando la adicción, ya que, según indican expresan, su dependencia puede ser comparable en poder igual que su aburrimiento.

  10. spingrannylogin-enverse

    At spingranny, the staff maintain that digital amusement ought to stay attainable, exciting, and uncomplicated targeting everyone [url=https://spingrannylogin.net/about-us]spin granny[/url] . The site started with a distinct vision: to deliver a top-tier play arena where enthusiasts might relish a selected range comprising top-notch slots besides dynamic sessions avoiding needless complications. Upon visiting spin granny, you arrive into an electronic environment crafted precisely for enthusiasts individuals that like smooth browsing, trustworthy gameplay, plus a friendly atmosphere.

    The devotion to quality starts with the user-centric strategy. We understand that within the rapid landscape related to web-based play, gamers want to dedicate less time hunting together with more time enjoying. For this reason the actual spingranny staff has worked persistently to improve our portal, making certain the fact that all element stays simple plus all instance is fluid. If you happen to be a veteran player or someone wanting to discover the realm related to spin granny as a beginner, our site provides a safe plus welcoming space customized towards your desires.

    Honesty as well as ethics constitute the cornerstones pertaining to the tasks. We boast about preserving a hub which prioritizes player security plus honest results above anything. Opting for spingranny, you are opting for a dependable gaming partner which appreciates your time plus your confidence. Our specialized support team is always operating behind the scenes to maintain the programs updated plus the design modern, guaranteeing the fact that spin granny remains at the forefront concerning digital entertainment.

    As we continue to grow, the goal stays fixed unchanged. We aim to represent the ultimate spot catering to people who seek value, fun, along with reliable support in every bet. We invite you to explore our offerings plus see firsthand why countless users have chosen us as the top pick. Join the active network within spingranny today, and uncover the manner in which the team is redefining your betting hopes. Inside spin granny, your pleasure represents our highest accomplishment, plus we anticipate offering you constant fun spanning the future.

댓글 달기

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