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”의 74,998개의 댓글

  1. Verken je jij op zoek naar die betrouwbare en spannende bestemming teneinde virtueel te spelen? In dat geval blijkt dit interessant omdat te surfen bij de portal die te vinden is op insta-sino-3.pages.dev [url=https://insta-sino-3.pages.dev]instasino[/url] . Binnen dit gedetailleerde instasino review gaan we nader over hetgeen dit platform bijzonder onderscheidend maakt voor gokkers dat genieten van klasse en afwisseling. Hetzij jij straks een doorgewinterde deelnemer wordt of juist start, instasino levert de intuïtieve layout welke het gokken toegankelijk maakt richting iedereen.

    Zodra men kiest voor instasino casino, profiteert je door een breed scala met titels, beginnend bij vintage fruitautomaten naar nieuwe live interacties. Talrijke gebruikers dat verlangen naar een veilig instasino casino nederland waarderen vooral die vaart en de eenvoud waarmee jij via de lobby bladert. Dit blijkt duidelijk aangezien instasino casino online probeert een vlekkeloze ervaring, indien men nu gokt via je computer of je smartphone. Ten behoeve van spelers welke meteen aan de slag willen, vormt die instasino login rappe eveneens betrouwbaar geregeld, zodat je binnen wat seconden je gewenste spellen kunt activeren.

    Wat aangaat deze veiligheid omtrent de instasino review, blijkt dat belangrijk teneinde te kijken naar spelassortiment, klantenservice en bescherming. Casino instasino bevat die recente periode talloze positieve waardering vergaard in deze online community. Dergelijke komt mede vanwege het punt dat instasino nl streeft naar zo’n soepele interactie richting de gebruiker en ook de eerlijk gameplay. Indien je onderzoekt het aanbod bij instasino online, valt meteen de veelzijdigheid in het oog die blijkt gepresenteerd via gevestigde softwareleveranciers.

    Concluderend, de persoon die op zoek is naar het vernieuwende en ook hedendaagse spelomgeving, is verstandig om deze site te verkennen. De mix aangaande een strak uiterlijk plus het uitgebreid portfolio van weddenschappen vormt deze aanbieder de solide concurrent in deze huidige markt. Let er altijd voor dat jij bewust inzet eveneens geniet van dit assortiment dat instasino richting je aanbiedt. Al dan niet je momenteel verlangt naar amusement eveneens de sensatie aangaande de jackpot, dit platform levert het volledig.

  2. chickenroad-Paussy

    The Cluck Lane Simulation is the favoured digital gaming platform that has secured substantial focus among homegrown punters looking for an legitimate and engaging playing adventure [url=https://chickenroad-uk-27.vercel.app]Chicken Road Demo Slot[/url] . Whether you’re intrigued about its authenticity, playing, or why to access the demo mode, this review delivers a thorough breakdown to help you formulate an informed call.

    Chicken Path Simulation British gives a easy-to-navigate interface that appeals every novices and seasoned players. The test edition permits punters to explore the platform’s tools, devoid of wagering genuine funds, making it one of the excellent choice for players recent to web-based gambling or simply craving to sample the waters. The Poultry Road Test Betting Guide highlights its wide choice of games, covering slots games, desk plays, and live host alternatives, confirming there’s something for all.

    A of the primary common questions about the Cluck Lane Simulation is if it’s it is authentic. Despite the hub itself looks to be a preview version of a actual gaming site, it’s vital to confirm the validity of the genuine venue prior contributing capital. The Cluck Path Simulation Comments commonly point out its smooth interaction and high-fidelity graphics, which contribute to an engaging adventure. Still, always double-check with verified authorities or certified gaming reviews prior to involving in real-money wagering.

    When you’re wondering why to join Feathered Highway Test, entering the preview is direct. Easily explore the venue and proceed to the demo part, where you can start twirling the spinners on Chicken Road Slot or venture your fortune at alternative games. The Poultry Road Entertainment delivers a range of varieties, from old-school reels to tactical games, assuring diversity and entertainment.

    For those scouting to explore Poultry Highway Digital Casino, the demo version is the fantastic initial step. It allows enthusiasts to introduce themselves with the design, perks, and playing processes prior to allocating actual cash. Whether you’re sampling the waters or simply savouring complimentary reels, the Cluck Path Preview Experience is equally thrilling and relaxed.

    In final analysis, the Poultry Path Test is a solid choice for players seeking a demo version of an online gaming hub. Even though it provides a exciting and accessible way to discover playing options, consistently ensure the genuine betting complies your demands in terms of authorisation, security, and equity. Should you’re geared up to take the upcoming stage, be certain to study thoroughly before gambling for real.

  3. Рекомендации строятся вокруг состояния человека, а не по универсальному шаблону для всех случаев.
    Ознакомиться с деталями – [url=https://4.vyvod-iz-zapoya-balashiha13.ru/]анонимный вывод из запоя[/url]

  4. winairlinecasino-chiedo

    Die virtuelle Spielbank Winairlines konnte sich auf dem Markt als eine feste Gro?e etabliert und lockt regelma?ig unzahlige Zocker, die auf der Suche nach hochwertiger Unterhaltung sind [url=https://winairlinecasino.com.de]Online-Casino[/url] . Wer auf der Suche nach einem umfassenden Spielerlebnis ist, entdeckt bei Winairlines eine Webseite, die durch eine intuitive Gestaltung und eine gro?e Auswahl an hochwertigen Casinospielen uberzeugt. Eine fundierte Online-Casino Bewertung zeigt deutlich, dass dieser Anbieter sowohl fur Anfanger als auch fur alte Hasen ein spannendes Reiseziel darstellt.

    Die Webseite punktet mit einer intuitiven Bedienung, die es ermoglicht, muhelos zwischen unterschiedlichen Bereichen zu navigieren. Das Zentrum des Portfolios sind die zahlreichen Casinospiele, die von namhaften Herstellern bereitgestellt werden. Von klassischen Slots uber aktuelle Video-Slots bis hin zu strategischen Tischspielen ist fur jede Vorliebe etwas dabei. Besonders zu betonen ist das immersive Live-Casino, welches das echte Casino-Feeling direkt auf den heimischen Bildschirm oder das Tablet bringt. Hier konnen Nutzer in Live gegen professionelle Croupiers antreten, was fur eine sehr realistische Stimmung sorgt.

    In der Online-Casino Bewertung wird oft positiv hervorgehoben, wie transparent winairlines mit seinen Bonusangeboten und fairen Spielbedingungen umgeht. Sicherheit und Seriositat stehen bei diesem Anbieter an oberster Stelle, weshalb aktuelle Sicherheitsstandards zum Einsatz kommen, um die Spielerdaten zu sichern. Auch der Kundenservice spielt eine zentrale Rolle; bei Ruckfragen oder Problemen steht ein kompetentes Support-Team zur Verfugung, das den Nutzern effizient weiterhilft.

    Abschlie?end kann man festhalten, dass win airlines eine exzellente Option fur alle ist, die ein vertrauenswurdiges und vielfaltiges Portal suchen. Die gelungene Kombination aus einem vielfaltigen Portfolio an Games und einem attraktiven Live-Bereich macht den Anbieter zu einer Top-Adresse fur deutsche Spieler. Wer Wert auf Qualitat, Sicherheit und eine unterhaltsame Spielumgebung legt, sollte sich diese Plattform einmal naher anschauen. Das positive Gesamtbild und die kontinuierliche Optimierung sorgen dafur, dass Winairlines auch in der kommenden Zeit eine wichtige Position in der Branche spielen wird.

  5. spinogambinobet-Hoibra

    Ao mergulhar no mundo das apostas online, a transparencia e a honestidade sao fundamentais para garantir uma vivencia protegida e correta [url=https://spinogambinobet.com.pt/termos-e-condicoes]spino gambino[/url] . A secao de regulamento do spino gambino e um documento essencial que todos os apostadores devem consultar antes de iniciar as suas apostas na plataforma. Este documento define as normas fundamentais que governam a conexao entre o jogador e a casa de apostas, assegurando que o ambiente de jogo se permaneca seguro e controlado para todos.

    Ao entrar no portal spinogambino, os usuarios concordam com uma serie de diretrizes que cobrem desde a abertura de conta ate aos procedimentos de depositos e saques. Compreender estas clausulas e vital para prevenir confusoes no futuro. O spino gambino detalha, por exemplo, os requisitos de idade minima e as obrigacoes que cada jogador assume ao fazer o cadastro. Alem disso, as politicas sobre ofertas e bonificacoes estao claramente descritas, detalhando os condicoes de rollover exigidos para que os lucros sejam transformados em dinheiro para levantamento.

    A protecao e uma prioridade no spino gambino. Os termos e condicoes tambem abordam politicas de jogo responsavel, disponibilizando recursos para que os jogadores consigam estabelecer limites de depositos ou tempos de pausa. Estas acoes demonstram o empenho da empresa com o bem-estar dos seus membros, fomentando um lazer responsavel. Outro ponto relevante contido nestes textos diz respeito a seguranca da informacao e a confidencialidade, garantindo que as informacoes pessoais de quem utiliza o spino gambino sejam tratadas com o total cuidado profissional e legal.

    Aconselhamos que todos os apostadores reservem alguns momentos a analise detalhada destas diretrizes. Conhecer bem sobre como opera o spinogambino possibilita que possa desfrutar das suas apostas desportivas e jogos de casino com total tranquilidade, tendo plena consciencia de quais sao os seus direitos e deveres. Caso surja qualquer duvida, a suporte tecnico esta pronta para explicar pontos especificos presentes no regulamento, garantindo que a transparencia seja constantemente o fundamento da sua experiencia nesta casa.

  6. Схема помощи зависит от состояния, стажа употребления, противопоказаний и дальнейших целей лечения.
    Подробнее – [url=https://2.kapelnica-ot-zapoya-v-moskve14.ru/]kapelnica-ot-zapoya-na-domu-kruglosutochno[/url]

  7. koningcasino-Omibe

    Bent u op zoek naar een degelijke en vermakelijke spelplatform? Dan is het platform op koningcasino-11.pages.dev mogelijk de bestemming waar u naar op zoek was [url=https://koningcasino-11.pages.dev]koning casino[/url] . Als gokfanaat is het belangrijk om te weten wat een casino precies te aanbiedt. In deze korte koning casino review bespreken we de hoogtepunten van dit platform, dat door velen wordt gezien als de ideale plek voor wie zich een vorst wil voelen tijdens het spelen.

    Het koning online casino heeft de laatste tijd flink aan bekendheid vergaard binnen de Nederlandse markt. Veel gokkers die op zoek zijn naar een hoogwaardige speelervaring, komen uit bij koningcasino vanwege het ruime aanbod aan games en de overzichtelijke interface. Of u nu een ervaren speler bent of net begint met gokken, de website biedt een makkelijke bediening waardoor u direct aan de slag kunt met uw voorkeursspellen. Het label koning casino nederland staat hierbij synoniem voor een vlotte speelervaring.

    Wanneer we kijken naar het spelaanbod bij casino koning bet, valt direct de diversiteit op. Van klassieke slots tot innovatieve live games, dit online casino koning weet voor ieder wat wils te presenteren. Het is de droom van elke casino koning om een plek te vinden waar betrouwbaarheid en entertainment worden gecombineerd. Bij koning bet casino wordt er focus gelegd aan het creeren van een beschermde speelomgeving, zodat u zich zich volledig kan focussen op het spelplezier.

    Kortom, wie besluit om bij casino koning te spelen, kiest voor een platform dat kwaliteit hoog in het vaandel heeft staan. Het is begrijpelijk dat steeds meer mensen kiezen voor deze specifieke aanbieder. Als u op zoek bent naar spanning en entertainment, dan biedt deze site alles wat u nodig heeft. Vergeet echter nooit om verantwoord te spelen, zodat het vermaak centraal blijft staan. Bezoek koningcasino-11.pages.dev en ontdek zelf waarom dit platform voor velen de toonaangevende keuze is geworden in de wereld van online gokken.

  8. De spel Plinko is op korte termijn geevolueerd tot eentje van de meest geliefde casino games in ons land [url=https://plinko-game-83.web.app]plinko app[/url] . Wie naarstig zoekt naar de ideale game-ervaring in Plinko Belgie, belandt spoedig bij de website op plinko-game-83.web.app. Dit portaal geeft een toegankelijke en vlotte methode om te recreeren van het traditionele vallende balletjesspel dat gelauwerd is om zijn helderheid en de enorme graad van spanning. Het principe is makkelijk: je laat een bolletje van bovenuit in een driehoek met staafjes neerdalen en observeert hoe het bolletje zijn pad naar beneden zoekt naar de winstvakken onderaan.

    Een aanzienlijk pluspunt van deze specifieke site is de kans om het vermaak te ontdekken zonder direct verlies. Via gebruik te maken van de Plinko demo, bent je in staat om gewend geraken met de werking, de inzetmogelijkheden en de wisselende schommelingen van het entertainment. Dit is uitstekend voor zowel nieuwelingen als doorwinterde liefhebbers die hun speelwijze willen verifieren. Je leert op deze manier precies hoe de beloningen functioneren alvorens je kiest om met echte euro’s aan de gang te gaan.

    Talloze bezoekers twijfelen of er een aparte plinko app vereist is om op de gsm te spelen. Bij deze aanbieder is dat geen noodzaak. De website is geheel geschikt voor smartphone-browsers, waardoor je het spel direct kunt laden vanaf je telefoon of handheld. Dit levert een perfecte ervaring, of je nu buitenshuis bent of lekker op de sofa zit. De layout is intuitief, rap en visueel knap, wat bijdraagt aan het spelgenot.

    Samenvattend, voor wie op zoek is naar een vertrouwde omkadering om Plinko te spelen, biedt plinko-game-83.web.app de ideale evenwicht tussen vermaak en toegankelijkheid. Het is een prima optie voor alle individuen in Belgie die wilt smullen van dit gegeerde gokspel. Onthou nochtans niet om steeds bewust te gokken en je grenzen te beseffen wanneer je aan de gang gaat met dit spannende entertainment.

  9. NewSpin Casino is an up-and-coming online gaming platform that has captured attention among gamblers seeking a new and exciting experience in the domain of digital casinos [url=https://neospin-casino-5.pages.dev]neo spin casino[/url] . As one of the newer entries in the competitive online casino industry, NewSpin Casino merges cutting-edge features, thrilling games, and a easy-to-navigate platform crafted to appeal both casual and serious players. Whether you’re testing the latest casino games or putting to the test your luck on table titles, NeoSpin Casino provides a reliable base for entertainment.

    One of the notable features of NewSpin Casino is its commitment on ensuring a smooth online gaming experience. The platform values ease of use, guaranteeing that gamblers can easily navigate through its selection without unnecessary complications. With a growing collection of titles, featuring popular slots and real-time choices, Neospin Casino appeals to a varied spectrum of tastes. The inclusion of trusted providers like Net Entertainment, Playtech Gaming, and Evolution Group contributes credibility and variety, guaranteeing that players have entry to premium fair and exciting games.

    For those new to the platform, a Neospin guide can offer valuable insights into what to anticipate. Gamblers often praise the platform’s user-friendly design, helpful client service, and attractive promotional offers as major strengths. The initial offer typically features bonus rounds, cashback deals, and other incentives created to enhance the starting gaming experience. However, as with any digital gambling platform, it’s essential to read the rules thoroughly to grasp any wagering requirements or conditions.

    NewSpin Casino online also shines for its focus to security and fairness. Licensed and regulated by trusted authorities, the platform ensures that all games are run under strict oversight, safeguarding players from unethical methods. Furthermore, the use of state-of-the-art encryption technology confirms that private and financial information remains protected, providing confidence for those making deposits and cashouts.

    Whether you’re a lover of classic casino games or choose the adrenaline of live casino titles, NeoSpin Casino delivers a energetic setting where gamblers can appreciate their beloved activities. With regular updates and a focus on customer happiness, NewSpin Casino is rapidly evolving a recognised brand in the digital entertainment industry. For those seeking to explore a reliable and fun Neospin Casino online journey, this platform is definitely valuable considering. Remember to gamble wisely and within your budget.

  10. И без помощи не обойтись. Потом трезвость кажется невозможной. Нарколог на дом вывод из запоя — Осматривает, ставит капельницу. И человек начинает соображать. Круглосуточный вывод из запоя — Без больниц. Можете ознакомиться по ссылке: вывод из запоя на дому цена [url=https://trezvost.vyvod-iz-zapoya-na-domu-msk-mnq.ru]вывод из запоя на дому цена[/url] И про капельницу от похмелья на дому в Москве. Иногда промедление стоит здоровья.

댓글 달기

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