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”의 74,972개의 댓글

  1. Moja is one of the most popular gambling sites in the United Kingdom, providing a wide range of gaming options for both casual and seasoned bettors [url=https://moja-bet-ww.pages.dev]mojabet login[/url] . Whether you’re looking to place bets at this casino games on Mojabet, explore real-time dealer experiences, or wager on live matches, this platform delivers a seamless and engaging experience. With a strong standing for fairness, security, and generous promotions, Moja has quickly become a top choice among bettors.

    One of the standout features of Moja is its user-friendly design, making it easy for new users to navigate the site. The Mojabet login process is simple, ensuring that players can quickly log into their accounts and start betting. For those unfamiliar with the platform, Moja highlight its trustworthiness, with many users praising the smooth gameplay and helpful customer support. Whether you’re reviewing Moja or exploring new betting opportunities, the platform ensures a hassle-free experience.

    For fans of sports, Mojabet online provides a extensive selection of betting markets, including soccer, tennis, and esports. The platform also includes a specialised Mojabet casino area, where players can partake in a range of table games, slot machines, and live dealer experiences. The MojoBet casino area is especially popular, offering high-quality graphics and honest gaming, which is crucial for an pleasurable wagering session.

    Protection is a major concern at Mojabet, with robust steps in place to secure player information and funds. The Mojabet login system uses secure coding, ensuring that all transactions are safe. Additionally, the platform is licensed and overseen, providing players with confidence when making deposits and wagering.

    Whether you’re a experienced gambler or just starting with online wagering, MojoBet provides options for all. With regular deals, a variety of betting choices, and a trusted reputation, it’s no surprise that Moja has become so popular. If you’re looking for a reliable gambling site, Mojabet is absolutely worth trying out.

  2. spinogambinobet-chisp

    Caso procure uma experiencia de jogo completa e atual na palma da sua mao, a Spinogambino app e a opcao perfeita para apostadores em Portugal [url=https://spinogambinobet.com.pt/app]casino spinogambino app[/url] . Com o aumento dos jogos online, ter acesso a uma plataforma confiavel e agil tornou-se fundamental, e o aplicativo da Spinogambino oferece exatamente isso. Ao utilizar a aplicacao spinogambino em Portugal, voce tem a liberdade de apostar em slots, jogos de mesa e jogos em tempo real em qualquer lugar, garantindo que a diversao nunca pare. A interface foi aperfeicoada para dispositivos moveis, garantindo que a navegacao no aplicativo do cassino spinogambino seja fluida e simples.

    Para iniciar as apostas hoje mesmo, o processo de spinogambino app download e muito facil e eficiente. Ao realizar o download da app spino gambino, voce desbloqueia uma gama de funcionalidades unicas, incluindo notificacoes sobre bonus personalizados e suporte agil ao suporte ao cliente. Se voce busca pelo melhor em entretenimento, a aplicacao do casino spino gambino sobressai pela diversidade de titulos e pela excelencia visual ajustada para telas de smartphones e tablets.

    A seguranca e uma prioridade absoluta para a plataforma. Ao instalar a spinogambino portugal app, voce conta com a mesma tecnologia de criptografia robusta presente no site principal, assegurando que seus dados e transacoes estejam protegidos a todo momento. Alem disso, a spinogambino app casino portugal permite efetuar depositos e levantamentos com rapidez, proporcionando praticidade para quem nao abre mao da comodidade.

    Nao perca tempo e faca hoje mesmo o seu spinogambino casino app download para integrar o mundo dos jogos de azar diretamente no seu cotidiano. Para tanto iniciantes ou jogadores experientes, o aplicativo oferece todas as ferramentas necessarias para gerir sua conta com simplicidade. Explore as categorias, desfrute de as promocoes semanais e viva a adrenalina dos jogos onde quer que voce esteja. Com a tecnologia de ponta da Spinogambino, o seu casino preferido agora cabe no seu bolso, garantindo momentos marcantes de entretenimento com liberdade total e seguranca.

  3. chickenroad-eagelay

    Does the platform verified? An detailed review about the web-based casino adventure in this UK

    When searching web-based casinos across the United Kingdom, players should critical before check reliability unless investing funds [url=https://chickenroad-uk-23.onrender.com]Is Chicken Road Legit United Kingdom[/url] .

    This platform open using its portal the unusual endpoint have concerns among bettors looking some honest casino network. Nonetheless, is the site legit? Let’s examine which aspects players need for learn prior to depositing.

    To begin with, The site depicts itself like this contemporary online gaming including an array of options, covering slots, table options, together with interactive host choices.

    Even though these casino seems being active together with easy-to-navigate, its authenticity hinges upon key important elements. A primary among these first points are authorization. Trusted British gaming platforms should hold approvals issued by organizations like that UKGC.

    Sadly, The casino does scarcely visibly show its certification particulars, such triggers alerts towards most players. In absence of proper regulation, there’s scant promise regarding fair wagering, trusted payments, nor responsible betting standards.

    Another point to assess is player testimonials. Numerous users hunting for legitimate casino feedback discover contradictory feedback. Some bettors mention smooth gameplay together with efficient support assistance, although some highlight challenges like including slow payouts, ambiguous terms, nor difficulties interacting help.

    These contradictions suggest that the casino may be far from appear as dependable versus well-known United Kingdom betting sites such as Bet365.

    Concerning players asking about the legitimacy of this casino in Britain, it’s worth noting that valuable understanding the Great Britain has demanding gambling rules for safeguard gamblers. Licensed wagering venues must follow such regulations, promoting clarity, equitable odds, while trusted transactional methods.

    Chicken Road’s lack for clear regulation as well as authority oversight makes these difficult while assess if these complies with these criteria.

    Additionally, wagerers should stay mindful towards “Is Chicken Road legit game”. Although the network may offer well-known options, lacking adequate authorization, it’s scant assurance this the entertainment seem equitable and free from manipulation.

    A significant number of reliable United Kingdom gaming platforms use certified RNG systems with the aim of promote justice, an feature commonly missing of unregulated sites.

    During summary, although this platform might appear comparable to an feasible solution toward players hunting in pursuit of whether this platform is trustworthy, its absence of explicit authorization, conflicting opinions, while lack with regulatory oversight create this this questionable option.

    Wagerers in the UK need value gaming platforms featuring correct certification and solid track records with the aim of ensure this secure while fair casino journey.

    Before anything else perform thorough investigation prior to allocating money, while look into verified solutions such focus on player safety.

  4. W domenie sieciowej zabawy coraz większą uznanie zdobywa ciekawa gra plinko, ktora wabi graczy swoją prostotą oraz zmiennym rytmem [url=https://plinko-casino-51.pages.dev]plinko[/url] . Jeżeli myślisz się, plinko co to właściwie jest, najszybciej nazwać to jako nowoczesny odpowiednik tradycyjnego telewizyjnego systemu. Gracze puszczają tytułowy plinko ball z początku pola, patrząc, jak odbija się on od rozmaitych elementow, by finalnie wpaść w jedną z sektorow o rożnej skali mnożnika. Dla użytkownikow pragnących adrenaliny, plinko casino stanowi świetną odmianę od tradycyjnych slotow.

    Tysiące internautow podaje w wyszukiwarki frazę gra plinko opinie, aby badać, czy aktywność jest bezpieczna i bezpieczna. Badając widoczne wpisy oraz to, co mowi gra plinko opinie forum, można stwierdzić, że podstawą do zwycięstwa jest wytypowanie rzetelnego kasyna. Strona plinko-casino-51.pages.dev jest dla ogromnej grupy graczy najważniejszym celem, gdzie dostępna jest znakomita plinko gra, gwarantująca stabilną sesję i czytelne reguły. Regularnie formułowane pytanie oznacza: plinko czy warto? Odpowiedź wynika od indywidualnych preferencji, jednak dla fanow gier typu instant win, struktura ta jest wyjątkowo angażująca.

    Gdy pociąga Cię plinko casino polska, warto skoncentrować na to, jak zaawansowane jest wszystkie proponowane przez nas kasyno plinkoz. Ta gra plinko zyskała aprobatę z uwagi na swojej jasności, co weryfikują wiele plinko opinie wrzucane przez zadowolonych graczy. W webie zamieszczonych jest sporo słow typu plinko gra opinie, co dowodzi o rosnącym zainteresowaniu tym typem rozrywki online. Bez względu od tego, czy tytułujesz to plinko kasyno czy po prostu oczekujesz rozrywki, trzeba wybrać na pewne rozwiązania. Zapamiętaj jednak, że każda gra ryzykowna skutkuje z niepewnością, dlatego nieustannie dobrze stosować do zabawy rozważnie i z spokojem. Stawiając na serwis taki jak plinko-casino-51.pages.dev, masz przekonanie, że używasz z platformy, ktora kieruje się na jakości i przyjemność klienta, oferując przeżyć na rekordowym wymiarze przy dowolnym etapie kulki.

  5. instasino-fleeds

    Bent u op zoek naar een betrouwbare en spannende omgeving om uw geliefde games te gokken? In dat geval is instasino de naam die u dient te memoriseren [url=https://instasino-1.onrender.com]instasino casino nederland[/url] . In deze instasino review stappen we verder in wat dit portaal zo eigenzinnig maakt voor gebruikers die prefereren excellentie en tempo. Het instasino casino geniet faam om zijn gebruiksvriendelijke interface en een schitterend assortiment aan vermaak, lopend van klassieke slots tot eigentijdse live casino ervaringen. Voor spelers in onze regio is dit domein een prima optie, omdat instasino casino nederland zich focust op een vloeiende en betrouwbare speelomgeving voor elk individu.

    Wanneer u voor het startpunt naar de site navigeert, zult u merken hoe eenvoudig het verloop is. De instasino login is zo ontworpen dat u binnenin enkele seconden toegang heeft tot uw persoonlijke account en meteen aan de taak kunt met uw favoriete spelen. Veel bezoekers die op zoek zijn naar een goed instasino casino online prijzen primair de snelle winstopnames en de superieure support die voortdurend gereed staat om te helpen. Het is overduidelijk dat casino instasino enorm veel aandacht besteedt aan de wensen van de huidige gokker.

    Ongeacht of u nu via uw PC of gsm speelt, de ervaring blijft altijd kwalitatief. Diverse gasten die instasino nl langsgaan, roemen de variatie in het spelaanbod en de eerlijkheid van de spellen. In dit instasino casino review kunnen we concluderen dat dit platform beantwoordt aan de strenge eisen van de actuele branche. Bent u nieuw in de wereld van digitale kansspelen of een routinier meester in het vak? Het assortiment bij instasino online is ontzettend divers en geeft voor ieder klant wel een passende optie. Wenst u zelf achterhalen waarom dit casino zo bekend is onder Nederlandse fans? Start dan direct een profiel aan en ervaar het persoonlijk. Met de focus op veiligheid en plezier is dit een prima locatie om uw geluk te waden. Denk eraan niet om altijd verantwoord te inzetten gedurende u profiteert van de uitgebreide opties die dit domein u te bieden heeft.

  6. koningcasino-burbele

    Wilt u genieten van een betrouwbare en leuke plek om uw geluk te beproeven? Dan is het goed om eens te kijken naar wat de wereld van koning casino te bieden heeft [url=https://koningcasino-15.pages.dev]koning[/url] . Op het platform koningcasino-15.pages.dev vindt u een uitgebreid spelaanbod dat is ontworpen voor de Nederlandse speler. Als u een koning casino review leest, zult u merken dat de focus ligt op een gebruiksvriendelijke interface, snelle laadtijden en een gevarieerd spelaanbod dat zowel de nieuwe als de ervaren speler aanspreekt.

    Bij het koning online casino draait alles om spelplezier en veiligheid. Of u nu de voorkeur geeft aan klassieke slots, spannende tafelspellen of de meeslepende ervaring van een live omgeving, het casino koning bet heeft het allemaal in huis. Veel spelers die het platform bezoeken, zijn gericht op zoek naar de unieke sfeer die de koning uitstraalt. Door te kiezen voor het online casino koning, bent u verzekerd van een hedendaags platform waar u op uw gemak kunt genieten van uw favoriete games.

    De populariteit van koningcasino blijft groeien onder liefhebbers in ons land. Dit komt mede door de transparantie en de toegankelijkheid van de website. Wanneer u zich begeeft in het koning casino nederland, merkt u direct dat er veel aandacht is besteed aan het optimaliseren van de spelervaring. Het is voor velen de plek geworden waar zij terechtkunnen voor een topervaring bij een casino koning. Als u overweegt om een account aan te maken bij de koning bet casino, dan bent u in ieder geval verzekerd van een breed scala aan mogelijkheden.

    Kortom, wie op zoek is naar een hoogwaardige en boeiende speelervaring, doet er verstandig aan om de mogelijkheden op deze specifieke pagina te verkennen. De combinatie van een ruim assortiment en een professionele opzet maakt dat menig speler zich hier snel thuis voelt. Ontdek vandaag nog waarom zoveel mensen kiezen voor de kwaliteit van dit platform en ervaar zelf waarom dit de favoriete keuze is voor velen die houden van een uitstekende speelervaring.

  7. chickenroad-oribly

    In cazul in care ești doritor de unui hobby incitant, chicken road 1xbet reprezintă dintre principalele alegeri pentru pasionații de cazinou online [url=https://chickenroad-review.ro/1xbet]chicken road 1xbet cazino[/url] . Acest titlu a reușit să rețină atenția pariorilor mulțumită dinamicii sale unice și a manierei facile de a inregistra profituri. In acest text, vom analiza informațiile esențiale referitor la chicken road joc 1xbet, un joc care imbină strategia cu șansa intr-un mod inedit.

    Atunci cand optezi pentru chickenroad cazino 1xbet, descoperi un portal configurat pentru momente eficiente și clare. Succesul de care se bucură chicken road 1xbet cazino este explicată de aspectul estetic actual și de funcțiile speciale care mențin emoția la cote maxime. Diferiți utilizatori caută constant 1xbet chicken road deoarece acesta oferă o oportunitate concretă de a incasa recompense tentante intr-o perioadă scurtă. Dacă vrei să afli cum ai posibilitatea să pornești experiența, etapele sunt extrem de clare: intră pe site, găsește chickenroad slot 1xbet și incearcă variantele oferite.

    Pentru persoanele ce doresc să priceapă aprofundat modul de operare din cadrul acestui soft, chicken road joc de pariuri 1xbet reprezintă o opțiune excelentă. Inainte de a risca bani reali, iți recomandăm să joci chickenroad 1xbet fără costuri pentru a studia cu regulile și pentru a-ți dezvolta propria strategie. Acest interval de invățare este esențială pentru orice jucător ce urmărește să parieze cu prudență. După ce ești gata, poți trece direct la pasul următor și poți alege chicken road 1xbet joacă cu mize reale.

    Ca o sumarizare, chicken road 1xbet joc este alegerea ideală pentru cei care doresc un mix perfect intre emoție și divertisment. Site-ul 1xbet asigură un cadru protejat și profesionist pentru intreaga comunitate, confirmand că fiecare sesiune este imparțială și deschisă. Dacă ai de gand să incerci destinul și să ai parte de o sesiune specială, nu ezita să explorezi magia acestui slot. Verifică permanent să pariezi responsabil și delectează-te de fiecare rundă pe chicken road!.

  8. Мы никогда не «лечим по заголовку». На старте фиксируем витальные показатели, собираем лекарственную историю и оцениваем факторы среды — график работы, «шум» дома, уровень физической активности, качество ночи. Параллельно обсуждаем, что для человека важнее сейчас: быстро «снять волну» симптомов, мягко перестроить вечерние привычки, настроить семейные договорённости или объединить всё это в короткий интенсивный период. Пациент получает не набор процедур, а маршрут: цель каждого шага, окно оценки эффекта, признаки успеха и заранее оговорённые условия для эскалации наблюдения.
    Углубиться в тему – [url=https://narkologicheskaya-klinika-stavropol15.ru/]наркологическая клиника нарколог ставрополь[/url]

  9. В статье по вопросам здоровья мы рассматриваем актуальные проблемы, с которыми сталкивается общество. Обсуждаются заболевания, факторы риска и важные аспекты профилактики. Читатели получат полезные советы о том, как сохранить здоровье и улучшить качество жизни.
    Узнать напрямую – [url=https://fixbuilders.ru/pages/chastnaya-narkologiya-ekaterinburg/]нео клиник[/url]

  10. Читатели получат представление о том, как современные технологии влияют на развитие медицины. Обсуждаются новые методы лечения, персонализированный подход и роль цифровых решений в повышении качества медицинских услуг.
    Доступ к полной версии – [url=https://ria-ami.ru/2024/12/kodirovanie-ot-alkogolizma-kak-eto-rabotaet-i-pochemu-stoit-poprobovat/]Нарколог кодирование от алкоголизма[/url]

댓글 달기

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