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

  1. Provided you are looking for an stimulating brand-new journey in the realm of online diversion, the drop the boss game is currently capturing the notice of users spanning the UK. Hosted at [url=https://drop-the-boss-13.pages.dev]drop the boss stake[/url] , this unique internet product gives a refreshing change on standard gambling systems. Whether you are a leisurely user or a veteran fan of the drop the boss slot, this platform provides a perfect interface built for smooth operation on both desktop and handheld units.

    The growth of drop the boss keeps to climb as more users uncover the absorbing essence of this casino drop the boss title. Differing from basic releases, the drop the boss casino game features active factors that sustain the intensity strong with each individual spin. Numerous players are seeking the finest approach to control their drop the boss stake to maximise their fun, and this website offers a safe setting to perform exactly that. By selecting to play drop the boss online, you are linking with a thriving group of enthusiasts who like superior imagery and smart interface.

    For people purposely searching for a drop the boss uk session, this portal confirms that the entire capability is adjusted to fulfil contemporary expectations. The droptheboss look is simple, letting you to dive right into the gameplay lacking needless frustrations. It is obvious to grasp why so many remain checking out the complete variety of drop the boss games accessible now, as the developers possess prioritised strongly on player happiness and fair play.

    If you enjoy a casino game that differs itself from the crowd, it is high time to visit the site and observe why the drop the boss phenomenon is making impacts. From the initial load to the final outcome, the entire experience is built to yield excitement and entertainment. Check the systems, tweak your plan, and uncover why this certain game is turning into a solid pick for players looking for a top-tier betting experience in the United Kingdom.

  2. Daca vrei sa gasesti o aventura de neuitat, Oscarspin reprezinta locul ideal pentru amatorii de casino din tara noastra [url=https://oscar-spin-2.cliffordmcgregork173.workers.dev]oscarspin com[/url] . Platforma oscarspin casino se remarca printr-o platforma usor de utilizat si o colectie impresionanta de sloturi, menita sa satisfaca atat jucatorii incepatori, cat si pe cei experimentati. Pentru cei care acceseaza oscarspin romania, procesul de inregistrare este rapid si securizat, oferind acces imediat la o lume plina de adrenalina si castiguri potentiale.

    Unul dintre principalele motive pentru care jucatorii aleg oscarspin online este diversitatea bonusurilor oferite. Multi utilizatori cauta in mod activ oscarspin casino rotiri gratuite pentru a-si prelungi sesiunile de joc fara a investi sume mari. Aceste promotii, incluzand varianta mult dorita de oscarspin rotiri gratuite fara depunere, sunt concepute special pentru a atrage noi membri si pentru a rasplati fidelitatea celor care revin constant pe site. Aceste rotiri gratuite constituie oportunitatea ideala de a testa cele mai noi jocuri lansate de furnizori de top.

    Accesand oscarspin com, vei descoperi un mediu de joc echitabil, unde protectia informatiilor este prioritara. Echipa de la casino oscarspin a pus la punct tehnologii moderne de securitate, astfel incat fiecare depunere sau retragere sa fie procesata in conditii optime. Mai mult decat atat, platforma este optimizata pentru dispozitivele mobile, permitandu-ti sa te bucuri de jocurile preferate de oriunde.

    Indiferent daca esti fan al jocurilor de tip slot retro sau preferi titlurile moderne cu efecte vizuale avansate, Oscarspin are ceva special pentru fiecare. Nu rata ocazia de a beneficia de ofertele de inscriere atractive si de numeroasele campanii promotionale care sunt actualizate constant. In concluzie, Oscarspin este optiunea ideala pentru cineva care isi doreste o experienta de casino completa, sigura si distractiva in Romania. Inregistreaza-te astazi si descopera de ce din ce in ce mai multi jucatori aleg aceasta platforma pentru divertismentul lor zilnic, profitand de fiecare oferta disponibila.

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

  4. vegasherobet-Accoth

    Wer, welcher, auf dem Weg zu einem hochwertigen sowie sicheren Online-Spielerlebnis innerhalb der Eidgenossenschaft ist, sto?t unweigerlich auf die Offerte von vegashero [url=https://vegasherobet.ch/uber-uns]vegashero[/url] . Die Plattform hat sich als festen Adresse im Markt etabliert wobei es setzt hierbei strikt hinsichtlich Offenheit, Integritat sowie ein exzellentes Unterhaltungsangebot. Das Ansehen auf dem Link vegasherobet.ch/uber-uns enthullt dabei schnell schnell, wofur die Plattform einsteht sowie warum sie bei Usern aus der Schweiz derart geschatzt ist.

    Bei vegas hero rangiert der Nutzer im Fokus. Das Unternehmen hinter diesem Namen setzt gro?en Wert darauf, ein Umfeld zu schaffen, das sowohl abgesichert als auch kurzweilig ist. Das Engagement fur verantwortungsvolles Spielen plus die Wahrung strikt definierter Lizenzvorgaben darstellen dazu die Basis der Firmenphilosophie. Innerhalb der genannten Infoseite erfahren User mehr uber die Werte, welche das Team antreiben. Dabei zahlt nicht nur betreffend eine gro?e Auswahl an Spielen, vielmehr bezuglich die Bereitstellung einer Webseite, die durch technische Perfektion und obendrein einen hervorragenden Kundendienst besticht.

    Die Philosophie hinter vegashero beruht auf dem Ziel, ein ehrliches und zudem faires Spielerlebnis bereitzustellen. Durch die klare(n) Kommunikation im Netz werden Kunden hinsichtlich alle wichtigen Prozesse aufgeklart, ein Aspekt, der das Zutrauen in die Marke nachhaltig festigt. Wer sich bei vegas hero anmeldet, wahlt einen Anbieter, der die rechtlichen Normen der Schweiz und auch Vorgaben respektiert sowie gleichzeitig modernste Technologien verwendet, damit die Daten der Spieler maximal abzusichern.

    Ein zusatzlicher Punkt, der unter vegasherobet.ch/uber-uns im Detail besprochen wird, darstellt die Leidenschaft hinsichtlich technischen Fortschritt. Die Verantwortlichen arbeiten unermudlich dabei, das Programm zu verbessern und den Anspruchen eines anspruchsvollen Marktes gerecht zu werden. Ob es um die Game-Vielfalt geht oder aber um die einfache Bedienung der Plattform – die Ambition bleibt durchgehend eine erstklassige Spielerfahrung. Jeder, der mehr zu den Beweggrunden dieses vertrauenswurdigen Casinos wissen mochte, sollte einmal einen Moment Zeit investieren, die Erlauterungen auf der Webseite zu lesen. Kurzum darf man resumieren, dass vegas hero mittels Fachkompetenz und auch eine klare Ausrichtung zu hohem Niveau uberzeugt und daher der Favorit fur Zocker ist, die personlich besonderes Augenmerk auf Sicherheitsstandards sowie hochwertige Unterhaltung bauen. [url=https://beminestudio.ru/product/%d0%bf%d1%80%d1%8f%d0%bc%d0%be%d0%b5-%d0%bf%d0%bb%d0%b0%d1%82%d1%8c%d0%b5-%d0%b8%d0%b7-%d0%b0%d1%82%d0%bb%d0%b0%d1%81%d0%b0-%d1%81-%d1%80%d0%b0%d0%b7%d1%80%d0%b5%d0%b7%d0%be%d0%bc-%d0%bd%d0%b0-%d0%bd/#comment-3318]Wer, der, auf dem Weg zu dem exzellenten und vertrauenswurdigen Online-Spielerlebnis in der Schweiz unterwegs ist, sto?t unweigerlich auf das Angebot des Anbieters vegashero – Entdecken Sie hier die Vision von vegasherobet.ch/uber-uns.[/url] [url=http://1.s.2.free.fr/viewtopic.php?f=13&t=445495&p=526698#p526698]Wer, welcher, auf der Suche nach einem erstklassigen plus vertrauenswurdigen Spielvergnugen innerhalb der Eidgenossenschaft weilt, sto?t zwangslaufig auf das Portfolio von vegashero – Entdecken Sie hier die Vision von vegasherobet.ch/uber-uns.[/url] fa77327

  5. Explosão Impacto se trata de um dos games de apostas virtual mais desejados nos atualizados tempo, notavelmente entre os brasileiros que buscam desafio e a chance de arrecadar riqueza de maneira rápida [url=https://blaze-crash-game-2.zjxrpom34a98.workers.dev]Como Ganhar Na Blaze Crash[/url] .

    Com seu formato básico e mecânica baseada em investimentos em um painel de barras que cresce e desmorona, o jogo atrai tanto iniciantes quanto jogadores experientes. Mas como age esse jogo e como para potencializar suas possibilidades de ganho? Vamos explorar tudo sobre o Blaze Crash, desde suas normas até dicas úteis para quem pretende aprender a jogar de modo tática.

    O Crash Instantâneo se classifica como um jogo de apostas que reproduz uma competição de mísseis, onde os apostadores investem em qual coluna vai desmoronar rapidamente. À medida as barras crescem, o entretenimento acelera a tensão, criando uma experiência de ansiedade e emoção. Quando uma coluna atinge o extremo, ela desmorona, e os participantes que colocaram nela recebem seu recompensa. A dinâmica se apresenta simples, mas a emoção se concentra na incerteza do momento da explosão.

    Uma das mais dúvidas de quem deseja começar é: Crash Expresso cumpre mesmo? A resolução se revela confirmativa, desde que o jogo se mostre confiável e autorizado. Sites como a que mencionamos proporcionam movimentações protegidas, com transferências e saques realizados de modo aberta. No contudo, se torna importante constantemente analisar a reputação do site quando aplicar recursos real. Análises de pagamentos e avaliações de outros apostadores podem ajudar a reforçar a confiança do cassino.

    Para quem busca de que maneira para ganhar no Fogo Explosivo, algumas dicas podem potencializar suas oportunidades. Inicialmente, aposte em quantidades menores em fases primárias para testar a dinâmica e analisar o desenvolvimento do game. À medida as investimentos viram consideravelmente arriscadas, você pode aumentar os quantidades, mas sempre com moderação. Outro ponto, se mostra essencial controlar seu orçamento de entretenimento, diminuindo investimentos impulsivas que possam resultar em perdas consideráveis.

    Outro ponto relevante é compreender como para jogar no Crash Expresso. O jogo permite investimentos em múltiplas barras ao exato momento, fora de ferramentas como Modo Rápido e Resgate, que permitem definir níveis de ganho ou perda automaticamente. Utilizar essas opções pode contribuir a garantir o controle e prevenir decisões subjetivas. Também se torna pertinente aproveitar as benefícios oferecidas pelo cassino, como recompensas de boas-vindas ou devolução, que podem aumentar seus ganhos.

    Muitos apostadores indagam se o Crash Instantâneo representa confiável. A resolução se baseia da site escolhida. Plataformas confiáveis, com licenças regulamentadas e ferramentas de confiabilidade robustos, confirmam que os entretenimentos fiquem justos e os transações fiquem processados precisamente. Sistematicamente opte por entretenimentos que sejam abertos quanto às suas funcionamentos e que possuam avaliações elogiosas de outros usuários.

    Em síntese, o Blaze Crash é um game emocionante que pode ser consideravelmente divertido e lucrativo, desde que jogado com estratégia e responsabilidade. Se você se encontra buscando táticas de de que modo participar no Crash Instantâneo ou pretende conhecer detalhes sobre como para ganhar no jogo Fogo Explosivo, considerar de praticar em modo treinamento quando investir recursos efetivo. Com paciência e equilíbrio, é viável desfrutar de uma vivência prazerosa no jogo de azar Fogo Explosivo.

  6. Клиника принимает 24/7 без очередей: ночной блок специально настроен под «трудные часы», когда усиливаются панические мысли и реактивность пульса. Для тех, кому легче дома, выездная служба приводит помощь в знакомое пространство; если нужны короткие контрольные включения, применяем видеосвязь вечером (15–20 минут), чтобы корректно настроить ритуалы засыпания, дыхательные циклы и «световые правила». Маршрут фиксируется в единой карте наблюдения — этот документ доступен команде по ролям и защищает от «повторов заново», когда формат меняется (дом – амбулатория – стационар).
    Детальнее – [url=https://narkologicheskaya-klinika-v-stavropole15.ru/]наркологическая клиника лечение алкоголизма в ставрополе[/url]

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

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

  9. После выполнения первичных мероприятий врач оценивает динамику и дает рекомендации по дальнейшему лечению. Важно понимать, что капельница, медикаментозное снятие интоксикации или вывод из запоя могут помочь стабилизировать самочувствие, но для работы с самой зависимостью требуется более полный курс. Поэтому наркологическая помощь часто продолжается в амбулаторном формате, в стационаре или в реабилитационной программе.
    Узнать больше – [url=https://narkologicheskaya-klinika-moskva15-4.ru/]наркологическая больница москвы[/url]

  10. Перед началом лечения человек получает информацию о выбранном методе, сроке действия, возможных побочных реакциях, правилах поведения и ограничениях. Врач отвечает на вопрос, насколько вариант сочетается с сопутствующими заболеваниями и лекарственной терапией. Информированное согласие обязательно перед проведением вмешательства. Если требуется срочный вывод из запоя, сначала выполняется снятие абстинентного синдрома, а кодирование переносится на безопасный период. Просто провести укол без подготовки при наличии алкоголя в крови было бы неоправданно опасным.
    Узнать больше – [url=https://kodirovanie-ot-alkogolizma-moskva15-1.ru/]кодирование от алкоголизма на дому в Москве[/url]

댓글 달기

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