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”의 62,719개의 댓글

  1. Я не знала, что делать. Вызвала нарколога на дом. детокс на дому в Воронеже — врач ввёл препараты. Всё анонимно, без учёта. Главное — не ждать, пока само пройдёт. Проверено на себе. вызвать врача нарколога [url=https://detoks.narkolog-na-dom-vrn.ru]вызвать врача нарколога[/url] Там все контакты и цены для нашего города. Хотите быстро вывести из запоя — переходите по ссылке. Нарколог на дом — быстро, анонимно, эффективно!

  2. В этом обзоре представлены различные методы избавления от зависимости, включая терапевтические и психологические подходы. Мы сравниваем их эффективность и предоставляем рекомендации для тех, кто хочет вернуться к трезвой жизни. Читатели смогут найти информацию о реабилитационных центрах и поддерживающих группах.
    Слушай внимательно — тут важно – [url=https://housemastery.ru/pages/vyvedenie-iz-zapoya-na-domu-v-spb/]вывод из запоя на дому центр[/url]

  3. vegashero-beers

    Diese Schutz eigener individuellen Daten genie?t fur das Team des vegashero maximale Prioritat [url=https://vegashero-bet.ch/datenschutzrichtlinie]vegashero[/url] . Wenn die Nutzer das Portal vegashero-bet.ch aufrufen, legen man gro?en Wert auf die Wahrung der Privatsphare. In der detaillierten Datenschutzrichtlinie klart das Unternehmen transparent, wieso sowie aus welchem Grund eigene Informationen erhoben, bearbeitet und abgelegt sind. Als Nutzer bei vegas hero durfen Sie euch vertrauen, dass die vertraulichen Daten nach dieser besten Sicherheitsstandards gehandhabt erfolgen, zwecks ein serioses Spielerlebnis sicherzustellen.

    Diese Datenschutzrichtlinie des vegashero klart darauf, die Arten der nutzerbezogenen Daten erfasst sind. Hinzukommend gehoren sowohl nach der Registrierung ubermittelte Informationen sowie digitale Daten, welche systemseitig durch dieser Nutzung jener Plattform anfallen, beispielsweise IP-Adressen oder Webbrowser. Jene Informationen unterstutzen hauptsachlich hierzu, euer Angebot verbessern, diesen Kundenservice steigern sowie regulatorische Vorgaben zu erfullen. Ein Schutz bezuglich externen Zugriffen dank innovative Verschlusselungstechnologien ist daruber hinaus ein zentrales Versprechen von vegas hero.

    Der wichtiger Aspekt dieser Richtlinien bleibt dieser Umgang mit Cookies. Solche winzigen Textdateien unterstutzen vegashero hierbei, die Webseite nutzerfreundlicher aufzubauen und diesen Login-Prozess optimieren. Gewiss haben Sie als Spieler jederzeit jene komplette Macht hieruber, wie eigene Daten genutzt sind. Diese Datenschutzseite unterrichtet euch umfassend betreffend die Rechte, beispielsweise das Recht auf Auskunft, Anderung sowie Vernichtung eigener archivierten Informationen. vegas hero gelobt euch darauf, die Daten niemals ohne Ihre ausdruckliche Zustimmung an unbefugte Personen zu senden, falls das nicht mittels behordliche Regelungen dringend erforderlich gilt.

    Indem Sie vegashero-bet.ch verwenden, akzeptieren man dieser beschriebenen Datenverarbeitung zu. Das Team raten jederlei Interessenten, selbst jene Datenschutzrichtlinie stetig durchzulesen, weil sie wahrend Erfordernis aktualisiert wird, um den neuesten gesetzlichen Richtlinien genugen. Bei Anliegen oder Zweifeln steht jener Support beim vegas hero stets verfugbar, fur Ihnen die fachkundige Antwort geben. Hierdurch durfen Sie gewiss sein, weil das Zockerlebnis des vegashero nie lediglich unterhaltsam, aber zudem in puncto Datenschutz stets unter diesem fundierten Fundament beruht. [url=http://1.s.2.free.fr/viewtopic.php?f=13&t=445495&p=526641#p526641]Alles Wichtige zur Datensicherheit bei vegashero-bet.ch[/url] [url=https://www.bruchlee.com/south-asian-geopolitics/%e0%a6%ad%e0%a7%82-%e0%a6%b0%e0%a6%be%e0%a6%9c%e0%a6%a8%e0%a7%80%e0%a6%a4%e0%a6%bf/#comment-76431]Alles Wichtige zur Datensicherheit bei vegashero-bet.ch[/url] 610d23f

  4. Should you be searching for an exhilarating virtual journey that defies norms of traditional gaming, then Drop the Boss is the game you must examine [url=https://drop-the-boss-12.rita3137red.workers.dev]drop the boss casino[/url] . Available at the specific website located at drop-the-boss-12.rita3137red.workers.dev, this alluring release has been making waves with players who enjoy quick-fire sequences. Regardless of whether you are a fan of traditional amusement or seeking out something fresh, the Drop the Boss game offers a original variation that sustains engagement high from the very first spin.

    For those who are fresh to this phenomenon, the Drop the Boss slot has swiftly emerged as a favourite in the United Kingdom scene. The rules are intuitive, making certain that alike newcomers and veteran participants can jump straight into the gameplay. When you engage with the Drop the Boss stake, you are accessing an engrossing environment designed to yield excitement and possible winnings. Many players searching for a high-quality Drop the Boss casino session appreciate the streamlined interface that this exact site supplies. By deciding to wager at this reliable online destination, you gain access to a smooth iteration of the Drop the Boss casino game that functions seamlessly on all your preferred devices.

    The renown of the Drop the Boss online trend is easy to understand as soon as you experience it for yourself. It succeeds in capturing the heart of what renders current Drop the Boss games so compelling. If you are expressly searching for the Drop the Boss UK group, this page acts as an excellent centre to get started. As you browse the various options of the site, you will soon see why so many people are discussing the casino Drop the Boss adventure. It is not just about the operations; it is about the rush of the pursuit that droptheboss offers to its increasing audience. Check out the portal today to discover why the masses is discussing this standout title and boost your gaming sessions with a novel, energetic task that succeeds whenever you participate.

  5. Обзор посвящён процессу восстановления после зависимостей. Мы расскажем о различных этапах реабилитации, поддерживающих ресурсах и важности мотивации в достижении устойчивого выздоровления.
    Продолжить изучение – [url=https://notarwise.ru/pages/lechenie-alkogolizma-narkologiya/]наркология лечение алкоголизма нижний новгород[/url]

  6. blazecrash-zidgida

    Crash Divertimento virtual é um dos apostas emocionantes com maior destaque nos tempo atual, notadamente entre jogadores brasileiros que almejam diversão e a possibilidade de lucros expressivos [url=https://blazecrash-game-2.ikmalzulkifli22.workers.dev]Como Ganhar No Jogo Blaze Crash[/url] .

    Com seu funcionamento fácil e interativo, o jogo encanta tanto iniciantes quanto veteranos, mas inúmeras incertezas ainda pairam sobre o funcionamento exato e se é rentável apostar recursos e capital nele. Aqui exploraremos aspectos sobre o Impacto Explosivo, táticas para vencer no jogo, dicas essenciais e se ele é confiável.

    O Crash Emocionante é uma variante de jogo de cassino fundamentado em rodas de apostas, onde o objetivo é apostar em um momento específico do que a máquina de impacto pare. A mecânica é simples: o jogador selecionar um valor para investir, estabelece o ponto de explosão (geralmente entre de mínimo a máximo) e, na chegada ao limite, o jogo retribui o investimento inicial. Em caso de falha, perder o objetivo definido, o jogador perde perdida. Mesmo que pareça simples, decifrar como gerenciar os investimentos e os picos de impacto é fundamental para potencializar as oportunidades de lucro.

    A mais comum dúvidas dos participantes é o que fazer para vencer no Crash Instantâneo. A solução não é automática, mas algumas estratégias podem ajudar. Antes de tudo, é importante dar início com apostas baixas para avaliar o jogo e desvendar seu mecanismo. Além disso estudar o histórico do Blaze Crash pode revelar tendências sobre histórico de vitórias, contudo o jogo ser um jogo de azar. Um conselho extra é evitar apostar em momentos muito altos sem uma estratégia clara, pois as chances de prejuízo é maior. Muitos jogadores também sugerem usar bônus e ofertas oferecidas pelos plataformas de jogos para fortalecer o capital inicial.

    Uma questão que acende dúvidas é se o Blaze Crash paga mesmo. A resposta é positiva, mas da mesma forma que em qualquer aposta, os lucros não são garantidos. Operadoras seguras, como a que abrigam o jogo, geralmente utilizam mecanismos de transação confiáveis e protegidos, mas vale a pena checar depoimentos e depoimentos de participantes anteriores antes de investir dinheiro real. Também é crucial é essencial operadoras confiáveis e certificados para prevenir fraudes.

    Para quem ainda tem incertezas sobre como jogar o Jogo de Impacto, ele é fácil de entender. Depois de entrar o jogo, é suficiente escolher o montante a investir, definir o momento de crash e pressionar o botão “explosão” para dar partida. O jogo assim gira a roda até atingir o ponto escolhido ou parar antes. Em caso de sucesso, o valor é multiplicado; se perder, o investimento é cancelada. Com experiência, é factível criar uma abordagem que integre probabilidade e bom senso.

    Em resumo, o Crash Instantâneo é uma experiência cativante e acessível, mas requer precaução e disciplina. Caso esteja interessado, comece com apostas pequenas, explore estratégias de sucesso e deve-se escolher operadoras seguras. Tenha em mente de que, assim como em qualquer jogo de azar, os resultados positivos não são promessas, mas com as estratégias certas, pode ser uma jornada divertida e, talvez, lucrativa.

  7. spinmamalogin-Clienug

    I katanoisi ton kanonon chrisis einai to proto kai kyriotero vima gia kathe paikti pou epilegei na engrafei sto Spinmama [url=https://spinmamalogin-bonus.gr/terms-and-conditions]spinmama[/url] . I episimi selida me tous kanonismous apotelei ton pyxida gia mia sigouri kai timia ebeiria paichnidiou, exasfalizodas oti oloi oi christes gnorizoun ta dikaiomata kai tis evthynes tous. Metavainodas ti schetiki selida stin istoselida spinmamalogin-bonus.gr, oi christes boroun na pliroforithoun pliros gia tis diadikasies pou diepoun ti leitourgia tis platformas.

    Sto Spin mama prosdidoume megali simasia sti diafaneia. Oi kanones kalyptoun simadika themata opos i tavtopoiisi logariasmou, oi oroi gia tin energopoiisi ton bonous kai oi apaitiseis tzirarismatos pou prepei na ikanopoioudai gia tin ektelesi pliromon. Einai exairetika simadiko na meletate diexodika avtes tis plirofories prin xekinisete to paichnidi sas, kathos i symmorfosi me tous kanones einai anagaia gia tin apofygi parexigiseon kai tin omali diekperaiosi ton pliromon sas.

    Epipleon, i platforma Spinmama desmevetai gia tin prostasia ton prosopikon dedomenon kai tin ypevthyni diexagogi tycheron paichnidion. Oi oroi perilamvanoun stoicheia schetika me ta oria katathesis, ton periorismo prosvasis kai tin prostasia ton dedomenon sas, engyomenoi ena perivallon pou thetei os proteraiotita tin diaskedasi alla kai tin asfaleia. Anexartita an eiste neo melos eite palios christis tou Spin mama, i sychni meleti ton oron einai krisimi, kathos borei na ginodai allages pou aforoun tis prosfores bonous i tis tropous synallagon.

    Se periptosi echete opoiadipote aporia schetika me tous orous pou anagrafodai sti selida, to tmima exypiretisis pelaton tis platformas einai sti diathesi sas gia na sas prosferei voitheia. I gnosi ton kanonon ochi mono prostatevei ton logariasmo sas, alla sas epitrepei na chareite pliros ola ta ofeli kai ta bonous pou diathetei to Spinmama. Diatheste liga lepta gia na diavasete to keimeno sti selida ton oron kai proypotheseon kai podarete me sigouria kai ypevthynotita, gnorizodas me leptomereia ti provlepetai gia tin protimomeni platforma paichnidion.

  8. В этой статье мы обсудим процесс восстановления после зависимостей, акцентируя внимание на различных методах и подходах к реабилитации. Читатели узнают, как создать план выздоровления и использовать полезные ресурсы для достижения устойчивых изменений.
    Подробнее тут – [url=https://loveshtory.com/zdorove/vyzvat-narkologa-na-dom-anonimno/]срочный вызов нарколога на дом[/url]

  9. Инфузионная терапия в «СамарМед Ассист» складывается из узких модулей. Каждый модуль — одна задача, один измеримый параметр и чёткий критерий остановки. Чтобы не терять причинно-следственную связь, новые элементы подключаются по одному; после достижения цели модуль отключается. Ниже — ориентировочная сетка, иллюстрирующая логику; конкретные составы и дозировки определяет врач по результатам осмотра.
    Исследовать вопрос подробнее – [url=https://narkolog-na-dom-v-samare16.ru/]помощь нарколога на дому самара[/url]

댓글 달기

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