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

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

  2. betandplay-engetty

    A premier web-based betting platform gained as one undeniably reliable choices for enthusiasts throughout the great southern land [url=https://betandplay-login-1.kakanurhidayat91.workers.dev]Bet And Play Casino Australia[/url] .

    Offering a extensive array of engaging playing avenues, this casino appeals to those searching for excitement and entertainment. Whether you’re seeking spin sessions, traditional rounds, or interactive hosted encounters, Bet And Play provides a user-friendly system built to maximize your playing experience.

    As a Australian centered gaming platform, Bet And Play guarantees conformity to local rules, earning gamblers assurance in its credibility and justice.

    One highlighted feature of Bet And Play is its unmatched selection of rounds. From classic spin games like Gonzo’s Quest to premium traditional plays such as poker, the platform serves any occasional and hardcore gamblers. The feature of virtual hosted plays introduces an unique element of realism, allowing gamblers to savor the charm of a land-based gaming establishment from the comfort of their residences. What’s more, Bet And Play frequently refreshes its play collection, guaranteeing that gamblers always have revitalized options to discover.

    For newcomers new with online casinos, Bet And Play creates a welcoming atmosphere filled with plentiful rewards and promotions. New gamblers can commonly secure opening incentives, such as deposit rewards and no-cost sessions, which substantially boost their bankroll. repeat gamblers also profit from persistent promotions, including rebate perks and elite perks, making Bet And Play the top destination for sustained engagement.

    Before judging every online gaming hub, reading Bet And Play reviews is essential to assess its prestige and reliability. Many players celebrate the platform for its effortless gaming, responsive client help, and protected transaction avenues. However, as with some casino platform, it’s essential to gamble sensibly and establish limits to validate a secure and thrilling adventure. This casino’s promise to mindful playing is apparent through options like deposit limits and temporary choices, solidifying its commitment to player safety.

    Whether you’re searching for a trusted Aussie betting site or just searching for a trusted virtual betting platform, the platform shines out as one dependable and engaging choice. With its varied play choice, competitive bonuses, and gambler-focused policies, it’s no unexpected that the platform keeps to earn loyalty among homegrown gamblers. Always validate you’re gambling at some certified and conforming hub, and relish the fun of digital gaming wisely.

  3. droptheboss-scarm

    Providing you are hunting for an exhilarating plus rapid interactive journey, consequently you possess likely heard of the drop the boss game [url=https://droptheboss-2.onrender.com]drop the boss game[/url] . This production has been creating buzz across the online community, offering players one novel technique to examine their focus and rhythm. Positioned at the web address droptheboss-2.onrender.com, this interface delivers a smooth setup for people who enjoy the rush of one high-stakes test. As the fame of the drop the boss casino game continues to climb, plenty of players keep uncovering the basic however engaging rules that define this digital hit.

    For players situated in the UK, finding a reliable and absorbing drop the boss uk experience remains crucial. The game stands engineered to prove intuitive, needing fast reflexes and a cool head. Once you participate with the drop the boss slot-style mechanics, the main goal remains to strike your mark at the perfect moment to increase your winnings. Whether you remain one relaxed player or someone who views the drop the boss betting game earnestly, the site provides a fair plus thrilling space to make your stakes.

    Grasping the principles of the drop the boss stake remains vital to conquering the release. By strategically controlling your drop the boss game stake, you might prolong your round plus enhance your possibilities of winning. Plenty of players search for the top strategies for the drop the boss online experience, regularly discovering that restraint remains just as significant like velocity. Since the title proves easily accessible, users frequently turn to it as one top option when they wish to experience a rapid, energetic gaming session.

    Assuming you are inquisitive about the reason all is talking about droptheboss, it stands time to access the site plus see the action for yourself. The drop the boss casino feel is completely contained in this online version, supplying a fresh twist on classic arcade-style play. Remember to bet carefully, define your limits, and relish the rush that arrives with all round of this captivating game. Jump into the realm of this distinct game now and test your skills.

  4. Публикация знакомит читателей с различными подходами к реабилитации. От традиционных методов до современных программ — вы узнаете, как выбрать оптимальный путь к выздоровлению и преодолеть препятствия на этом пути.
    Хочу знать больше – [url=https://flatrenthq.ru/pages/lechenie-alkogolizma-v-narkologicheskom-centre/]лечение алкоголизма н новгороде[/url]

  5. Этот документ охватывает важные аспекты медицинской науки, сосредотачиваясь на ключевых вопросах, касающихся здоровья населения. Мы рассматриваем свежие исследования, клинические рекомендации и лучшие практики, которые помогут улучшить качество лечения и профилактики заболеваний. Читатели получат возможность углубиться в различные медицинские дисциплины.
    Изучить эмпирические данные – [url=https://driveautorent.ru/pages/narkolog-na-dom-sankt-peterburg/]нарколог на дом срочно[/url]

  6. vegashero-Attaifs

    Sofern ihr auf dem Weg zu einem wirklich tollen Gaming-Erlebnis gehort, bleibt die Webseite bei vegashero-au.at die ideale Anlaufstelle fur Nutzer [url=https://vegashero-au.at/bonus]vegashero casino bonus code[/url] . Besonders attraktiv fur neue Spieler erscheint das uppige vegashero bonus, derjenige welcher den Einstieg in das Universum der Web-Games deutlich vereinfacht. Um euch diesen exklusiven vegas hero bonus zu sichern, ware es ratsam sein, nach dem richtigen vegashero bonus code zu stobern, der direkt direkt bei der Registrierung eingetragen werden darf. Diverse User suchen gezielt wegen einem vegashero casino bonus, um ihr Anfangsbudget sofort zu erhohen und ihre Erfolgsaussichten zu maximieren.

    Wenn ihr umgehend komplett unverbindlich starten mochten, konntet man haufig nach einem vegashero no deposit bonus code fahnden, denn der besagte vor allem bei Einsteigern gro?en Zuspruch findet. Zudem die Eingabe von einem vegashero casino bonus code darf Tore zu speziellen Bonus-Games sowie Bonus-Chips ebnen. Fur Anwender, die es mogen, in deutscher Sprache zu suchen, gelten Ausdrucke etwa vegas hero bonus ohne einzahlung bzw. vegas hero no deposit bonus code nutzliche Suchbegriffe beim Finden. Wenn Sie euch auf der Seite anmelden, ist es klug, genau auf den jeweiligen vegas hero casino bonus code zu achten, sodass nicht einem keine Offerte entgeht.

    Fur Profi-Zocker bleiben die neuen vegashero bonus codes oft die Losung zu dauerhaften Pramien. Selbst falls man hinter einem bonus code vegas hero bzw. einem weiteren code bonus vegas hero suchen, kann man finden im offiziellen Bereich alle wichtigen Angaben, um das User-Guthaben zu erhohen. Ein frischer vegas hero bonus code kann den entscheidenden Unterschied machen, sodass die gesamte Leistung der Webseite zu nutzen. Greift zu au?erdem einen neuen vegas hero promo code bzw. den geeigneten vegas hero casino promo code, damit sicherzustellen, dass ihr von allen existierenden Aktionen profitieren. Dank dem perfekten vegashero promo code liegt eurem Erfolg nichts mehr im Wege. Besucht das Portal regelma?ig, damit keine neuen Angebote zu verpassen und immerzu den frischesten vegas hero bonus fur euer Profil freizuschalten. Viel Gluck beim Game-Play sowie Siegen in diesem exzellenten Top-Casino. [url=https://aljasad.com/showthread.php?tid=183&pid=2615#pid2615]Alles zum neuesten vegas hero bonus code fur Neukunden auf vegashero-au.at[/url] [url=http://czrlp.8u.cz/forum/viewtopic.php?f=9&t=1353&p=23800#p23800]Alles zum besten vegashero bonus fur echte Gewinner auf vegashero-au.at[/url] 27adfec

  7. spinmacho-Knobia

    Decyzja właściwego miejsca do rozrywki w cyfrowej przestrzeni bywa wyzwaniem, więc warto czerpać ze wiarygodnych punktow wiedzy [url=https://spinmacho-recenzja.com.pl]casino spinmacho[/url] . Serwis spinmacho-recenzja.com.pl to pełne źrodło informacji dla wszystkich hazardzisty, jaki szuka obiektywnych danych na zagadnienie platformy hazardowej spinmacho. Gdy myślisz, czy aby opłaca się utworzyć rachunek, ta witryna zapewni niezbędnych porad.

    Spin macho casino to dostawca, ktory osiąga rosnącą renomę dla rodzimych użytkownikow. Za sprawą wnikliwej analizie oferowanej na tej domenie, poznasz detali o ofercie rozrywek, sposobach płatności jak i proponowanych promocjach na start. Każda spinmacho casino review udostępniana w tym serwisie jest opracowywana z dbałością o jasności, co pozwala użytkownikom na podejmowanie świadomych krokow. Znajdziesz tam wyjaśnienia na wątpliwości związane z bezpieczeństwa, certyfikatow jak rownież jakości wsparcia użytkownika.

    Z jakiego powodu dobrze odwiedzić spinmacho-recenzja.com.pl? W szczegolności ze powodu profesjonalne podejście do zagadnienia. Casino spinmacho oferuje obszerny wachlarz zabawy, od znanych maszyn po rozrywki na żywo, natomiast redaktorzy portalu szczegołowo badają poszczegolny z tych elementow. Czytając rzetelny opis spinmacho online casino, natychmiast pojmiesz, jakie dokładnie stanowią silne zalety tej witryny jak rownież na jaki element skupić wzrok wcześniej przelaniem gotowki.

    Domena online casino spinmacho skupia się na prawdzie a także konkretnych poradach, ktore uproszczają przeglądanie po świecie gier hazardowych. Niezależnie od faktu, czy aby bywasz nowym klientem, czy też doświadczonym bywalcem szukającym nowych wrażeń, lektura stworzonych tam treści da Ci głębiej zrozumieć spin macho oraz uchronić się przed standardowych wpadek. To najlepsze punkt, żeby zweryfikować najnowsze oferty oraz zasady obracania premią. Przed momentem gdy zdecydujesz się się na rejestrację w serwisie, opłaca się dać parę chwil na analizę specjalistow, aby brać z rozrywki jedynie pozytywne wrażenia. Odwiedź stronę oraz przekonaj się, dlaczego opinie tego kasyna cieszą się ogromnym zaufaniem klientow w Polsce, zważając o swoje ochronę i dobrą przygodę w cyfrowym wymiarze hazardu.

  8. betandplay-buigue

    BetAndPlayCasinoLogin.dev is a online portal that is designed to serve Australian internet-based gaming enthusiasts, providing a web gateway to BetAndPlayGamingAU [url=https://betandplay-login-2.pages.dev]Bet And Play Casino[/url] . As one of the most popular internet gambling hubs in the market, BetAndPlayGaming has earned strong popularity due to its easy-to-navigate system, wide library, and attractive promotions. Whether you’re exploring for BetAndPlayAUReview or seeking explore BetAndPlayGamingAU, knowing the platform’s features can enable you to make an well-researched choice.

    BetAndPlayGaming is known for its commitment to delivering a seamless gaming adventure, with a varied range of spin games, blackjack, and interactive options. The casino’s standing is even more reinforced by highly-rated BetAndPlayAUReviews, which highlight its fair gameplay, secure transactions, and outstanding help desk. For those emerging to virtual wagering, a BetAndPlayGamingReview can deliver valuable knowledge into the platform’s advantages, such as its mobile compatibility and regular bonuses.

    When assessing BetAndPlayAUOnline, it’s essential to verify the site is licensed, notably in the Southern Hemisphere, where legalized gaming are tightly implemented. BetAndPlayDownUnder runs under the required legal frameworks, ensuring players can appreciate their preferred games with confidence. The platform’s access procedure, reachable via BetAndPlayCasinoLogin.dev, is built to be fast and no-nonsense, permitting bettors to start gaming right away.

    For those looking a consistent BetAndPlayOnlineReview, it’s worth to acknowledge that the site offers a range of deposit options, including e-wallets and direct deposits, making deposits and payouts easy. On top of that, the casino’s deals, such as new player offers and vip programs, introduce extra benefit for gamblers. Whether you’re a experienced wagerer or a newcomer to BetAndPlayCasino, the platform’s standing as a reliable BetAndPlayOnlineAU alternative continues to grow.

    In summary, BetAndPlayAULogin.dev serves as a simple starting hub for joining BetAndPlayGamingAU, a platform honored in various BetAndPlayCasinoReviews for its top-tier entertainment, security, and player-friendly features. If you’re exploring to dive into the arena of digital betting safely, BetAndPlayGaming stays a top option for plenty Oz gamblers. Always confirm you wager safely and keeping your means.

  9. Wer, der auf der Suche nach einem exzellenten mobilen Spielerlebnis ist, kommt um die spinmama app nicht vorbei [url=https://spinmama-loginbonus.de/app]spinmama apk[/url] . Das aktuelle Online Casino hat sich in kurzester Zeit einen Namen gemacht, da es seinen Nutzern ermoglicht, die das komplette Angebot der Slots und Tischspiele bequem auf dem Smartphone oder Tablet zu genie?en. Mit der spinmama casino app haben Sie jederzeit und uberall Zugriff auf Ihr Konto, Ihre Lieblingsspiele und spezielle Bonusangebote.

    Wenn Sie sich fur den spinmama app download entscheiden, profitieren Sie von einer perfekt angepassten Benutzeroberflache, die speziell fur mobile Endgerate entwickelt wurde. Die Navigation ist benutzerfreundlich gestaltet, sodass Sie ohne Verzogerungen zwischen den verschiedenen Kategorien wechseln konnen. Der Prozess fur den spinmama download ist denkbar einfach gehalten. Nutzer von Android-Geraten konnen die spinmama apk direkt uber die offizielle Seite beziehen, um die Anwendung problemlos zu installieren. Auch fur andere Betriebssysteme bietet die spinmama application eine einwandfreie Leistung, die den hohen Standards der Branche entspricht.

    Sicherheit spielt bei der casino spinmama app eine zentrale Rolle. Alle Transaktionen und personlichen Daten werden durch modernste Verschlusselungstechnologien geschutzt, sodass Sie sich komplett auf das Spielvergnugen konzentrieren konnen. Ein weiterer Vorteil ist der spinmama casino app download, der Ihnen den direkten Zugriff auf laufende Aktionen und Bonusprogramme ermoglicht. Oft warten in der spin mama app sogar mobile-exklusive Angebote, die nur uber die Anwendung verfugbar sind.

    Zusammenfassend lasst sich sagen, dass die spin mama casino app die perfekte Losung fur alle ist, die Flexibilitat schatzen. Dank der schnellen Ladezeiten und der stabilen Software bietet die spinmama app ein flussiges Erlebnis ohne Kompromisse. Laden Sie noch heute die Software herunter und erleben Sie, warum so viele Spieler auf die Qualitat der Anwendung vertrauen. Ob zu Hause auf der Couch oder unterwegs in der Bahn, das Casinoerlebnis ist nur einen Klick entfernt. Starten Sie jetzt durch und entdecken Sie die Vielfalt der Spiele in der erstklassigen App von Spinmama.

  10. fortunetiger-hoino

    O cenario dos jogos de cassino online tem se expandido velozmente no Brasil, e uma das maiores febres do momento e o fortune tiger [url=https://fortunetiger-6.raenavarroq996.workers.dev]tiger fortune[/url] . Apelidado carinhosamente como o tigrinho, este slot conquistou milhares de apostadores devido a sua jogabilidade dinamica e ao potencial de lucros ageis. Se voce esta em busca de uma experiencia otimizada, este site surge como uma alternativa viavel para quem deseja explorar o tiger fortune com mais confianca e dinamismo.

    Muitos usuarios buscam entender como jogar fortune tiger de maneira inteligente. O jogo do tigre funciona atraves de combinacoes de simbolos em uma matriz de tres por tres, onde o objetivo e alinhar figuras especificas para ativar premios extras. O jogo do tigrinho tornou-se um sucesso absoluto, e encontrar uma fortune tiger plataforma que paga de forma confiavel e o passo mais importante para quem quer levar a diversao a serio. Ao escolher o jogo do tigre fortune tiger, e essencial observar a volatilidade e o retorno ao jogador (RTP), garantindo que a sua jogada seja feita em um ambiente estavel.

    O jogo do tigrinho fortune tiger se destaca pela interface colorida e pelos sons imersivos que aumentam a emocao a cada rodada. Muitos jogadores se questionam onde encontrar as melhores chances no fortune tiger, e embora o ganho dependa da aleatoriedade, utilizar um site bem organizado pode facilitar o acesso as melhores funcionalidades do jogo fortune tiger. A experiencia acumulada e o controle financeiro sao essenciais para quem deseja se aventurar no fortune tiger bet.

    Lembre-se sempre de apostar de forma consciente. O jogo tigrinho e uma forma de entretenimento, e entender as normas antes de arriscar e a melhor maneira de aproveitar o jogo jogo tigrinho. Confira o link sugerido para descobrir como o jogo do tigrinho pode oferecer uma experiencia de cassino diferenciada, mantendo o foco na entretenimento e na busca pelos recompensas valiosas que o famoso tigrinho pode proporcionar a qualquer momento.

댓글 달기

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