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”의 21,625개의 댓글

  1. While hunting seeking a top-tier betting destination, players in the UK steadily turning their attention towards baxterbet [url=https://baxter-bet-105.onrender.com]baxter bet[/url] . This platform rapidly positioned itself to be a reliable option for players wanting a high-quality baxter bet online journey. Boasting a vast library of titles along with a devotion to player fulfillment, baxterbet casino offers a seamless interface which appeals to each casual gamers and seasoned professionals. If you’re looking to investigate a diverse range of reel games and classic board games, the baxterbet casino online site delivers a sophisticated setting crafted for peak engagement.

    Security and honesty stay at the core of the baxter bet casino adventure. Through current safety standards, the site certifies that every session is protected, enabling users to savor their favourite titles with complete serenity. Numerous baxterbet reviews emphasize the platform’s simple layout plus responsive design, enabling it easy to switch between platforms without dropping speed. Whether you prefer the comfort of baxterbet online play via your desktop or the freedom of mobile betting, the service is built to adapt matching your lifestyle.

    New punters often consult baxter bet reviews to understand why the provider shines in a fierce market. The collective view frequently indicates the generous game selection along with the efficient assistance teams available at casino baxterbet. Furthermore, the selection offered on casino baxter bet is perpetually refreshed, making certain that newest industry launches remain constantly available. For those uniquely searching for a baxter bet casino online solution, this site portrays a perfect blend of fun and reliability. Choosing baxterbet signifies entering a universe where quality gaming meets professional criteria. Investigate the features today along with discover why countless enthusiasts view this the ultimate spot for online gambling. With a distinct concentration on the player journey plus a solid catalogue of betting options, baxter bet keeps to establish an elevated measure for perfection in the online gaming domain.

  2. Samtliche Rechtsrichtlinien rund um Chicken Road bilden das juristische Basisgerust eines sicheres inklusive durchsichtiges Spielerlebnis auf unserer Plattform [url=https://chicken-roadgame.at/agb]Chicken Road[/url] . Sofern Sie wahlen, hinein in die spannende Welt des ChickenRoad einzusteigen, gilt es zu beachten, die aktuellen Vorschriften sowie Bedingungen zu kennen, die hinsichtlich der Verwendung unseres Online-Angebots existieren. Wir fokussieren uns darauf, dass samtliche Spieler von Chicken Road uber ihre Rechte und Pflichten vollstandig unterrichtet sind. Klarheit ist ein zentraler Bestandteil unserer Philosophie, damit Sie beim Gaming ganzlich auf die Unterhaltung konzentrieren konnen.

    In dem Regelwerk auf dem Webportal lesen Sie alle wichtigen Details bezuglich der Anmeldung, zur Kontofuhrung samt hinsichtlich der Guidelines fur ein faires Spiel. Das Verwenden des ChickenRoad setzt voraus, dass Sie das benotigte Mindestalter vollendet haben samt die juristischen Vorgaben bestatigen. Die Konditionen regeln zudem den sorgsamen Einsatz von Zocker-Budget sowie den Prozess der Zahlungsstrome. Wir bemuhen uns laufend, Chicken Road zu einer geschutzten Plattform zu gestalten, wobei Gerechtigkeit an erster Stelle steht. Sollten sich Fragen hinsichtlich der Zahlungsmethoden bzw. zum Spielablauf auftauchen, dient das Regelwerk wichtige Anhaltspunkte.

    Wir empfehlen jedem User, stetig uber mogliche Aktualisierungen der Geschaftsbedingungen bei ChickenRoad auf dem Laufenden zu halten, insofern als sich Gesetzesvorgaben oder interne Ablaufe anpassen lassen. Dank des Gebrauchs der Angebote des Chicken Road stimmen Sie mit der gegenwartigen Ausfuhrung dieses Regelwerks zu. Unsere Absicht besteht darin, euch ein amusantes und dabei faires Gaming-Erlebnis zu prasentieren, wobei Sicherheit samt Seriositat im Mittelpunkt stehen. Bei Unklarheiten unterstutzt Sie unsere Service-Crew selbstverstandlich gerne unterstutzend zur Verfugung, damit wir Ihnen bezuglich der Details der AGB helfen zu konnen. Wir animieren Sie, alle kompletten Punkte auf unserer Webseite durchzusehen, um bestens informiert in Ihr kommendes Erlebnis bei Chicken Road zu beginnen. Setzen Sie auf auf ein faires Spielerlebnis, welches auf eindeutigen Prinzipien beruht sowie strengen Gutekriterien genugt. Viel Gluck und zudem Freude beim Zocken auf diesem Portal.

  3. hrat zdarma automaty mobil casino slovenskГЅ
    volne tocenia bez vkladu nove online kasina blackjack online zadarmo Sk casino free spiny automaty online zdarma turbo zet online casino
    casino bonus bez vkladu za register 15 € najlepšie online automaty s vysokým rtp

  4. Городской ритм Петрозаводска с озёрным ветром, короткими сумерками и сезонной влажностью повышает сенсорную нагрузку в вечерние часы, поэтому наш маршрут спроектирован «мягко». Координатор заранее уточняет подъезд, парковку, код домофона, рекомендует «тихий режим» связи и присылает нейтральное уведомление о визите. Бригада приходит в гражданской одежде, сумки — без логотипов, разговоры — короткими фразами. Такое поведение снижает у пациента и семьи реактивность, выравнивает вариабельность ЧСС к сумеркам и уменьшает потребность «усиливать» схему на ночь. Если на предзвонке выявлены «красные флаги» — неукротимая рвота, выраженная дезориентация, «скачущий» ритм, одышка — мы предлагаем стационар сразу, чтобы не терять время на повторные маршруты.
    Подробнее можно узнать тут – [url=https://narkolog-na-dom-petrozavodsk15.ru/]запой нарколог на дом[/url]

  5. Нарколог обращает внимание на длительность запоя, количество выпитого, особенности поведения и жалобы пациента. При легком течении человек сохраняет ориентацию и способен выполнять рекомендации врача. При тяжелом течении могут развиваться панические атаки, депрессии, выраженный страх, судороги и галлюцинации. Психика становится нестабильной, поэтому иногда наряду с наркологом требуется психиатр. В клинике направление психиатрия позволяет оценивать алкогольные и другие психиатрические расстройства комплексно.
    Подробнее – [url=https://2.vyvod-iz-zapoya-moskva1-13.ru/]вывод из запоя москва[/url]

  6. 1xbet42-crircub

    Are you in search of a high-quality virtual casino experience in the Great Britain? If so, you might have discovered **1xbet**, a popular betting site that provides a wide array of casino activities [url=https://1x-bet-42.vercel.app]1xbet Casino Review[/url] . Nonetheless, with a plethora of online casinos on offer, it’s essential to determine whether **1xbet Casino UK** is legitimate before sending your funds.

    This analysis will aid you in grasping what **1xbet** delivers, its standing, and whether it’s a reliable choice for players in the **United Kingdom**.

    **1xbet Casino** is a highly-regarded digital gaming site that offers live betting choices, including slot machines, interactive activities, sports betting, and real-time gambling encounters. Many users in the **UK** have shared interest about whether **1xbet** is legitimate, and the answer varies on various considerations. While **1xbet** works in several areas, including the **United Kingdom**, it’s important to recognise that wagering rules change by jurisdiction. In the UK, casinos must be approved by the **UK Gambling Commission** to function legally, and **1xbet** is at present regulated under this body. This creates concerns about its genuineness for UK bettors.

    When searching for **1xbet reviews**, you’ll discover varied comments. Some bettors praise the hub for its broad library of games, easy-to-navigate design, and appealing bonuses. Others, however, warn about potential dangers, especially regarding approval and security. If you’re questioning *”Is 1xbet trustworthy or not?”*, the response hinges on your region. While **1xbet** may be properly available in some jurisdictions, UK players should handle it with care due to governmental concerns.

    For those evaluating **1xbet real money** gambling, it’s essential to assess the benefits and drawbacks. The platform presents fair probabilities, a large library of activities, and easy payment methods. On the other hand, without suitable approval in the UK, bettors may run into limitations or regulatory uncertainties. Always ensure you’re playing on a certified and secure hub to safeguard your funds and private information.

    If you’re still indecisive, examining the newest **1xbet Casino review** and **1xbet UK** forums can provide further understanding. While **1xbet** may be a reliable brand in some areas, UK gamblers should prefer regulated options to avoid possible risks. Maintain knowledgeable, gamble disciplined, and always check the legitimacy of any digital betting site before finalising a deposit.

  7. Il settore del betting virtuale si e ampliato di recente grazie a un sito inedito che cattura lo sguardo di svariati utenti: Cazeus [url=https://cazeus-casino-34.icadebuhadiy77.workers.dev]casino cazeus[/url] . Quando si analizza questa realta, e facile comprendere come mai un numero crescente di giocatori stiano cercando informazioni approfondite sulla piattaforma. Cazeus casino si propone quale un’opzione moderna e versatile per ciascun utente alla ricerca di un’esperienza di gioco scorrevole e colma di alternative. Navigando su Cazeus online, si nota subito una selezione di prodotti molto vasta che spazia dalle slot machine piu innovative fino ai tavoli verdi in tempo reale, offrendo cosi un intrattenimento globale per qualunque genere di utente.

    Qualora tu volessi trovare Cazeus recensioni per appurare se questa piattaforma risponda ai tuoi desideri, incontrerai giudizi che sottolineano la qualita dell’interfaccia e la rapidita dei pagamenti. Svolgendo un’analisi approfondita su Cazeus, si evince che la pagina web sia stato progettato per rispondere alle esigenze degli iscritti attuali, garantendo protezione e chiarezza in ogni partita. Numerosi iscritti in Italia stanno gia sperimentando Cazeus Italia, gradendo la semplicita dei menu e la professionalita del centro aiuto. Pure consultando diverse Cazeus casino recensioni, risulta palese che l’aspetto migliore della piattaforma risiede nella scelta oculata delle software house.

    La riuscita di un Cazeus online casino dipende spesso alla bravura nel proporre promozioni interessanti e un contesto tutelato. A tal proposito, casino Cazeus appare aver centrato il bersaglio, affermandosi quale un punto fermo nel panorama attuale. Optare per puntare all’interno di Cazeus casino online vuol dire porsi nelle mani di un ambiente progettato con estrema attenzione, laddove lo svago sposa standard elevati. Che tu sia un esperto di slot o un amante del blackjack, la piattaforma si adatta completamente alle tue preferenze. In conclusione, se stai scoprendo a questo mondo, uno sguardo vigile di ogni recensione su Cazeus casino ti aiutera a iniziare la tua avventura con cognizione di causa, ribadendo che questa opzione costituisce una delle alternative piu stimolanti offerte oggi sul mercato per un betting regolamentato e affidabile.

  8. spinmachospiel-Anomon

    Im Zuge des Aufenthalts von Online Plattformen gleich dem Spinmacho Casino hat der Schutz Ihrer personlichen Daten eine zentrale Rolle [url=https://spinmachospiel.com.de/privacybeleid]spinmacho[/url] . Wenn Sie sich auf der Webseite https spinmachospiel com de privacybeleid bezuglich den Umgang mit Ihren Informationen erkundigen, werden Sie feststellen, dass Klarheit und Sicherheit bei Spinmacho an erster Stelle stehen. Die Datenschutzrichtlinie definiert genau festgelegt, welche Daten wahrend Ihres Besuchs gesammelt werden und zu welchen Zwecken diese Verwendung finden. Dies ist ein elementarer Faktor fur ein vertrauenswurdiges Spielerlebnis.

    Die Verantwortlichen von Spinmacho geloben dazu, Ihre vertraulichen Informationen nach den geltenden gesetzlichen Standards zu sichern. Wenn Sie das Spinmacho Casino spielen, werden verschiedene Systemdaten, wie etwa Internetadressen oder Surfinformationen, bearbeitet, um die Nutzbarkeit der Seite zu optimieren und ein flussiges Spielerlebnis zu sicherstellen. Dabei sorgt das Unternehmen sicher, dass keinerlei fremden Einheiten Zugriff auf Ihre personlichen Kontoinformationen oder Zahlungsdaten erlangen. Die Webseite nutzt aktuelle Codierungsverfahren, die dem heutigen Industriestandard nachkommen, um den Schutzwall Ihrer Datensphare zu ausbauen.

    Ein anderer wichtiger Fokus in den Regularien von Spinmacho ist die Problematik, wie dauerhaft Daten gespeichert werden und welche Rechte Sie als Kunde haben. Sie haben stets die Chance, Auskunft uber die bei Spinmacho hinterlegten Daten zu fordern oder eine Tilgung zu einfordern, vorausgesetzt dies nicht mit regulatorischen Archivierungszeiten kollidiert. Das Zutrauen der Nutzer ist das wertvollste Kapital fur das Spinmacho Casino, deswegen der Datenumgang nicht nur als formale Notwendigkeit, sondern als verbindliches Versprechen an die Community verstanden wird.

    Wir legen ans Herz allen Nutzern, die Datenschutzdetails auf der besagten Seite regelma?ig zu studieren, um bezuglich mogliche Anpassungen up-to-date zu sein. Durch diese klare Kommunikation betont das Spinmacho Casino seinen seriosen Anspruch in der Welt des Internet-Gamings. Sicherheit, Diskretion und ein korrekter Einsatz mit Spielerdaten bilden das Basisgerust, auf dem Spinmacho sein Dienstleistungspaket fur alle Spieler aufbaut, damit Sie sich komplett auf den Spa? am Spiel konzentrieren konnen.

  9. Uncover one premier destination for virtual play buffs with baxterbet, an contemporary portal built offering boundless entertainment along with exciting prizes [url=https://baxter-bet-106.danielpressleyr565.workers.dev]baxterbet[/url] . If you are searching for a reliable plus captivating play area, this specific service shines being a premier choice aimed at British gamers desiring top-tier digital amusement.

    When exploring the baxterbet casino online experience, gamers get instantly greeted by a stylish, intuitive design ensuring browsing smooth. If you like classic tables or newest slot machines, this digital room swarms multiple options made for each desire. This flawless incorporation of high-definition imagery plus fluid gameplay guarantees that all plays within this venue is both immersive along with fun.

    Security plus security hold priority for users experiencing this gaming site. The platform utilises sophisticated security measures shield individual along with financial data, granting members full assurance while they explore the huge title list. Moreover, the baxterbet online environment is fully tuned for either desktop and smartphones, allowing you to relish your favorite options portably without losing in standard or execution.

    For anybody considering signing up, analysing player reports might offer helpful details regarding what turns this site unique. Many baxter bet reviews showcase the bountiful promos, attentive client service, plus quick cashout speeds as major highlights. Such favourable testimonials reinforce the image of casino baxter bet as a trustworthy provider in the competitive online gambling sector.

    In the end, if you happen to be a seasoned player alternatively a newcomer wanting to try your luck, baxterbet casino offers a comprehensive, secure plus highly entertaining environment. Sign up today to taste everything that baxter bet has to offer and bring your digital play session up a notch.

댓글 달기

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