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”의 20,184개의 댓글

  1. Петрозаводск добавляет нюансы: влажные сумерки, ветер от Онежского озера, «звонкие» подъезды старого фонда. Поэтому бригада «СеверКар Медикус» приезжает в гражданской одежде, быстро и без лишних фраз. Координатор заранее уточняет код домофона, парковку, «окна связи» для близких; рекомендует приглушить верхний свет, подготовить воду комнатной температуры и свободный доступ к розетке. Такой «тихий сценарий» снижает сенсорную нагрузку, сглаживает пульсовые «пики» к вечеру и помогает заснуть без избыточной фармакологии.
    Детальнее – [url=https://vyvod-iz-zapoya-petrozavodsk15.ru/]вывод из запоя клиника[/url]

  2. spinmacho-agige

    While participating with internet wagering platforms, putting your well-being is the most vital step you can execute [url=https://spinmacho-login.net/responsible-gambling]spin macho[/url] . At spinmacho, we believe that amusement should always stay a beneficial and regulated journey. Our specialized page at spinmacho-login.net/responsible-gambling functions as a comprehensive guide designed to help players maintain proper practices while enjoying their preferred options. By fostering a clear atmosphere, we ensure that any client has the tools necessary to stay in command of their gaming experience.

    Responsible gambling is at the center of the spin macho philosophy. We perceive that although the rush of the game is enticing, it is crucial to establish solid private boundaries. We advise all players to regard gaming as a type of relaxation rather than a way to generate income. To support this, our portal supplies practical guidance on how to handle your schedule and budget successfully. From defining deposit limits to employing restriction choices, we present various functions that allow you to tailor your session to suit your lifestyle reliably.

    Spotting the cues of harmful conduct is another vital part of our devotion to our community. If you occasionally perceive that your wagering patterns are turning too much, we offer immediate paths to expert support groups that specialize in gambling dependency. Our group at spin macho is equipped to provide help and counsel, ensuring that you hardly ever feel isolated in your attempts to uphold a stable lifestyle.

    We invite all users to browse the responsible gambling section on our website to get familiar with these important safety measures. By remaining informed and leveraging the assets available at spinmacho, you can guarantee that your period passed with us continues fun, fair, and durable. Keep in mind that your well-being is our primary goal, and we are here to back a healthy gaming climate for each person. Take a second right now to review these policies and arm yourself with the information needed for a mindful and pleasant experience at spinmacho.

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

  4. All jene, die sich, sein Gluck bei einem Online-Anbieter zu wagen, sollte stets bestens instruiert sein [url=https://spino-gambinospiel.ch/agb]spinogambino[/url] . Uber die Plattform von spinogambino entdecken Zocker ausschlie?lich ein vielfaltiges Unterhaltungsangebot, sondern auch relevante Informationen zur juristischen Absicherung und der Nutzungsbedingungen. Solche dazugehorigen Dokumente befinden sich bei der URL spino-gambinospiel.ch/agb einsehbar sowie stellen die Basis fur ein offenes Spielerlebnis. Der sorgfaltiger Durchlauf in diese AGB ist bei jeglichem Portal solcher Kategorie klug, weil diese Richtlinien jene Vorgaben fur des Spielablauf wie auch jene Konditionen fur Deposits und Auszahlvorgangen definieren.

    Das Haus spino gambino setzt gro?en Wert dazu, sodass Anwender genau begreifen, welche Rechte und Pflichten mit einer Registrierung verbunden sind. In der Allgemeinen Geschaftsbedingungen werden unter anderem auch Themen wie der Altersprufung, der Beachtung der sicheren Spielrichtlinien als auch die Datenschutzvorgaben ausfuhrlich erlautert. Wer sich bei spino gambino anmeldet, stimmt jene Konditionen, wodurch zugunsten beider Seiten – den Provider sowie den jeweiligen Zocker – Rechtssicherheit schafft. Vor allem innerhalb der eidgenossischen Schweiz erscheint es wichtig, dass Provider die eigenen Regeln eindeutig ubermitteln, sodass ein absolut gerechtes Umfeld sichergestellt sein kann.

    Wenn Fragen bezuglich der Konto-Verwaltung oder hinsichtlich den spezifischen Bonus-Kriterien auftauchen, gelten solche AGB an jener vorher genannten Webseite haufig als primare Informationsquelle fur Klarungen. Spieler, welche an spinogambino engagiert sein mochten, handeln weise dabei, sich selbst einen Moment Mu?e fur nehmen, damit jene juristischen Basisdaten aufmerksam zu durchforsten. Vorgang hilft betrachtlich dazu bei, Missverstandnisse zu unterbinden sowie den Fokus komplett sowie ganz hin auf den Unterhaltungswert zu richten. Transparenz stellt ein Qualitatsmerkmal reprasentiert, wofur die Marke spino gambino steht. Durch der klare Prasentation jener Informationen auf spino-gambinospiel.ch/agb zeigt der Provider, sodass ihm ein absolut partnerschaftliches Miteinander wichtig ist. Abschlie?end lasst man festhalten, dass eine stets informierte Spielweise die absolut optimale Option darstellt, damit bewusst und geschutzt in die Sphare des spinogambino einzusteigen. Gonnen sich daher daher immer genug Gelegenheit, die Konditionen sorgfaltig grundlich zu prufen, ehe man bei mit dem Zocken anfangen.

  5. Gdy rozglądasz się za nowoczesnego portalu do hazardu w sieci, warto sprawdzić stronie ivybet [url=https://ivybet-casino-34.vercel.app]ivybet opinie[/url] . Portal ten zyskuje coraz większą popularność wśrod użytkownikow, oferując szeroki zakres usług zarowno w obszarze kasyna, jak i zakładow sportowych. Jako wszechstronny portal, ivybet casino zapewnia dostęp do tysięcy automatow, gier stołowych oraz live casino, ktore dostarczają emocji na najwyższym poziomie.

    Dla graczy z Polski marka ivybet pl przygotowała przejrzystą ofertę, ktora spełnia oczekiwania lokalnego rynku. Często pojawia się pytanie, jakie są ivybet opinie. Dotychczasowi gracze często chwalą stronę za przejrzystość, szybkie ładowanie gier oraz wysoką jakość wsparcia. Dzięki temu ivy bet polska jest coraz częściej wybierany przez osob poszukujących bezpiecznej i wygodnej rozgrywki w sieci.

    Platforma ta to nie tylko standardowe gry hazardowe. Jeśli interesuje Cię świat sportu, ivybet bukmacher oferuje duży wybor zakładow na najważniejsze wydarzenia piłkarskie, tenisowe czy e-sportowe. Notowania są atrakcyjne, a opcja zakładow live dodaje każdemu meczowi dodatkowego dreszczyku emocji. Ivybet polska stawia na jakość, co widać w przejrzystej nawigacji i szybkości portalu na urządzeniach mobilnych.

    Wybierając ivy bet casino, stawiasz na serwis, ktore integruje zamiłowanie do gier z nowoczesną technologią. Bez względu na to, czy Twoim celem jest wygrana w ulubionym slocie, czy przewidywanie wynikow spotkań sportowych, ivybet zapewnia narzędzia niezbędne do świetnej zabawy. Warto pamiętać, aby zawsze grać odpowiedzialnie i podchodzić do gry z umiarem. Jeśli cenisz sobie rożnorodność i potrzebujesz miejsca, w ktorym oferta gier kasynowych miesza się z emocjami bukmacherskimi, ivy bet będzie doskonałym wyborem. Zobacz sam, co przygotował dla Ciebie ten serwis i przekonaj się, dlaczego coraz więcej osob decyduje się na rejestrację w tym serwisie. To nowoczesne podejście dla każdego, kto wymaga od swojej platformy rozrywkowej stabilności oraz bogatej oferty każdego dnia.

  6. top-tier online betting site for local gamblers is now acknowledged as a beloved virtual entertainment hub by people hunting for seamless and fun-filled gambling ventures [url=https://bet-and-play-casino-11.vercel.app]Betandplay Casino Canada[/url] .

    Regardless you look exploring after comprehensive Bet And Play Casino Review insights simply browsing top gambling platforms, this site offers a wide range of activities and benefits tailored to casual as well as hardcore players. Via a strong focus on ease-of-use and easy-to-navigate structure, This casino has swiftly secured momentum among players scouting reputable gambling hubs.

    One distinctive feature of Betandplay Casino Canada is its amazing library of featured activities. Covering classic roulette machines and desk games, including interactive host sessions, the hub guarantees there’s an option for everyone. Wagerers can appreciate games from elite providers, encompassing some of the most titles within the field. The this gaming site equally stresses honesty, through frequent reviews and clear sessions in order to establish trust with its customers.

    Concerning beginners emerging to the platform, scanning Bet And Play Reviews can deliver valuable insights into what one should anticipate. Countless users point out the effortless design, helpful customer staff, and generous launch offers as critical perks. The this casino’s feedback area usually commends the platform’s mobile support, allowing gamblers to enjoy their top options on the move. Regardless you’re reviewing Betandplay Casino Review or investigating this Canadian betting hub, the hub’s dedication toward offering a high-quality entertainment experience is evident.

    Security is furthermore a key factor for betters reviewing the gaming hub. The platform deploys cutting-edge protection methods to guard individual and financial records, guaranteeing a protected betting atmosphere. This emphasis toward security, combined and its user-friendly layout, turns the premier online gambling site a competitive choice within the online gambling industry.

    When you’re searching for a trustworthy Bet And Play Casino, this site offers a comprehensive venture with a fusion of fun, ease, and security. Regardless you’re a seasoned wagerer or a newcomer at online casinos, this Canadian betting hub features a strong groundwork for an enjoyable betting venture. Keep in mind that gamble sensibly and harness benefit from the assets available for responsible betting practices.

  7. Но последний запой был особенно тяжёлым — он не выходил из него почти две недели. Он перестал есть, спать, разговаривать. Я начал искать частную помощь. Вывод из запоя на дому — Осмотрел отца, поставил капельницу. Через три часа отец пришёл в сознание. Сказал, что при необходимости можно повторить. Мы снова вместе. Если у вас похожая ситуация — не ждите. вывод из запоя санкт-петербург стационар [url=https://vrach.vyvod-iz-zapoya-na-domu-spb.ru]https://vrach.vyvod-iz-zapoya-na-domu-spb.ru[/url] Сохраните, поделитесь, не потеряйте для нашего города. Хотите быстро вывести из запоя — переходите по ссылке. Вывод из запоя на дому — спасение для всей семьи!

  8. cricketroad-Utewly

    The global realm of electronic gaming is shifting rapidly, and a singular hub now grabbing the attention of sports enthusiasts within India is Cricket Road [url=https://cricketroad-20.vercel.app]cricket road game online[/url] . Being an captivating environment that combines the fervor for the activity with interactive quests, the Cricket Road game has evolved into a trending topic for users looking to experience a unique digital adventure from the comfort of their living spaces. Regardless of you might be a casual user or a dedicated fan aiming to investigate the cricket road game online, this site gives a simplified interface designed for excitement and accessibility.

    For many players, the primary attraction of this domain is the capacity to engage with a cricket road online game that seems dynamic and rewarding. If you are hunting for the real cricket road game, it is vital to ensure you are visiting the official edition. Navigating the Cricket Road login process is straightforward, enabling you to rapidly access the field and begin playing. A multitude of users are inquiring about the potential of earning gains, often searching for words like cricket road game money, which highlights the intense character of the network enveloping cricketroad.

    Prior to beginning, constantly verify you are visiting the cricket road game original site to safeguard safety and just play. While several people might term it as a cricket road casino because of its intense systems, it continues to be a separate portal for entertainment devotees. To initiate, just execute your cricket road game login employing your registered details. Once you are inside, you can explore the multiple elements that make the cricket road experience stand out in the crowded sector of handheld and internet titles.

    While you dive into the cricket road platform, remember that responsible play is vital for a beneficial session. Given its user-friendly design and increasing popularity, Cricket Road is undoubtedly making a presence in the Indian virtual gaming arena. Ensure you save the official URL and relish the thrill of the game while you aim for the top of the scorecard in this engrossing cricket-themed adventure.

  9. Но дни шли, а он не выходил из этого состояния. И нужен стационар. Мы начали искать клинику в Нижнем Новгороде. анонимная помощь — мужа положили в палату. Первые дни были тяжёлыми. Он был спокойным, благодарным. Мы снова живём нормальной жизнью. Спасибо этой клинике за то, что вернули нам родного человека. цена на вывод из запоя в стационаре [url=https://pohmelye.vyvod-iz-zapoya-v-staczionare-nnovgorod.ru]https://pohmelye.vyvod-iz-zapoya-v-staczionare-nnovgorod.ru[/url] Там все контакты и условия для региона. Стационар даёт шанс. Вывод из запоя в стационаре — шанс на новую жизнь!

  10. spinmacho-Gaurne

    When you opt to interact with an online gambling portal, comprehending the manner your user details is processed serves as a critical stage in sustaining a protected journey [url=https://spinmacho-login.net/privacy-policy]spinmacho[/url] . The data policy provided at spinmacho-login.net is designed to offer complete clarity about the manner spin macho gathers, processes, and defends the sensitive data of its players. By emphasizing system integrity, the site guarantees that gamers might enjoy their top gambling titles with full assurance that their confidentiality stays a major focus.

    The document clearly describes the categories of data compiled throughout the enrollment and active procedures. This usually features essential individual details, system information such as IP identifiers, and financial details necessary to support safe funding and cashouts. Spinmacho is dedicated to utilizing this content strictly for essential objectives, for example profile checking, improving platform usability, and adhering to legal obligations within the iGaming sector. Users will rest assured that their information is never distributed with external parties without explicit consent, highlighting the website’s dedication to security.

    Safety measures at spin macho are solid, using sophisticated coding methods to defend against illegal access. The site takes deliberate steps to monitor for potential weaknesses, guaranteeing that your virtual identity stays secured constantly. Additionally, the privacy papers details your individual privileges about your data, including the way you can view, update, or ask for the erasure of your personal records.

    By visiting the data info area, players can educate themselves with these protections and understand the manner spinmacho maintains a responsible space. Regardless of whether you be a recreational user or a serious enthusiast, understanding the manner your details is controlled empowers you to reach smart decisions about your internet activity. We advise all users to peruse the full policy to keep current on the newest protocols and practices deployed by the portal. By these transparent measures, spin macho keeps to build trust and long-term dependability inside the very online betting market.

댓글 달기

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