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

  1. Daca esti in cautarea unei experiente de joc de neuitat, Oscarspin reprezinta noua destinatie preferata a pasionatilor de jocuri de noroc din tara noastra [url=https://oscar-spin-ro.vercel.app]casino oscarspin[/url] . Platforma casino-ul a fost conceputa special pentru a asigura o navigare rapida si intuitiv la cele mai populare jocuri ca la aparate si jocuri de masa, totul intr-un spatiu protejat si adaptat pentru dispozitivele mobile. Cei care intra pe site-ul vor descoperi o selectie vasta de jocuri, create sa satisfaca atat pe cei aflati la inceput, cat si pe cei experimentati care cauta varietate.

    Unul dintre principalele avantaje pe care le ofera acest operator este constituit din promotiile atractive. Cei care isi deschid cont la casino oscarspin pot beneficia de pachete de bun venit atractive, printre care se numara si mult cautatele oscarspin rotiri gratuite. Acestea sunt ideale pentru a testa jocurile indragite fara a risca propriul capital. In plus, daca esti in cautarea unor promotii speciale, rotirile cadou sunt o metoda ideala de a da startul distractiei in universul cazinourilor, crescandu-ti sansele de castig din start.

    Protectia si corectitudinea sunt pilonii principali pe care se bazeaza oscarspin online. Platforma pune un accent deosebit pe experienta utilizatorului, oferind suport dedicat si metode de plata rapide, gandite nevoilor jucatorilor locali. De asemenea, promotiile de tip runde gratis fara depozit conving tot mai multi jucatori, dandu-le sansa de a vedea catalogul bogat de jocuri fara niciun angajament financiar initial.

    Indiferent daca intri de pe telefon sau de pe calculator, oscarspin casino iti asigura o experienta placuta si distractie garantata. Nu rata ocazia de a face parte in aceasta comunitate dinamica si de a beneficia de toate avantajele disponibile. Alege sa te bucuri de jocurile tale preferate intr-un mod responsabil si nu ezita de bonusurile actuale pe care le gasesti pe aceasta platforma moderna, conceputa pentru a ridica nivelul pietei din tara.

  2. vegasherobet-quoca

    Verantwortungsbewusstes Spielen bleibt bei Vegashero das zentrales Anliegen, sodass sicherzustellen, dass unsere Zerstreuung beim virtuellen Glucksspiel stets sicher sowie beaufsichtigt bleibt [url=https://vegasherobet.ch/verantwortungsbewusstes-spielen]vegashero[/url] . Nachdem Glucksspiel in erster Linie als Zeitvertreib stattdessen keinesfalls wie Einnahmequelle gelten muss, vertraut das Portal auf umfassende Schutzma?nahmen inklusive Informationen. Innerhalb jener zugehorigen Infoseite finden Zocker hilfreiche Ratschlage samt Werkzeuge, sodass das personliche Spielverhalten eigenstandig zu prufen plus nach Notwendigkeit aktiv zu handeln.

    Der wichtiger Bestandteil dieser Leitlinie dieses Casinos ist eine Chance, individuelle Limits zu definieren. User konnen eigene Budgetgrenzen festlegen, welche den Leuten hierbei unterstutzen, den Durchblick betreffs des Guthabens nicht zu verlieren. Wenn kurze Pause notig ist, stellt das Casino ebenso Optionen bezuglich solch eine zeitweilige Kontosperrung sowie einen endgultigen Bann aus dem Zockbetrieb an. Diese Optionen sind einfach auffindbar und zudem lassen sich direkt in den Einstellungen gepflegt sollen.

    Dieses Casino nimmt die unternehmerische gesellschaftliche Pflicht durchaus ernst zudem kooperiert eng an Organisationen zusammen, die auf die Pravention von Abhangigkeit spezialisiert sind. In dieser Seite fur Spielerschutz erhalten Interessenten daher direkte Anlaufstellen inklusive erganzende Hilfsmittel hinsichtlich Beratungen, wenn das eigene Agieren Anlass fur Sorge liefert. Ebenso der Jugendschutz genie?t maximale Prioritat, weshalb strenge Identitatsprufungen durchgefuhrt mussen, um zu gewahrleisten, dass dabei nur mundige Personen Zugang zu diesen Games erhalten.

    Besagtes Personal bei dem Anbieter uberwacht daruber hinaus stetig Wettaktivitaten, um Symptome von unbedachten Verhaltens rechtzeitig auszumachen. Der Zweck stellt dabei, eine Basis zu entwickeln, in der Vergnugen sowie Verantwortung in Harmonie stehen. Wer, wer sich umfassend uber jener Praventionsma?nahmen informieren mochte, kann unsere Plattform nutzen. Hierbei werden die erforderlichen Ma?nahmen erklart, damit die positives Verhaltnis zum Wettsport zu wahren. Sicherheit sowie Offenheit stellen eine Basis fur ein positives Event an diesem Anbieter. Mithilfe jener deutliche Informationspolitik plus die Gewahrung praktischer Steuerungstools fordert die Plattform ihre Nutzerbasis dazu, die totale Kontrolle uber derer Handlungen nicht zu verlieren sowie dieses Spielangebot jederzeit durch Verstand zu nutzen. [url=https://borayoluklu.com/2022/02/23/and-the-day-came-when-the-risk-to-remain-tight-in-a-bud-was-more-painful-than-the-risk-it-took-to-blossom/#comment-11047]Sicheres Zocken bleibt fur den Anbieter das wichtiges Thema, um zu garantieren, ob jegliche Zerstreuung beim virtuellen Glucksspiel stets sicher sowie geordnet agiert.[/url] [url=http://bookangel.co.uk/boards/threads/hey-folks.364/page-4280#post-139015]Verantwortungsbewusstes Spielen gilt fur den Anbieter ein wichtiges Anliegen, damit zu garantieren, ob jegliche Unterhaltung im Online Casino immer sicher nebenbei kontrolliert agiert.[/url] e8_44ac

  3. Эта публикация исследует взаимосвязь зависимости и психологии. Мы обсудим, как психологические аспекты влияют на появление зависимостей и процесс выздоровления. Читатели смогут понять важность профессиональной поддержки и применения научных подходов в терапии.
    Изучить вопрос глубже – [url=https://fixbuilders.ru/pages/narkologicheskaya-klinika-samara-otzyvy/]частная наркология в Самаре[/url]

  4. droptheboss-odotte

    Supposed you are searching for an thrilling novel way to de-stress post a tiring day at employment, the drop the boss game is swiftly emerging as the chatter of the field [url=https://droptheboss-14.web.app]drop the boss slot[/url] . Reachable at the web address droptheboss-14.web.app, this absorbing site offers a singular twist on the classic gaming experience. Through blending dynamic graphics alongside straightforward functions, the drop the boss slot has managed to capture the focus of gamers throughout the territory who are bored of the dull routine of standard recreation.

    As you examine the drop the boss casino interface, you will promptly spot a smooth design that prioritises usability. Providing you are entering the drop the boss online hub from your desktop or a portable handset, the gameplay continues consistent plus quick. Many fans looking for the latest drop the boss uk selections are finding that this particular webpage provides a novel replacement to more busy, old-school settings. The drop the boss casino game is constructed on a base of integrity coupled with thrill, ensuring that every session provides a rewarding task.

    Regarding those interested about how to commence, the drop the boss stake limits are adaptable, attending to a vast variety of preferences. As additional folks uncover the world of droptheboss, it is obvious that this game is creating a substantial spot for itself. Provided you like casino drop the boss slots, this specialised site is worthy of your attention. It is essential to recall that safe gaming must consistently be your priority during interacting using all of the drop the boss games. Via maintaining a measured approach, you can thoroughly savour the innovative animations plus the rush of the pursuit that this title brings. Visit the portal presently to see the cause gamers are performing the switch and finding out what occurs as you finally choose to drop the boss for you. The straightforwardness of the configuration renders it an excellent option for anyone looking for instant, top-tier entertainment in the current play landscape.

  5. Этот обзор медицинских исследований собрал самое важное из последних публикаций в области медицины. Мы проанализировали ключевые находки и представили их в доступной форме, чтобы читатели могли легко ориентироваться в актуальных темах. Этот материал станет отличным подспорьем для изучения медицины.
    Более того — здесь – [url=https://drainix.ru/pages/narkologicheskij-centr-telefon-nizhnij-novgorod/]анонимная наркологическая клиника[/url]

  6. Эта статья освещает различные аспекты освобождения от зависимости и пути к выздоровлению. Мы обсуждаем важность осознания своей проблемы и обращения за помощью. Читатели получат практические советы о том, как преодолевать трудности и строить новую жизнь без зависимости.
    Что ещё? Расскажи всё! – [url=https://rentalz.ru/pages/lechenie-narkomanii-v-samare/]лечение наркозависимых[/url]

  7. Blaze Impacto é um dos divertimentos de jogo de azar na internet entre os populares nos passados tempo, principalmente entre entusiastas que buscam diversão rápida e a chance de lucros altos [url=https://blaze-crash-game.pages.dev]Cassino Blaze Crash[/url] .

    Mas de que maneira opera esse game e por que método maximizar suas chances de triunfo? Neste texto, vamos tudo o que você deve entender sobre o Aceleração Impacto, desde suas funções até recomendações para apostar de maneira intencional.

    O Aceleração Crash é um game de máquina tipo explosão, onde o foco é depositar em um código que se desenvolve progressivamente até atingir um **”crash”** – o instante em que o divertimento interrompe e os prêmios são multiplicados. A dinâmica é simples: você determina um código entre 1 e noventa e nove, investindo em sua replicação. Se acertar o indicador correto no instante do colapso, você ganha um prêmio justo à sua colocação. Se não corresponder, o entretimento recomeça automaticamente.

    Uma das mais incógnitas dos fãs é **”como ganhar na Blaze Crash?”**. A solução não é milagrosa, mas algumas recomendações podem potencializar suas chances. Fundamentalmente, é essencial entender que o divertimento é fundamentado em azar, mas a administração do investimento é fundamental. Coloque apenas o que você está disposto suportar e elimine intensificar as apostas de maneira impulsiva. Além disso, muitos fãs sugerem escolher números com pouca incidência de impacto, como os extremos (1 ou noventa e nove), pois têm a apresentar limitada competição.

    Outra incógnita frequente é **”Blaze Crash paga mesmo?”**. A resposta é positiva, desde que você jogue em sites legítimas. O Explosão Impacto é produzido por uma firma conhecida por sua transparência, e os prêmios são liquidados de acordo com as diretrizes do game. No entanto, é constantemente verificar o histórico do game e as críticas de outros apostadores para garantir que não há irregularidades.

    Para quem se encontra iniciando, **”Blaze Crash dicas de como jogar”** abrangem: investigue com colocações baixas para experimentar o game, monitore os padrões de impacto e abstenda-se apostar em tensão. Muitos apostadores também sugerem usar ofertas de bem-vindos ou promoções oferecidas pelo ambiente para aumentar suas possibilidades de prêmio fundamental.

    Por fim, é importante indagar **”Blaze Crash é confiável?”**. Ambientes sérias, como as que oferecem o divertimento, disponibilizam autorizações legais e mecanismos de segurança robustos. Também, o jogo é auditado regularmente para assegurar a justiça das partidas. Se você escolher por jogar, garanta de definir um casa de apostas com confiável credibilidade e políticas transparentes de depósito e saque.

    Em síntese, o Crash Impacto é um divertimento excitante e acessível, mas como qualquer roleta virtual remoto, demanda responsabilidade e estratégia. Com as recomendações adequadas e um pequeno de fatalidade, você pode apreciar de uma experiência estimulante e, quem sabe, transportar vários prêmios para lar.

  8. где можно купить таблетки трамадол кокаин гашиш купить Мефедрон купить, кокаин купить где можно купить наркотики канабис можно купить где можно купить коноплю
    купить мефедрон гашиш тест на наркотики купить купить экстази бошки гашиш в турцииhttps://abakankupit.xyz трамадол таблетки цены купить марихуана можно купить

  9. Каждый метод «привязан» к решаемой задаче. Если динамика «плоская», мы не усиливаем всё сразу: корректируем один параметр (скорость инфузии, последовательность шагов, длительность вечерних вставок) и повторно оцениваем результат в оговорённое время. Такая бережная настройка снижает риск побочных эффектов и сохраняет ясность днём.
    Получить дополнительную информацию – https://narkologicheskaya-klinika-voronezh15.ru/chastnaya-narkologicheskaya-klinika-voronezh

댓글 달기

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