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”의 75,091개의 댓글

  1. Ben je aan het kijken naar een frisse methode om digitaal te wedden, dan is de mogelijkheid fors dat je de naam instasino bent tegengekomen [url=https://insta-sino-10.mariannyfstarkydl62.workers.dev]instasino[/url] . Dit platform wint steeds meer de focus van deelnemers die op zoek zijn naar een eigentijdse en vlotte ervaring. In deze instasino review duiken we dieper in wat dit platform te bieden heeft voor liefhebbers van casino spellen. Het instasino casino heeft faam door zijn toegankelijke interface en een groot palet aan games die zowel nieuwelingen als geoefende klanten interessant zijn.

    Wanneer we analyseren instasino casino nederland, valt direct op dat het platform reageert op de wensen van de Nederlandse markt. Veel Nederlandse spelers vragen zich af of het instasino veilig is. Veiligheid en integriteit vormen bij elk goed casino instasino centraal, en dit domein streeft ernaar een beschermde klimaat te geven voor elke speler. Middels de makkelijke instasino casino login procedure kun je vlug en gemakkelijk aan de slag met jouw geliefde slots of live casino spellen.

    Het assortiment bij instasino casino online is gevarieerd en levendig. Of je nu houdt van traditionele tafelspellen of de nieuwste videoslots, instasino nederland biedt voor elk type speler wat. Het leuke van instasinocasino is dat het design volledig is aangepast voor ook desktop als smartphones, met als resultaat dat je constant en op elke plek toegang hebt tot je favoriete games. Veel klanten erkennen de vlotte doorloop van opnames en de professionele klantenservice die beschikbaar is om mogelijke vragen te beantwoorden.

    Concluderend, als je op zoek bent naar een nieuwe en toegankelijke locatie om te wedden, dan is het de moeite waard om eens een rond te neuzen bij dit domein. Middels de mix van een groot spelaanbod en een nadruk op gebruiksvriendelijkheid, plaatst het casino instasino zich als een serieuze partij in de industrie van online kansspelen. Onthoud daarentegen nooit om verantwoord te spelen en je budget in de controleren tijdens het moment dat je gebruikmaakt van alles wat dit casino te bieden heeft.

  2. Этот метод направлен на выявление и замену негативных мыслей и стереотипов поведения, связанных с потреблением алкоголя. Пациент учится отслеживать свои эмоциональные реакции и заменять деструктивные установки конструктивными стратегиями противостояния стрессу.
    Получить дополнительные сведения – [url=https://lechenie-alkogolizma-sochi0.ru/]лечение алкоголизма краснодарский край[/url]

  3. Poultry Pathway Simulation is a favoured virtual gambling platform that has attracted considerable focus among homegrown gamblers seeking for a legitimate and exciting casino journey [url=https://chicken-road-uk-35.web.app]Chicken Road Demo Uk[/url] . If you’re exploring the Feathered Lane Simulation site, you might be wondering about its reputation, mechanics, and full fame. This evaluation delivers a comprehensive summary of what to look forward to when experiencing Feathered Lane Simulation, guaranteeing you make an knowledgeable call before venturing into the virtual gaming universe.

    The Chicken Road Demo site features a demo edition of its gaming options, enabling gamblers to test the platform without endangering live money. This is particularly advantageous for those new to online gambling or those who just want to test the terrain before committing cash. The Poultry Pathway Preview British edition is built to cater particularly to British enthusiasts, ensuring a polished experience with domestic monetary options and well-known gaming aspects.

    One of the distinctive aspects of Clucking Highway Test is its vast array of entertainment games, encompassing slot machines, which are part of the top picks for players. The Poultry Pathway Preview Spin category features a range of offers with thrilling stories, eye-catching visuals, and seamless interactivity. Whether you like old-school reels or contemporary dynamic slots with bonus stages, the trial edition provides a sample of what’s offered on the genuine platform.

    When assessing whether Poultry Pathway Preview is authentic, it’s vital to seek for proofs of transparency and security. Trusted web-based gambling generally operate under regulated standards, assuring equitable play and player security. The Feathered Lane Simulation Gambling Analysis section points out the necessity of inspecting for approval facts, secure financial methods, and favourable player feedback. Many punters who have played Chicken Road Demo virtual gambling report a polished and thrilling adventure, though it’s perpetually prudent to confirm reviews from dependable sources.

    Engaging with Chicken Road Demo is easy—simply visit the site, build an profile, and dive into the trial titles. The Feathered Lane Simulation Engage tool enables you to experiment your fortune without financial risk, making it an perfectly way to learn the mechanics and processes of different offers. From reels to roulette offers, the demo variant offers a comprehensive preview of the platform’s services.

    In conclusion, Clucking Highway Test is a reputable and intuitive digital entertainment preview site that gives a excellent way to try casino before investing actual capital. Whether you’re hunting for Feathered Lane Simulation Casino Evaluation insights or merely prefer to sample Feathered Lane Simulation Spin games, this hub offers a solid tutorial to digital entertainment excitement in the British. Constantly ensure you’re playing prudently and verifying for accurate licensing to confirm a safe and enjoyable experience.

  4. Этот метод направлен на выявление и замену негативных мыслей и стереотипов поведения, связанных с потреблением алкоголя. Пациент учится отслеживать свои эмоциональные реакции и заменять деструктивные установки конструктивными стратегиями противостояния стрессу.
    Разобраться лучше – [url=https://lechenie-alkogolizma-sochi0.ru/]центр лечения алкоголизма[/url]

  5. Алкогольный запой — это состояние, при котором человек теряет способность самостоятельно прекратить потребление спиртного и контролировать дозировку. В таких условиях нарастают неврологические и метаболические нарушения, возрастает риск серьёзных осложнений вплоть до алкогольного делирия. Наркологическая клиника «СамараМед» предлагает круглосуточную выездную помощь на дому в Самаре и области с гарантией полной анонимности и выездом специалиста в течение 30 минут после обращения. Наши врачи применяют современные протоколы детоксикации и психологической поддержки, что позволяет безопасно и максимально комфортно пройти через этап выхода из запоя и заложить прочный фундамент для дальнейшего восстановления.
    Ознакомиться с деталями – https://тайный-вывод-из-запоя.рф/

  6. Si estas buscando una vivencia de casino apasionante y segura, Kingmaker se ha posicionado como una de las opciones mas atractivas del mercado actual [url=https://king-maker-es.vercel.app]kingmaker casino review[/url] . El sitio web oficial ofrece una plataforma moderna disenada para satisfacer a los jugadores mas selectos. Al visitar Kingmaker online casino, notaras rapidamente que su interfaz intuitiva facilita la navegacion, permitiendo que tanto principiantes como expertos disfruten de una amplia gama de tragaperras, juegos de mesa y opciones con crupier en vivo.

    Efectuar el kingmaker casino login es un proceso sencillo y rapido, lo que asegura que nunca pierdas tiempo antes de empezar a apostar. Muchos usuarios destacan en cada kingmaker casino review la excelencia de su catalogo, el cual cuenta con titulos de los desarrolladores mas prestigiosos de la industria. Si buscas diversion y posibilidades reales de ganar, casino Kingmaker es el destino ideal. Gracias a su optimizacion, la experiencia en kingmaker casino online es fluida tanto en dispositivos moviles como en ordenadores de sobremesa.

    Es logico que antes de registrarte quieras leer las kingmaker casino opiniones de la comunidad. La mayoria de los usuarios valoran bien la seguridad de la plataforma, la rapidez en los retiros y la atencion al cliente dedicada. El king maker se ha ganado la fidelidad de los usuarios al ofrecer un espacio justo y transparente. Acceder a tu cuenta mediante el kingmaker login te proporciona acceso a promociones especiales y ofertas disenadas para maximizar tus oportunidades de exito.

    En resumen, si tu meta es encontrar un operador confiable, Kingmakercasino es la solucion. No importa si prefieres los juegos tradicionales o las novedades mas recientes, Kingmaker tiene todo lo que necesitas para elevar tu experiencia de juego. Te animamos a visitar la plataforma, realizar tu kingmaker login y ver por que tantos jugadores consideran a King maker casino como su portal preferido. No desaproveches la oportunidad de sentir la emocion en uno de los sitios mas competitivos y entretenidos de la web actualmente.

  7. В этой статье мы рассматриваем разные способы борьбы с алкогольной зависимостью. Обсуждаются методы лечения, программы реабилитации и советы для поддержки близких. Читатели получат информацию о том, как преодолеть зависимость и добиться успешного выздоровления.
    Полезно знать – [url=https://realtytrend.ru/pages/platnyj-narkolog-na-dom-anonimno/]частный нарколог на дом срочно[/url]

  8. spinogambinobet-tromma

    Quando si parla di intrattenimento digitale e scommesse sportive in Italia, il nome spino gambino sta rapidamente guadagnando una fama di affidabilita e trasparenza [url=https://spinogambinobet.it.com/chi-siamo]spinogambino[/url] . La missione di questo portale e quella di offrire agli utenti un ambiente protetto, intuitivo e dinamico, dove la passione per il gioco si incontra con la massima protezione dei dati personali. Visitando la pagina dedicata alla storia e alla visione del portale, ovvero la pagina informativa del sito, e facile capire come spino gambino ponga al centro di ogni sua scelta l’esperienza dell’utente finale.

    Il portale nasce con l’obiettivo di unire tra la complessita del mondo delle scommesse e la necessita di semplicita richiesta dai giocatori moderni. Attraverso un approccio orientato all’innovazione, il team di spino gambino lavora quotidianamente per aggiornare le quote, migliorare le funzionalita del sito e garantire che ogni transazione avvenga in totale conformita con le normative vigenti. La trasparenza e il pilastro fondamentale su cui poggia l’intera struttura informativa dell’azienda. Chi sceglie di navigare su questo portale sa di poter contare su un punto di riferimento, capace di offrire assistenza costante e una vasta gamma di opzioni che soddisfano sia i principianti che gli scommettitori piu esperti.

    La filosofia di spinogambino si riflette chiaramente nel modo in cui vengono presentati i servizi: nessuna promessa ingannevole, ma una narrazione onesta volta a promuovere il gioco responsabile. La sezione chi siamo non e solo una vetrina aziendale, ma un manifesto di impegno verso la comunita dei giocatori. Scegliere questa piattaforma significa affidarsi a un ambiente di gioco progettato per essere fluido, veloce e, soprattutto, equo. Grazie alla dedizione verso l’eccellenza, il brand continua a crescere, consolidando la propria posizione nel settore e dimostrando che, con la giusta visione, e possibile trasformare la passione per lo sport in un momento di svago consapevole e gratificante per chiunque decida di farne parte.

  9. Whenever you are searching for an adventurous approach to evaluate your luck in Malaysia, search no further than the captivating experience offered at plinko-game-95.web.app [url=https://plinko-game-95.web.app]plinko casino game[/url] . The plinko game has quickly turned into a phenomenon among native players due to its straightforward design and the prospect for sizable rewards. If you are considered a casual player or a veteran enthusiast, this portal delivers a smooth path to savor the classic plinko casino game right from the comfort of your residence.

    The notion is transparent: drop a ball from the top from the summit of a pyramid-shaped board and observe it ricochet across various pegs till it lands in a multiplier slot on the base. This plinko online game merges absolute entertainment together with the excitement of expectation. For individuals drawn to the rivalry aspect of things, playing the plinko game online real money version is the optimal path to elevate your betting session. With its accessible interface, it is hardly surprising that this release is fast becoming the leading pick for lots of people who look for a dependable plinko casino experience.

    For gamers in Malaysia, reaching a stable and fair environment is essential. This site secures that your plinko Malaysia sessions are fluid, secure, and equitable, offering a premium atmosphere that reflects top-tier worldwide platforms. If you wish to plunge into the gameplay, you can effortlessly begin your journey by investigating the numerous betting choices accessible in the plinko online environment. By engaging in plinko Malaysia real money gameplay, you possess the chance to convert easy rounds into substantial wins.

    Why delay to join the fun? The popularity of the plinko game persists to expand, establishing it one of the most popular encounters in the digital betting arena. Regardless of whether you are participating for fun or targeting huge payouts, the site at plinko-game-95.web.app is engineered to meet your needs. Feel the thrill of the latest plinko game today and discover if you can hit that hidden maximum multiplier. Commence your quest now and enter the circle of players relishing this mesmerizing game.

  10. instasino-nainal

    Ben jij aan het kijken naar een verfrissende ontmoeting in de branche van web-gebaseerde weddenschappen? Het is dan goed om te verkennen de opties van instasino [url=https://instasino-10.supplywetlandjuniperwcfg2999.workers.dev]instasinocasino[/url] . Steeds meer gokkers in onze natie vinden deze goksite, dat bekendstaat om het gebruiksgemak en uitgebreide spelaanbod. In dit instasino overzicht duiken we dieper in op deze aanbieder werkelijk presenteert voor spelers in ons land. Zodra je wilt gaan voor een digitale speelomgeving dat simpelweg toegang verleent tot een breed scala aan fruitautomaten en live casino games, dan is dat een naam die je ongetwijfeld ziet.

    Verschillende gebruikers vragen zich af of instasino betrouwbaar opereert. Veiligheid en fair play betekenen bij een degelijke instasino site centraal. De website is ontwikkeld om een vlotte game-ervaring te garanderen, waarbij de instasino casino login eenvoudig en snel verloopt. Wanneer je toegang hebt, krijg je toegang tot een actueel assortiment dat ideaal is voor zowel beginners als de meer ervaren gokkers. De website, die bereikbaar is door middel van de werkende links zoals instasino-10.supplywetlandjuniperwcfg2999.workers.dev, zet in op een overzichtelijke interface omdat je snel vindt wat je zoekt naar de beste games.

    Indien je specifiek uit bent op instasino in ons land, geeft de site veel keuzemogelijkheden. Of je nu houdt van klassieke fruitautomaten of de opwinding van een live spelleider, casino instasino biedt voor iedereen iets leuks. De populariteit van deze goksite neemt gestaag toe, mede door de vloeiende werking van de games en de uitstekende bruikbaarheid via smartphones. Vóórdat je geld stort, is het altijd verstandig om jezelf goed in te lezen in de richtlijnen van de aanbieder. Samengevat is instasino casino een opvallende partij in de industrie die de aandacht verdient om te verkennen. Onthoud om altijd verantwoord te spelen en je persoonlijke grenzen te bepalen gedurende je plezier met de ruime opties op dit platform. Start vandaag nog met het instasino universum en beoordeel of het past bij jouw eigen wensen voor digitaal vermaak.

댓글 달기

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