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

  1. Временная регистрация Москва подходит людям, которые фактически проживают в столице, но имеют постоянную прописку в другом регионе. Оформление позволяет зафиксировать текущий адрес пребывания на нужный срок без необходимости менять основной адрес регистрации: прописка в московской области

  2. cricket-Wonudge

    Provided you happen to be a devotee of athletic wagering and thrill, you have presumably noticed the buzz circling the cricket road platform [url=https://cricket-road-22.web.app]cricket road game[/url] . This online destination has attained considerable attention across India for providing a unique method to engage with your beloved sport. The cricket road game delivers an captivating dashboard where users can challenge their reflexes and enjoy a rapid setting. Whether you are seeking a cricket road online game journey that keeps you on the thrilling precipice or a platform that combines amusement and probable rewards, this site intends to fulfill those demands.

    To get started, participants usually have to finish the cricket road login process to access their individual panel. It is essential to ensure you are accessing the official website, frequently dubbed the cricket road game original, to preserve the protection of your membership and details. Plenty of enthusiasts look for the cricket road game money attributes to grasp how the system handles transfers and rewards. As with any service of this type, participating in the cricket road casino mode of play requires a responsible approach. Always remember to wager under your restrictions when joining any cricket road game online.

    Visiting cricketroad is straightforward, yet patrons should constantly stress confirming that they are on the legitimate webpage. Searching for the real cricket road game will help you differentiate amongst the trustworthy hub and bogus imitations that may not provide the same level of reliability. Once you have effectively concluded your cricket road game login, you can explore the multiple tools available on the platform. The attraction of this virtual escapade resides in its ease and the excitement of the contest itself. For individuals in India aiming to combine their enthusiasm for athletics with active gaming, the cricket road experience stays a important theme of curiosity. Always stay informed, wager securely, and appreciate the joy of the game on the verified cricket road platform.

  3. Эта медицинская заметка содержит сжатую информацию о новых находках и методах в области здравоохранения. Мы предлагаем читателям свежие данные о заболеваниях, профилактике и лечении. Наша цель — быстро и доступно донести важную информацию, которая поможет в повседневной жизни и понимании здоровья.
    Продолжить чтение – [url=https://realtytrend.ru/pages/narkologicheskoe-lechenie-narkomanii/]лечение наркомании без согласия больного[/url]

  4. betandplay-silymn

    Online-Casino sich auf ein innovatives Spielerlebnis spezialisiert hat [url=https://betandplay-casino-29.pages.dev]Bet And Play Erfahrungen[/url] .

    Besonders in Deutschland wird die Plattform unter dem Namen Bet And Play Online immer bekannter, da sie eine vielfältige Spielangebot und attraktive Extras aufweist. Doch bevor man sich für eine Registrierung entschließt, kann es sich auszahlen die Betandplay Casino Erfahrungen zu untersuchen, um sicherzustellen, dass das Casino professionell und aufrichtig ist.

    Die Bet And Play Casino Erfahrungen von Gamern sind meist lobend, da die Plattform eine umfassende interaktive Live-Tische sowie Glücksspielmaschinen und klassische Glücksspiele aufweist. Besonders die Bildschirmdarstellung und die benutzerfreundliche Steuerung werden häufig gewürdigt. Weiterhin sticht Betandplay mit raschen Überweisungen und einem professionellen Service-Team, der auf Deutsch verfügbar ist. Viele Nutzer bewerten hoch auch die verschiedenen Zahlungsmethoden, darunter fallen Online-Banking, EC-Karte und elektronische Zahlungsmittel wie Skrill.

    Ein zentraler Punkt bei der Analyse von dem Casino ist die Zuverlässigkeit. Betandplay Seriös zu sein hängt mehreren Aspekten, darunter die Lizenzierung und die Datenverschlüsselung. Das Online-Casino ist in mehreren europäischen Ländern zulässig, was die Reputation stärkt. Darüber hinaus nutzt das Casino auf hochwertige Sicherheitsstandards, um die Schutz der Transaktionen zu garantieren.

    Für Spieler, die sich für eine Anmeldung interessieren, ist es ratsam, die Casino-Rezensionen ehemaliger Gäste zu prüfen, um ein klareres Bild zu bekommen. Viele Feedback unterstreichen, dass das Casino nicht nur ein vielfältiges Spielangebot anbietet, sondern auch faire Bedingungen und nachvollziehbare Vorgaben umsetzt. Wer auf der Suche nach einem zuverlässigen und erlebnisreichen elektronischen Spielanbieter ist, könnte mit dem Casino eine überzeugende Lösung finden.

    Abschließend lässt sich, dass das Online-Casino eine vielversprechende Option für Glücksspiel-Fans darstellt. Die Casino-Rezensionen zeigen, dass das Casino sowohl in puncto Spielauswahl als auch in puncto Service besticht. Wer Setzt Priorität auf Seriosität und ein erfüllendes Unterhaltungsangebot verlangt, sollte das Casino auf jeden Fall in Überlegung ziehen.

  5. Jemand, der bei der Jagd nach einem erstklassigen Spielerlebnis in der Schweiz ist, gelangt zwangslaufig auf spinogambino [url=https://spino-gambinospiel.ch/uber-uns]spino gambino[/url] . Das Netzwerk hat sich als eine der top Anlaufstellen fur Liebhaber erstklassiger Unterhaltung bewiesen. Wer sich fragt, wer wirklich hinter diesem Angebot steckt, findet auf der Rubrik uber-uns alle relevanten Informationen, die das Vertrauen in die Plattform festigen. Transparenz ist ein entscheidender Fokus der Unternehmensphilosophie bei spino gambino, denn das Team strebt garantieren, dass sich die Spieler zu jedem Augenblick gut aufgehoben wahnen.

    Auf der Uber-uns-Seite erhalten Interessenten Einblicke uber die Ideologie und die Normen, die das Angebot von spinogambino so besonders gestalten. Das Ziel ist es, eine gehobene Umgebung zu generieren, in der Qualitat und Bedienkomfort an oberster Prioritat stehen. Das Team hinter spino gambino konzentriert sich darauf, den maximalen Anspruchen der Schweizer Community gerecht zu werden. Dabei fungieren nicht nur die funktionale Robustheit und ein attraktives Design eine Rolle, sondern vor allem die Vertrauenswurdigkeit und die verantwortungsbewusste Methodik an das breite Portfolio.

    Durch das explizite Bekenntnis zu Ehrlichkeit und serviceorientiertem Service distanziert sich spinogambino merkbar von der Konkurrenz ab. Die Inhalte auf der Webseite sind gezielt darauf ausgerichtet, einerseits neuen Besuchern als auch bestandigen Stammkunden ein transparentes Bild des Unternehmens zu prasentieren. Es geht um mehr als nur Unterhaltung; es geht um den Entwicklung einer nachhaltigen Beziehung, die auf gegenseitigem Vertrauen basiert. Wer sich also fur den Ursprung und die Ambitionen der Macher von spino gambino interessiert, sollte einen Blick auf die passende Informationsseite richten. Dort wird sichtlich, warum so viele Nutzer dieses Angebot als ihre favorisierte Wahl in der Schweiz bewerten. Die Mischung aus jahrelanger Expertise und dem stetigen Bestreben, das personliche Angebot zu optimieren, transformiert spinogambino zu einer wichtigen Gro?e, bei der der Kunde permanent im Zentrum samtlicher Anstrengungen steht. Testen Sie die Plattform und erfahren Sie personlich, warum das Vertrauen in die Plattform so enorm gewachsen ist.

  6. Эта статья подробно расскажет о процессе выздоровления, который включает в себя эмоциональную, физическую и психологическую реабилитацию. Мы обсуждаем значимость поддержки и наличие профессиональных программ. Читатели узнают, как строить новую жизнь и не возвращаться к старым привычкам.
    Заходи — там интересно – [url=https://pobetony.expert/zdorove/vrach-narkolog-vyezd-na-dom]номер телефона нарколога на дом[/url]

  7. spinmacho-Aliese

    During the process of engaging alongside every internet gambling platform, it is essential to understand the regulations that control your playing experience [url=https://spinmacho-login.com/terms-and-conditions]spinmacho[/url] . For patrons visiting the website associated with spinmacho, analyzing the terms and conditions represents a crucial starting action. These official mandates certify that every the system as well as the gamer become protected, forming a fair environment for all participants present. By getting acquainted about these files on the spin macho portal, you gain clarity on your rights, duties, as well as the operational policies of the portal.

    The terms and conditions section discusses a broad range of important topics, incorporating membership enrollment prerequisites, age validation steps, along with payment as well as withdrawal methods. It proves significant to recall that through opening an membership within spinmacho, you enter entering into a formal contract. The destination outlines defined codes of ethics to deter dishonest conduct and verifying that every betting stays fair. Investing the needed effort to examine these paragraphs helps you to evading possible issues connected regarding promotional betting demands or account limits, which stay typical throughout the online gambling sector.

    Additionally, the file details how spin macho processes player details and security. Clarity concerning privacy defense serves as a hallmark of a trustworthy platform, plus the terms page acts as the primary reference for mastering exactly your sensitive information remains saved along with utilized. In the event that you at any time encounter a case in which you think a policy seems unclear, referring back to these documented terms stands as the highly successful approach to find clarification.

    Fundamentally, becoming a well-educated player encourages a much extra fun as well as protected session. Whether you are a fresh player alternatively a seasoned patron, verifying the spinmacho terms and conditions periodically proves definitely suggested, given that policies might become updated to incorporate modern official criteria. By following these rules, you contribute to a secure community during the time you using the various functions supplied through spin macho. Continuously emphasize protection plus adherence to maximize the greatest benefit out of your moments utilized on the platform.

  8. To enthusiasts concerning online athletic entertainment, the cricket road game has developed like a popular portal that mixes the excitement regarding the sport alongside interactive gaming features [url=https://cricket-road-23.onrender.com]cricket road[/url] . Whenever you are seeking to examine the cricket road experience, it is crucial to understand how to traverse the site cautiously. This distinctive cricket road online game provides participants a chance to engage in virtual cricket challenges which possess seized the attention by play fans within India.

    Entering the domain remains simple, however users must constantly emphasize security. To be started, you shall demand to execute your cricket road login via the official system. Many individuals look seeking the cricket road game original version to ensure you might be employing a safe and real platform. After you finish the cricket road game login, you can check the various tools available on the webpage. Even though some players look regarding information concerning cricket road game money, it remains vital to recall as gaming ought to consistently get handled via responsibility and within your budget.

    The rising fame for cricketroad remains primarily thanks to its user-friendly design, which renders it simple to players to dive straight to the action. Whether you are looking for a real cricket road game alternatively simply want to try out the cricket road online game setup, the service provides a smooth flow for all ability grades. Since this is a online space, you might savor the play avoiding requiring large files.

    Prior to diving to the cricket road casino style features, give a second to review the service rules. Always validate where you find yourself inside the legitimate cricketroad URL to avoid outside dangers. By opting for the official cricket road platform, you ensure a better round plus improved security for your identity. Keep updated alongside the newest play fads alongside relish the thrill from the sport right via your system. Whether you are a casual fan or perhaps a loyal player, the cricket road game provides a dynamic world which maintains the soul regarding cricket alive inside a digital medium. Recall to bet smart alongside appreciate the journey responsibly.

  9. Wybor właściwego miejsca do obstawiania zakładow oraz gry w kasynie online to decyzja, ktora potrzebuje sprawdzenia bezpieczeństwa platformy [url=https://ivy-bet-75.vercel.app]ivybet[/url] . Jednym z serwisow, cieszących się coraz większe zainteresowaniem wśrod graczy nad Wisłą jest ivybet. Ta nowoczesna witryna łączy w sobie funkcjonalność platformy bukmacherskiej z szeroką ofertą gier hazardowych, co sprawia, że ivybet casino staje się atrakcyjną propozycją dla szerokiego grona użytkownikow. Jeśli szukasz informacji na temat ivybet pl, warto przyjrzeć się bliżej temu, co dokładnie oferuje ten operator.

    Wielu graczy zastanawia się, jakie są prawdziwe ivybet opinie. Gracze często doceniają przejrzysty interfejs oraz intuicyjną nawigację, ktora ułatwia poruszanie się pomiędzy sekcją sportową a grami na żywo. Jako ivybet bukmacher, serwis stawia na szeroki wachlarz dyscyplin sportowych, oferując konkurencyjne kursy i możliwość obstawiania wydarzeń w czasie rzeczywistym. Z kolei ivy bet casino przyciąga fanow automatow oraz gier stołowych, zapewniając dostęp do produkcji od najlepszych dostawcow oprogramowania na rynku.

    Dla osob korzystających z usług typu ivybet polska ważna jest stabilność platformy oraz bezpieczeństwo danych. Projekt ivy bet polska powstał w taki sposob, aby oferować użytkownikom płynne doświadczenie, niezależnie od urządzenia, z ktorego używają. Dzięki nowoczesnym rozwiązaniom technologicznym, dostęp do wybranych zakładow czy gier jest dostępny w każdej chwili. Warto pamiętać, że każda decyzja o rejestracji u operatora powinna być poparta własną analizą oferty oraz regulaminu serwisu.

    Podsumowując, jeśli interesuje Cię świat zakładow sportowych i hazardu online, platforma ta jest warta sprawdzenia. Bez względu na to, czy Twoim celem jest ivybet bukmacher, czy wolisz spędzać czas w ivy bet casino, warto śledzić aktualności dotyczące tego serwisu. Pamiętaj jednak, aby zawsze podchodzić do gry odpowiedzialnie, postrzegając to jako formę rozrywki. Wybierając ivybet pl, zyskujesz dostęp do kompleksowej oferty, ktora ma na celu spełniać oczekiwania nawet najbardziej wymagających miłośnikow emocji w sieci. Sprawdź, co oferuje ivybet i przekonaj się, czy ta propozycja pasuje do Twojego stylu gry.

  10. Публикация знакомит читателей с различными подходами к реабилитации. От традиционных методов до современных программ — вы узнаете, как выбрать оптимальный путь к выздоровлению и преодолеть препятствия на этом пути.
    Исследовать вопрос подробнее – [url=https://housemastery.ru/pages/bolnica-lechenie-alkogolizma-nizhnij-novgorod/]больница лечение алкоголизма нижний новгород[/url]

댓글 달기

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