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

  1. vulkanvegas-Cherty

    Si vous etes a la recherche d une experience de jeu en ligne captivante, le site Vulkanvegas 67 s impose comme une plateforme incontournable pour les amateurs de divertissement virtuel [url=https://vulkanvegas-67.surge.sh]Vulkan Vegas Review[/url] . En explorant cet univers, de nombreux joueurs se posent la question suivante : Is Vulkan Vegas Legit ? La reponse est positive, car le Casino Vulkan Vegas se distingue par son serieux et son respect des normes de securite internationales, garantissant ainsi une tranquillite d esprit totale a ses utilisateurs.

    Lorsque l on consulte un Vulkan Vegas Review, on remarque rapidement que la diversite des jeux proposes est l un des points forts de l etablissement. Que vous soyez adepte des machines a sous modernes, du video poker ou des jeux de table classiques comme la roulette et le blackjack, Vulkan Vegas offre une ludotheque complete. En ce qui concerne le marche specifique de Vulkan Vegas France, la plateforme a su ajuster ses services pour repondre aux attentes exigeantes des joueurs francophones, avec une interface fluide et intuitive.

    Lire un Vulkan Vegas Avis est generalement la premiere etape pour comprendre pourquoi cette plateforme attire autant de membres. Les differents Vulkan Vegas Reviews soulignent regulierement la qualite des bonus offerts, la reactivite du support client et la rapidite des transactions. Si vous recherchez un avis Casino Vulkan Vegas detaille, vous constaterez que les retours d experience mettent en avant une navigation simplifiee et une compatibilite mobile exemplaire.

    En resume, le site Vulkan Vegas est une option ideale pour ceux qui souhaitent allier divertissement et securite. Que vous soyez un joueur debutant ou un joueur aguerri, le Vulkan Vegas Casino Avis general confirme que la plateforme reste une reference solide. En consultant frequemment les avis Vulkan Vegas, vous pourrez profiter des meilleures astuces pour optimiser vos sessions. N hesitez pas a decouvrir par vous-meme pourquoi le Casino Vulkan Vegas continue de troner sur le secteur grace a son engagement envers l excellence et l equite des jeux proposes.

  2. chicken-Syperry

    digital gaming hub Road is a controversial virtual gaming space that has attracted significant attention among players across the United Kingdom and elsewhere [url=https://chicken-road-game-145.ka6993480.workers.dev]Chicken Road Casino Game Uk[/url] . As desire for digital betting grows, many players are investigating trustworthy information about Chicken Road Casino, covering its authenticity, experience, and whether it includes real money avenues.

    This review aims to deliver a detailed look of the gaming venue, highlighting important factors such as its validity, offerings, and user interaction within the British Isles market.

    One of the primary questions that players pose is whether this platform is trustworthy. While the venue appears a part of the larger digital wagering world, it’s important to treat it with vigilance. Licensed digital betting sites generally function under strict governing structures, ensuring transparent play, guarded payments, and ethical gambling practices. Still, the platform does not explicitly disclose its licensing or compliance body, which can create anxieties for many enthusiasts. Consistently assessing the legitimacy of a casino, in the case when playing for live stakes, practice proper diligence.

    For those wishing to play this platform’s entertainment, the platform provides a extensive choice of activities. The venue includes a selection of entertainment, including blackjack titles, table options, and maybe live host avenues, based on offerings. Gamblers can play the venue’s games for free, alternatively with live stakes, despite it’s important to confirm whether the platform accepts British Isles visitors and processes domestic money. Numerous gamblers report that the site may have limitations on some transaction avenues, or deposit avenues, so assessing these points beforehand is suggested.

    A this platform’s assessment typically focuses on the gambler engagement, game range, and overall accessibility. While various enthusiasts admire the straightforwardness of management and the array of games, others have expressed questions about the site’s clarity. Live stake deals must always be treated with wisdom, and gamblers need to inspect for protected deposit gateways and well-defined guidelines. Additionally, reading Chicken Road Casino feedback from verified experts can give valuable understandings into the site’s reputation and credibility.

    If you’re thinking about wagering at the site in the British market, it’s worth to examine avenues that are wholly regulated. Legitimate casinos like these usually provide better customer assistance, fair prospects, and transparent entertainment guidelines. Whether you’re searching for a fun hobby, or real money entertainment, always prioritise well-being and legality to guarantee a favourable outcome.

    In final analysis, while Chicken Road Casino may provide entertainment worth, its authenticity and relevance for real money entertainment in the British market demand considerate analysis. Punters ought to execute detailed analysis, read reviews from trusted sources, and verify withdrawal avenues before involving oneself with any digital entertainment site. Remaining up-to-date and careful will enable you to select the most suitable outcome for your wagering goals.

  3. spinogambino-fluibe

    Le jeu en ligne est une forme de divertissement passionnante qui necessite une approche reflechie [url=https://spinogambino-bet.fr/jeu-responsable]spino gambino[/url] . Sur la plateforme Spinogambino, la securite et le confort des utilisateurs sont consideres comme des objectifs majeurs. La section consacree au jeu securise sur le site officiel, accessible via spino gambino, illustre la volonte reelle de l’operateur pour offrir un environnement sain a sa communaute. Comprendre les principes du jeu modere est indispensable pour tout joueur souhaitant s’amuser sans jamais nuire a sa serenite financiere ou personnelle.

    Le site spinogambino propose une serie d’outils pratiques pour permettre a chaque membre de garder le controle total sur son activite. Grace a ces options, les utilisateurs peuvent definir des limites de depot quotidiennes, hebdomadaires ou mensuelles. Cette maitrise du budget permet d’eviter les debordements et de maintenir une session de jeu qui reste dans les limites du plaisir. En optant pour spino gambino, vous profitez d’une interface intuitive qui simplifie la mise en place de ces options de controle des votre inscription.

    L’auto-exclusion est une autre mesure fondamentale pronee par Spinogambino pour ceux qui souhaitent faire une coupure durable. Cette option, accessible via la section dediee au jeu modere, est concue pour etre simple et efficace, garantissant un accompagnement de qualite. La interface encourage egalement une sensibilisation constante sur les risques lies a l’addiction. Si vous sentez que votre maniere de jouer change en mal, des ressources externes et des recommandations sont disponibles pour vous diriger vers des structures d’aide adaptees.

    En conclusion, choisir une interface comme Spinogambino signifie choisir un partenaire qui respecte les regles deontologiques les plus strictes. La clarte et la protection des joueurs sont les piliers de cette experience. En adoptant les bons reflexes suggeres par spino gambino, vous changez vos moments de detente en une pratique controlee et sereine, ou la priorite reste avant tout le divertissement responsable.

  4. Once elect to participate with digital betting platforms, your security and personal health should consistently persist the main concern [url=https://spino-gambino-casinoapp.org/responsible-gambling]spino gambino[/url] . At spino gambino, we stay fully dedicated to nurturing a protected and transparent atmosphere for each of our users. Our specialized responsible gambling page, situated at our official website, serves as a comprehensive guide designed to assist you keep authority over your play routines while relishing the amusement we deliver.

    The core philosophy behind spino gambino is formed on the conviction that wagering should be a type of pastime instead of a method to make money. We acknowledge that for some users, the rush of the spin may occasionally result in challenges. To tackle this, we have integrated a collection of strong utilities and security measures. These contain the capacity to set personal deposit limits, playtime time reminders, and self-exclusion options for those who need to take a break. By employing these features, you can guarantee that your time invested with spino gambino stays inside the confines of what you find pleasant and reasonable.

    Our platform stresses that educated play is responsible play. We urge all user to study the warning signals of risky behavior. Identifying when gaming is no longer enjoyable is a crucial part in preserving a balanced living. If you ever feel that your betting is becoming excessive, our support staff is reachable to provide counsel and direct you towards professional organizations that cater in gambling support.

    We additionally rigidly apply age verification protocols to prevent minor access, guaranteeing that our site stays a responsible environment for mature users. By prioritizing openness and providing available control systems, we work to make each experience at spino gambino both positive and secure. We ask you to go to our responsible gambling section now to discover further details about the parameters you can adjust to safeguard your interests. Your satisfaction is our mission, and your health is the foundation of all that we do. [url=http://czrlp.8u.cz/forum/viewtopic.php?f=9&t=1353&p=24962#p24962]Maintaining Player Security: Our Complete Guide at Spino Gambino’s Responsible Gambling Policies[/url] [url=https://aljasad.com/showthread.php?tid=183&pid=3393#pid3393]Ensuring Your Safety: Our Comprehensive Look at Spino Gambino’s Secure Gambling Practices[/url] 6_e5b59

  5. When my furnace stopped working on the coldest night of the year
    this HVAC service came through for me I was genuinely impressed by the diagnostic process and the thorough step by step explanation of what needed to be done They provide full
    HVAC solutions including installation, repair, ongoing maintenance, and around
    the clock emergency service when you need it most I would recommend this HVAC service to
    anyone looking for reliable, professional, and affordable heating and cooling assistance

  6. Jeder, der beim Suchen von einem mitrei?enden Online-Glucksspielerlebnis gewesen ist, verzichtet kaum auf den heutigen Portalen der Branche kaum vorbei [url=https://palm-slots-3.onrender.com]palm slots[/url] . Hauptsachlich beachtet steht dabei aktuell die Internetadresse palm-slots-3.onrender.com, diejenige, die unter dem Label palmslots bekannt ist. Zahlreiche Zocker interessieren sich fur die Besonderheiten, welche, ein solches palmslot Casino bietet, und fragen gezielt ab Informationen hinsichtlich des Spielangebots und der Zuverlassigkeit der Webseite. Sollte man sich mit palm slots auseinandersetzt, wird rasch klar, dass der Betreiber eine breite Palette an Gaming-Optionen vorratig hat. Die intuitive Bedienung ist hierbei ein wesentlicher Aspekt, weswegen viele User nach einem unkomplizierten palmslots login trachten, um direkt in das Reich der virtuellen Walzen einzutauchen.

    Ein wesentliches Kriterium, das zahlreiche Spieler bei der Wahl ihres bevorzugten Portals berucksichtigen, ist die palmslots Auszahlung. Zocker wollen sicherstellen, dass ihre erspielten Betrage effizient und sicher ubermittelt werden. In vielen palm slots Erfahrungen wird unterstrichen, dass eine transparente Kommunikation und schnelle Bearbeitungszeiten beim Auszahlungsvorgang die Zuversicht in ein derartiges Portal erheblich festigen. Sogar wenn man sich speziell mit der Ausfuhrung palmslots 2 befasst, ist das Bestreben immer im Vordergrund, ein gerechtes und spa?iges Spielumfeld aufzubauen. Wer auf der Suche nach einer zeitgema?en Option auf der Suche ist, wird auf palm slots casino haufig erfolgreich, weil die Webseite mit einem ubersichtlichen Design begeistert.

    Dieses palmslot Portal kennzeichnet sich durch ein konstantes Fortschreiten hervor, um den steigenden Anforderungen der Nutzergruppe zu entsprechen. Das Zusammenspiel von lukrativen Bonusangeboten und einer gro?en Auswahl an Automatenspielen gestaltet die Seite zu einem gefragten Ziel. Zusammenfassend lasst sich sagen, dass sowohl Neulinge als auch erfahrene Spieler bei palmslots auf ihre Kosten kommen. Es ist ratsam, die unterschiedlichen Alternativen zu erforschen und eigenstandig zu prufen, weshalb das palm slots casino gegenwartig so viel Aufmerksamkeit erhalt. Wer Wert auf eine stimmige Balance aus Schutz, gaming Vergnugen und einem einfachen palmslots login legt, sollte sich das Angebot von palmslot genauer ansehen. Machen Sie sich durchgehend grundlich uber die geltenden Regeln und konsumieren Sie das Spielerlebnis bewusst.

  7. В этой публикации мы рассматриваем важную тему борьбы с зависимостями, включая алкогольную и наркотическую зависимости. Мы обсудим методы лечения, реабилитации и поддержку, которые могут помочь людям, столкнувшимся с этой проблемой. Читатели узнают о перспективах выздоровления и важности комплексного подхода.
    Запросить дополнительные данные – [url=https://luchshii-blog.ru/novaya-zhizn-effektivnye-metody-vyvoda-iz-zapoya-dlya-vosstanovleniya-zdorovya/]наркологическая клиника дельта[/url]

  8. Доказательную базу терапии подтверждают данные с Национального института наркологии.
    Углубиться в тему – [url=https://narkologicheskaya-klinika-sochi0.ru/]наркологическая клиника нарколог сочи[/url]

  9. The realm of web-based gaming has experienced a tremendous surge in interest for exclusive releases, and rarely have captured the focus of users just like this fast-paced gambling adventure [url=https://chicken-roadpredictor.net/demo]chicken road 2 slot demo[/url] . If you are inquisitive regarding the workings underlying the thrill, accessing the chicken road demo is the optimal path to commence. By interacting with the chickenroad demo, enthusiasts can acquaint themselves with the high-risk thrills and erratic character of the title neglecting risking real capital. This practice mode permits you to master the pacing and tactics needed to prevail before diving into the real-time environment.

    Many users hunting for the next version of this successful creation frequently look for the chicken road 2 demo to observe the way the playstyle has evolved. Whether you are testing the original chicken road game demo alternatively the upgraded chicken road 2.0 demo, the aim continues the identical: helping the valiant bird pass the way securely during dodging barriers. For those who appreciate trialing diverse betting methods, the chicken road casino demo serves as an superior sandbox environment. It mimics the actual interface, ensuring that when you transition to actual currency, the switch is effortless.

    Players commonly ask if they can perform a chicken road game demo download, but the charm of contemporary browser-based gaming is that you can experience the chicken road game demo play immediately through your internet-browser avoiding installing large software. This utility renders it straightforward to jump into a round whenever you have a small spare moments. Moreover, supporters of the latest release will find that the chicken road 2 slot demo presents a unique twist on the conventional formula, blending timeless machine style with the engaging vibe of a crash-style game. If you are exclusively looking for the high-end encounter, the chicken road gold demo provides a glimpse inside the high-end graphics and bonus options located in the complete version. Despite your skill tier, utilizing these demos is the smartest method to grasp the flow of the title and optimize your potential for success.

  10. foxygolds-eraptap

    Ben jij momenteel op zoek naar een boeiend nieuw speelveld omtrent je geliefde wedspellen, in dat geval blijkt de mogelijkheid aanzienlijk dat je die benaming Foxygold hebt gezien [url=https://foxygolds-casino-2.tommysmiths815.workers.dev]foxy gold[/url] . Het Foxygold casino groeit binnen sneltrein snelheid in faam onder liefhebbers die op zoek zijn naar een veilige en leuke speelruimte. Binnen die foxygold review stappen men dieper omtrent datgene wat het domein echt uniek vormt terwijl waarvoor veel deelnemers in Foxygold Nederland richting dat gegeven speelhal besluiten.

    Als men de foxygold casino review leest, valt opvallend zichtbaar dat het assortiment aan games uiterst divers is. Van klassieke fruitautomaten en moderne live-gok belevenissen, die site biedt voor iedereen iets wils. Dit Foxy Gold casino blijft gerenommeerd om de intuïtieve opzet, zodat en beginnende spelers als getrainde spelers moeiteloos hun richting ontdekken. Of jij op dit moment specifiek speurt richting casino Foxygold opties indien wenst profiteren omtrent dat gehele omgeving, dat domein geeft de superieure spelervaring binnen desktop en mobiel.

    Een onder die goede kenmerken van dat Foxy gold domein blijkt de aandacht richting beveiliging evenals vermaak. Als men kiest omtrent dat Foxygold online casino, zul jij bouwen op eerlijke weddenschappen plus de hulpdienst die gereedstaat richting onduidelijkheden te beantwoorden. Veel spelers waarderen de transparantie van dat casino Foxy Gold, hetgeen belangrijk blijkt in de moderne virtuele goksector. De combinatie bij boeiende extra’s plus een onafgebroken aanbod met verse games geeft daarmee of je je aldaar niet vlug verveelt.

    Ziet je klaar teneinde jezelf fortuin te testen? Het blijkt steeds wijs om je uitgebreid in verdiepen voordat men aanvangt. Zoals in iedere vakkundige foxygold review blijkt aanbevolen, blijkt dat essentieel om gecontroleerd te deelnemen. Met het uitgebreide aanbod met automaten evenals speeltafels geeft dit Foxygold casino een geweldige startpunt voor alle spelers welke verlangt bij de puzzel. Zie vandaag meteen waarom talloze spelers opteren richting die bruisende sector bij Foxy Gold evenals ervaar zelf die klasse welke dit virtuele casino om te aanbieden beschikt. Veel plezier en zet uiteraard omtrent jezelf genot.

댓글 달기

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