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

  1. Карта делает решения прозрачными: если критерий не достигнут, меняется ровно один параметр с назначением новой точки контроля. Это сохраняет причинно-следственную связь и уменьшает общую фармаконагрузку без компромиссов по безопасности.
    Углубиться в тему – [url=https://narkolog-na-dom-petrozavodsk15.ru/]нарколог капельница на дом петрозаводск[/url]

  2. droptheboss-toult

    Provided you find yourself hunting for an exciting novel method to de-stress post a exhausting shift at the bureau, consider the latest craze capturing the virtual gaming sphere by surprise [url=https://droptheboss-13.vercel.app]drop the boss uk[/url] . The drop the boss game has rapidly grown into a preferred with fans who appreciate fast-paced intensity and compelling mechanics. Available today, this unique application provides a refreshing respite from standard structures, offering an responsive experience that is equally easy to grasp and remarkably fulfilling to enjoy.

    As you opt to drop the boss, you are accessing a realm where synchronisation and accuracy are rewarded. Distinct from a conventional drop the boss slot, this activity centres on instant entertainment that keeps gamers on the verge of their seats. While many individuals link the title with a common drop the boss casino environment, this exact tool prioritises fun and usability for a United Kingdom public. Regardless of if you are searching for a fresh drop the boss casino game to test your reflexes or simply desire to witness what all the hype is concerning, the portal is excellently optimised for mobile and desktop clients.

    The rising fame of droptheboss highlights a turn in the way players connect with online content. Many users searching for a casino drop the boss style test will discover that this version gives a light-hearted alternative that fits neatly into a full routine. Given that the drop the boss online fanbase is widening throughout the UK, there has at no point been a finer moment to jump in and initiate participating. If you are curious regarding the drop the boss stake potential or only desire to examine the various drop the boss games available in this segment, the design at this site is planned for fluid movement. Discover the buzz of this current digital pastime now and witness why gamers all over are deciding to drop the boss for their everyday portion of fun. This is beyond just a fleeting fad; it is a mesmerising virtual experience that carries quick, sharp fun right to your hands.

  3. spinmama-ancergy

    In case you need a top-tier online gambling site, the Spinmama official site has quickly become a premier option for players seeking excitement and reliability [url=https://spinmama-loginbonus.net]spin mama[/url] . As a modern platform, the Spinmama casino offers a diverse library of high-quality slots, immersive table games, and live dealer experiences that cater to both beginners and high rollers. The interface is easy to use, ensuring that you can find your favorite titles with simplicity.

    One of the main advantages of joining this website is the ease of the Spinmama login process. Once you have registered, logging in takes only a few seconds, allowing you to dive straight into the action. If you are interested in the player experience, a quick Spin mama review reveals that users consistently praise the site for its transparent operations, fast withdrawal processing times, and generous promotional offers. Whether you are playing on a computer or a mobile device, the casino spinmama environment is tailored to provide a smooth and secure experience.

    For those who use the name spin mama, you will find that the quality across the platform is outstanding. The spin mama casino features a robust selection of software providers, ensuring that the graphics and gameplay remain top-tier. When you look into a detailed spin mama casino login assessment, it becomes clear that safety is guaranteed, protecting your personal data and financial transactions at all times.

    Whether you refer to it as casino spin mama or simply Spinmama, the reputation of the site continues to grow within the online casino world. With its wide range of bonuses, regular tournaments, and dedicated customer support, it is easy to see why so many players choose this as their favorite place to play. If you are ready to level up your play, visiting the homepage is the perfect first step. Experience the thrill, claim your welcome bonuses, and discover why this operator is becoming a leader in the industry today.

  4. spinmamarecenze-unsell

    Připadně se připravujete uzivat moznosti online kasina, je zcela kličove seznamit se s normami, jimiz se tento portal spravuje [url=http://spinmamarecenze.cz/obchodni-podminky]spin mama[/url] . Stranka s obchodnimi podminkami na webu spinmamarecenze.cz představuje hlavni dokument, ktery stanovuje vazbu mezi provozovatelem a aktivnim uzivatelem. Při hledani, kdy hledate zřetelne a pochopitelne informace o tom, jak spinmama operuje, zasvěťte pozornost vlastně těmto pravnim ujednanim.

    Obchodni podminky na webu spinmama recenze nejsou pouze jedině balikem pravnickych terminologie, ale funkčnim manualem k jiste hře. Objevite zde detailni informace o registraci uzivatelskeho učtu, krocich převodů a vyplaceni finančnich prostředků, a take pravidla pro vyuziti bonusovych akci. Kazdy hrač, ktery se ukotvi pro spin mama, by si měl byt obeznamen svych moznosti a povinnosti, aby předesel připadnym otaznikům. Dokument přehledně určuje hranice sazek, naroky na prohrani bonusů i zasady střidmeho hrani, ktere jsou pro rovne prostředi maximalně zasadni.

    Důkladnym prohlednutim těchto pravidel obdrzite představu o tom, jakym jsou hlidana vase citliva data a jakym způsobem existuje verifikace totoznosti. Jasnost je jednim stězejnich bodů, na kterych spinmama buduje svou prestiz v ramci českeho prostoru. V situaci, ze narazite-li na jakykoli problem nebo pochybu, obchodni podminky jsou prvnim utočistěm, kde asi najdete odpověď.

    Radime opakovaně kontrolovat sekci obchodnich podminek na spinmamarecenze.cz, jelikoz se dovedou v průběhu upravovat v reakci na normativnich upravach či obnově hernich podminek. Vzdělany hrač je permanentně ve předstihu, neboť rozumi mechanismům, ktere ovlivňuji jeho hračsky prozitek. Kdyz tedy přemyslite o registraci u spin mama, rozmyslejte a obětujte přesně par minut sveho energie zhlednuti těchto ustaveni. Představuje to o zakladni předpoklad pro střidme a klidne sazeni v online prostředi, kde je ochrana a rovny jednani cilem pro vsechny hrače. Dostatečna obeznamenost vam zajisti stabilitu a spolehlivost při kazdem vasem dalsim postupu.

  5. blazecrash-Weplava

    Crash Rápido é entre os games online extremamente populares nos últimos períodos, notavelmente entre apostadores que procuram entretenimento e a chance de ganhos expressos [url=https://blazecrash-game-3.ikmalzulkifli22.workers.dev]Blaze Crash[/url] .

    Com seu sistema de diversão simples e dinâmico, vários se questionam a mecânica e, notavelmente, as chances de sucesso nele. Nesse materiais, vamos tudo entender sobre o Crash Explosivo, desde as regras básicas até dicas úteis para potencializar as suas possibilidades de vitória.

    O Crash Rápido é um jogo de cassino baseado em um de colapso de valores, em que os montantes sobe constantemente até chegar um máximo definido. A finalidade é colocar na hora ideal antes que que o valor caia, garantindo dessa forma um retorno financeiro. Vários apostadores questionam se o Crash Explosivo é confiável, e a resolução é positiva, contanto que você jogue de forma estratégica. Ambientes confiáveis, como a acessível em plataformas autorizadas, garantem operações transparentes, isso aumenta a credibilidade do game.

    Uma das principais dúvidas é as chances de sucesso na Explosão de Moedas. A solução está em analisar a evolução do jogo. Apesar de não haja um método perfeita, observar o histórico Blaze Crash pode contribuir a descobrir padrões, tais como momentos de alta variação ou instantâneos quando o game costuma de alcancar picos antes de colapsar. Além disso essencial gerenciar bem seu capital, minimizando investimentos descontroladas em uma única rodada.

    Para aqueles começa a aprender, as dicas de as técnicas para vencer Crash Explosivo são essenciais. Uma estratégia popular é colocar em quantias reduzidas em rodadas iniciiais para avaliar a dinâmica do game, enquanto aumenta o montante gradualmente à medida que obtém experiência. Ademais é importante selecionar a hora certo para clicar o comando de explosão, analisando quando o valor se encontra próximo do pico definido.

    Mais um detalhe crucial é a credibilidade do jogo. Vários questionam se o Crash Explosivo é transparente, e a resposta dependerá da rede selecionada. Portais autorizados, com licenças válidas e avaliações favoráveis de jogadores, asseguram que as transações são seguras e que as recompensas são realizados de forma justa. Sempre verifique se o site possui certificados de proteção e políticas claras de depósito e saque.

    Em síntese, o Blaze Crash pode ser uma experiência emocionante e lucrativa, desde que você participe com estratégia e consciência. Com os conselhos adequadas e um bom conhecimento de a mecânica, você pode maximizar as suas oportunidades de vitória no game. Tenha em mente sempre de participar de maneira responsável e nunca ultrapassar os seus limites econômicos.

  6. In cazul in care esti in cautarea unei experiente de joc memorabile, oscarspin reprezinta locul perfect pentru pasionatii din tara noastra [url=https://oscar-spin-1.onrender.com]oscarspin romania[/url] . Platforma oscarspin casino a reușit rapid sa stearneasca interesul jucatorilor prin varietatea jocurilor oferite si prin interfata intuitiva, fiind o optiune tot mai populara pentru cei care acceseaza oscarspin romania. Jucatorii care exploreaza portalul oscarspin com vor descoperi o varietate impresionanta de sloturi video, jocuri de masa si optiuni cu dealer live, totul intr-un mediu sigur si optimizat pentru orice dispozitiv.

    Unul dintre principalele avantaje ale acestui operator este atractivitatea bonusurilor. Jucatorii care aleg casino oscarspin sunt intampinati cu pachete atractive, iar multi dintre acestia sunt in mod special interesati de oscarspin casino rotiri gratuite. Aceste bonusuri sunt concepute pentru a maximiza oportunitatile de profit si pentru a prelungi timpul petrecut in cadrul sectiunii oscarspin online. Indiferent daca esti un utilizator nou sau un veteran al platformei, beneficierea de oscarspin rotiri gratuite este un mod excelent de a testa jocuri noi fara a risca propriile fonduri.

    In plus, cautarile frecvente pentru oscarspin rotiri gratuite fara depunere demonstreaza dorinta comunitatii de a accesa facilitati cat mai avantajoase, iar site-ul vine in intampinarea acestor asteptari cu campanii actualizate constant. Siguranta tranzactiilor si rapiditatea cu care sunt procesate cererile de retragere fac din aceasta platforma un nume de referinta. Tot ce trebuie sa faci este sa accesezi pagina oficiala si sa parcurgi procesul simplu de inregistrare pentru a incepe aventura ta in universul jocurilor de noroc. Cu o selectie vasta de producatori de top si un serviciu de suport clienti dedicat, experienta oferita de acest operator ramane una dintre cele mai competitive de pe piata. Asigura-te ca verifici periodic sectiunea de promotii de pe platforma pentru a nu rata cele mai noi oportunitati de a te juca folosind bonusurile disponibile, transformand astfel fiecare sesiune intr-o sansa reala de a castiga premii importante direct de pe dispozitivul tau preferat.

  7. vegashero-weeva

    Wer, der auf der Jagd nach einem exzellenten Spielvergnugen in helvetischen Gefilden ist, sto?t zwangslaufig auf die Marke Vegashero [url=https://vegashero-bet.ch/uber-uns]vegashero[/url] . Diese Webseite gilt als bekannte Anlaufstelle im Bereich der Online-Games positioniert sowie uberzeugt Kunden dank eines breiten Angebots an Spielen sowie einem sehr leicht bedienbaren Design. Via den Button zur Infoseite erfahren interessierte Besucher komplette Hintergrunde, was man uber die Philosophie sowie die Grundlagen des Anbieters kennen sollten. Vegas Hero richtet dementsprechend einen besonderen Fokus auf Klarheit sowie Integritat, damit samtlichen Usern eine geschutzte Umgebung zu bieten, in dem das reine Vergnugen immer Prioritat genie?t.

    Der Kernbereich dieser Seite bleibt das Bemuhen fur Qualitat sowie Fortschritt. Innerhalb eines Marktes, der permanent rotiert, setzt dieser Anbieter auf aktuelle Innovationen sowie eine Selektion an Games, die alles abdeckt. Sei es bei bewahrten Automaten, spannende Live-Games bzw. realistische Casinoflair, beim Betreiber erhalt jeder Nutzer das ideale Portfolio. Das Konzept der Firma stutzt sich auf die Ansicht, dass Spielspa? oberste Maxime ist, gepaart mit einem verantwortungsbewussten Umgang mit den eigenen Dienstleistungen. Der Schutzfaktor liegt dabei ganz oben, was mittels strikter Schutzma?nahmen und faire Spielbedingungen deutlich gemacht wird.

    Wer neugierig auf Details ist, wird bald bemerken, dass Vegashero nicht nur ein einfacher Casino-Anbieter ist, sondern eine Unternehmung, die viel Gewicht auf die Verbundenheit zu den Spielern setzt. Die Webprasenz bietet umfassende Informationen bezuglich der Firmenmaximen und das Leitbild, die als Basis dient. Spieler aus der Schweiz nutzen ein exakt auf sie zugeschnittenes Erlebnis, die auf ihre Bedurfnisse zugeschnitten ist. Das stetige Fortschreiten und der Fokus auf exzellenten Kundenservice machen Vegas Hero zu einem Top-Ziel im Internet. Wer daher auf Seriositat achtet, eine enorme Vielfalt und klare Firmenfuhrung bevorzugt, ist auf dieser Webseite genau an der richtigen Adresse. Entdecken Sie selbst, weshalb eine Vielzahl an Spielern auf die Kompetenz und die Leidenschaft des Portals setzen und starten Sie in ein Universum mit vielen packenden Optionen und gerechter Aussichten. [url=http://192.249.121.131/%7Erosedoll/forum1/index.php?topic=2095.new#new]Wer der beim Finden von einem exzellenten Spielvergnugen innerhalb der Eidgenossenschaft agiert, trifft zwangslaufig auf die Bezeichnung Vegashero – ein Portal, die durch Offenheit und eine riesige Spielauswahl in der Welt der virtuellen Unterhaltung fasziniert.[/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-76461]Jeder der beim Finden von einem erstklassigen Online-Casino-Erlebnis in der Schweiz weilt, trifft zwangslaufig auf den Namen Vegashero – ein Anbieter, die durch Offenheit und ein erstklassiges Spielportfolio im Kosmos des digitalen Glucksspiels uberzeugt.[/url] 77327ad

  8. Эта информационная публикация освещает широкий спектр тем из мира медицины. Мы предлагаем читателям ясные и понятные объяснения современных заболеваний, методов профилактики и лечения. Информация будет полезна как пациентам, так и медицинским работникам, желающим поддержать уровень своих знаний.
    Следуйте по ссылке – [url=https://rentalz.ru/pages/vyvod-iz-zapoya-srochno-spb/]выведение из запоя на дому цена[/url]

  9. В данной публикации мы поговорим о процессе восстановления от зависимости, о том, как вернуть себе нормальную жизнь. Мы обсудим преодоление трудностей, значимость поддержки и наличие программ реабилитации. Читатели смогут узнать о ключевых шагах к успешному восстановлению.
    Переходите по ссылке ниже – [url=https://abitu.ru/zdorove/1398-narkologicheskaya-klinika-spb-anonimno.html]платная наркологическая помощь[/url]

  10. Вот смотрю я на всё это и думаю: алкоголизм — штука страшная, особенно когда запой затягивается на неделю. Знакомый мой недавно мучился, никак не мог вылезти. Говорит, что вывод из запоя на дому — единственный выход, когда сам идти никуда не хочешь. Ну а что, вызвал нарколога на дом, тот поставил капельницу, полегчало. Кстати, вывод из запоя на дому в Самаре сейчас делают многие клиники. И круглосуточно, что важно. Можете ознакомиться по ссылке: запой вызов на дом [url=https://alkogolizm.vyvod-iz-zapoya-na-domu-samara-omk.ru]https://alkogolizm.vyvod-iz-zapoya-na-domu-samara-omk.ru[/url] Там и про выведение из запоя на дому, и про то, как прерывание запоя проходит. Если нужно вывести из запоя срочно — вариант рабочий. Нарколог на дом вывод из запоя — это не страшно, главное не тянуть. Советую глянуть, вся информация доступна здесь: В общем, если ищете вывод из запоя телефон или выход из запоя на дому — почитайте. Может пригодиться.

댓글 달기

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