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

  1. Sektor zakładow bukmacherskich oraz rozrywki w sieci w Polsce ciągle ewoluuje, a początkujący użytkownicy poszukują serwisow, łączących nowoczesność z bezpieczeństwem [url=https://ivybet-71.pages.dev]ivybet casino[/url] . Jedną z platform, ktore zyskują na popularności w rozmowach entuzjastow gier, jest ivybet. Ta witryna stara się sprostać oczekiwaniom doświadczonych graczy, zapewniając bogatą paletę możliwości zawierającą zarowno zakłady sportowe, jak i gry kasynowe. Jeśli chcesz się dowiedzieć, jak funkcjonuje ivybet pl, warto bliżej przyjrzeć się jego funkcjonalnościom.

    Platforma ivybet bukmacher przygotowała bogatą gamę sportow, w tym futbol, tenis czy koszykowkę, ktore przyciągają graczy z polski. Rownie rozbudowaną propozycję stanowi ivy bet casino, ktore oferuje dostęp do tysięcy automatow oraz gier na żywo. Dzięki intuicyjnemu interfejsowi, ivybet polska stara się zapewnić łatwe poruszanie się między obstawianiem wynikow meczow a rozrywką w grach stołowych do ruletki czy blackjacka.

    Dla wielu osob głownym kryterium przy wyborze operatora są opinie. Analizując ivybet opinie, użytkownicy zwracają uwagę głownie na szybkość obsługi płatności, dostępność bonusow powitalnych oraz responsywność wsparcia technicznego. Ivy bet stara się budować pozytywny wizerunek poprzez jasne warunki korzystania oraz dbałość o jakość dostarczanej rozrywki. Dla graczy szukających rzetelnych danych, ivy bet polska staje się interesującą opcją w stale rosnącym świecie e-hazardu.

    Niezależnie od tego, czy interesuje Cię klasyczna oferta ivybet casino, czy też wolisz emocje związane z obstawianiem sportu, warto pamiętać o odpowiedzialnym hazardzie. Witryna stawia na nowoczesne rozwiązania technologiczne, ktore mają na celu poprawę jakości korzystania z usług na każdym etapie korzystania z serwisu. Podsumowując, jeśli zastanawiasz się, gdzie rozpocząć swoją przygodę z zakładami w sieci, warto samodzielnie sprawdzić, co proponuje ivybet i przekonać się, czy spełnia ono Twoje osobiste wymagania. Pamiętaj jednak, aby zawsze przestrzegać prawa i zachować umiar podczas każdej formy aktywności w serwisach hazardowych.

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

  3. betandplay-Outrady

    BetAndPlayGamingHub is an virtual casino network that has gained attention within domestic enthusiasts looking for the dependable and thrilling gaming session [url=https://betandplay-casino-38.vercel.app]Bet And Play Casino Canada[/url] . As one of many upcoming names in this online gambling landscape, BetAndPlayGaming provides some selection of entertainment, deals, and an intuitive design built to draw both rookies and veteran players. Whether you’re hunting for BetAndPlayGaming Reviews or exploring BetAndPlayCasino, understanding its features and reputation is vital before committing to the deposit.

    One key aspect of BetAndPlayGaming is its selection of entertainment. The site hosts some vast selection of spin games, table activities, and virtual dealer choices, guaranteeing there’s something special for every kind of gambler. From traditional slots like Golden Goddess to high-stakes blackjack and wheel games, the variety fits varied likes. Additionally, the platform often launches latest entertainment and bonuses, keeping the experience fresh.

    For people eager in BetAndPlayCasino Review, enthusiast feedback highlights the platform’s convenience of use and helpful customer assistance. Many users value the quick payouts and safe payments, which are essential for confidence in virtual betting. However, as with all platform, it’s vital to check the authenticity of the site before playing for real funds. Reviewing for valid authorization and protected deposit methods is forever a smart practice.

    One more aspect that differentiates BetAndPlayCasino separately is its incentive offers. Fresh gamblers often get greeting offers, free rounds, and account rewards, which can boost their gaming journey. These perks are the standard element in this field, but it’s sensible to read the terms carefully to steer clear of some confusions.

    If you’re researching BetAndPlayCasino Review, you’ll find that the network is designed for Canadian players in mind. The network is accessible in English and offers Canadian transaction options, creating it simple for people in the maple leaf country. Nevertheless, as with all virtual entertainment site, smart entertainment should constantly be prioritized. Creating deposit limits and setting aside pauses when called for can help preserve a positive entertainment session.

    In final analysis, BetAndPlayGaming is the rising brand in that online wagering world, providing the combination of entertainment, deals, and easy-to-use benefits. Whether you’re looking for BetAndPlayGaming Canada reviews or merely discovering latest alternatives, knowing the site’s benefits and likely disadvantages will assist you make an wise call. Always confirm the platform is licensed and safe before participating in actual-fund play.

  4. spinmama-appotly

    Das digitale Glucksspiel genie?t in der Schweiz zunehmender Beliebtheit und viele Spieler wollen nach sicheren Plattformen fur das personliche Unterhaltungsbedurfnis [url=https://spinmama-anmeldung.ch]spinmama casino erfahrungen[/url] . In diesem Zusammenhang wandert spinmama vermehrt in den Fokus der lokalen Community. Wer auf der Pirsch nach einer vielfaltigen Auswahl an Spielautomaten und neuartigen Features ist, sollte sich die spinmama official site eingehend betrachten. Das Portal zeichnet sich durch eine benutzerfreundliche Oberflache aus, die speziell auf die Wunsche der Nutzer in der Schweiz angepasst ist.

    Wenn man unterschiedliche spinmama erfahrungen im Internet recherchiert, fallt auf, dass hauptsachlich die Fulle der prasentierten Spiele positiv hervorgehoben wird. Das casino spinmama bietet eine Palette an Titeln, die gleicherma?en Anfanger sowie erfahrene Spieler abholt. Etliche Nutzer posten in ihren spinmama casino erfahrungen positiv uber den zugigen Registrierungsprozess bei spinmama ch. Es ist wichtig, bei der Wahl eines Portals stets auf Seriositat und Transparenz zu setzen, weswegen unabhangige spinmama meinungen eine wertvolle Orientierungshilfe fur potenzielle Neukunden darstellen konnen.

    Wer spinmama schweiz nutzt, profitiert von einer Anlaufstelle, die sich durch ein leichtes Design auszeichnet. Die Registrierung uber spinmama-anmeldung.ch ist reibungslos konzipiert, sodass der Spielspa? bei spinmama online unverzuglich starten kann. Ob man nun nach traditionellen Slots oder neuen Live-Tischen sucht, spin mama halt bereit ein breites Portfolio. Auch unter den Begriffen spin mama casino oder einfach mama spin entdecken Nutzer in Foren und sozialen Netzwerken nutzliche Tipps und Tricks.

    Abschlie?end lasst sich sagen, dass spin mama ch eine interessante Option fur Spieler bildet, die Augenmerk auf eine solide Auswahl und eine einfache Handhabung legen. Die steigende Prasenz von spinmama zeigt, dass die Plattform ein zentraler Bestandteil der digitalen Unterhaltung geworden ist. Im Vorfeld einer Registrierung ist es immer ratsam, einen Moment auf die neuen spinmama casino Erfahrungen zu werfen, um sich ein individuelles Bild uber die Integritat und die gebotenen Boni zu machen. Besuchen Sie bei Interesse die Hauptseite und entdecken Sie selbst, warum das casino spinmama bei vielen Spielern so beliebt ist.

  5. cricketroad-roapse

    Within the swiftly transforming domain of digital entertainment, the cricket road casino portal has appeared as a favored hub for players seeking for a combination of athletic excitement and vintage betting joys [url=https://cricketroad-casino-1.onrender.com]real cricket road game[/url] . If you are looking for an captivating journey, the cricket road game offers a distinctive layout that transports the energy of the pitch directly to your display. Many users feel drawn to the cricket road game online because it combines planning with the rapid play that fans of the sport crave.

    Among the highly asked inquiries revolves on the cricket road game money aspect. Users are frequently keen to comprehend how to participate with the system protected and productively. To commence, you simply have to finalize the cricket road login procedure via the genuine portal. Once entering, you will find that the cricket road online game is built with player satisfaction in sight, ensuring fluid browsing and quick play over multiple gadgets. It is crucial for players to find for the cricket road game original version to ensure they are gaming on a secure and legitimate location rather than a fake clone.

    Regardless of if you are a seasoned user or a newcomer discovering the cricketroad network, the service offers a variety of choices to challenge your fortune. By employing the official cricket road game login, you acquire access to a realm of engaging traits that have transformed this platform a point of talk amongst buffs. While using with any real cricket road game, always remember to gamble cautiously and acquaint yourself with the platform guidelines. The cricket road casino continues to grow its player base by offering regular improvements and reliable operation. If you are hunting for a reliable approach to enjoy your best-loved athletic styles in a online setting, heading to the official site is the ideal starting action. Constantly prioritize security by verifying you are utilizing the exact cricket road login data on the authentic portal to protect your profile and maximize your total joy of the play.

  6. Die Sicherheit Ihrer privaten Informationen genie?t bei der Nutzung unserer Internetprasenz allerhochsten Stellenwert [url=https://spino-gambinospiel.de/datenschutzrichtlinie]spinogambino[/url] . Wenn Sie die Seite spino gambino besuchen, streben wir danach, Ihnen ein sicheres und offenes Spielerlebnis bieten. In unserer ausfuhrlichen Datenschutzrichtlinie erlautern wir detailliert dar, welche Informationen wir erheben, warum wir dies tun und wie wir Ihre Privatsphare bei spinogambino konsequent wahren. Unsere Vorgehensweise erfolgt dabei durchgehend den aktuellen rechtlichen Vorgaben der DSGVO, um sicherzustellen, dass Ihre personlichen Datensatze bei spino gambino zu jedem Zeitpunkt in sicheren Gefilden verbleiben.

    In der Regel erfolgt bei einem Zugriff von spinogambino nur jene Daten erhoben, die fur den reibungslosen Betrieb der Internetseite sowie fur die Leistungserbringung unserer Angebote dringend notwendig sind. Dazu gehoren etwa technische Informationen wie Ihre Netzwerkkennung oder Browsertyp-Einstellungen, die dazu helfen, die Zuverlassigkeit unseres Systems zu gewahrleisten. Wenn Sie sich auf unserer Plattform anmelden, erheben wir daruber hinaus die notwendigen Nutzerdaten, um Ihr Account bei spino gambino gesetzeskonform zu verwalten und den Jugendschutzstandard zu sichern.

    Wir bei spino gambino achten penibel darauf, dass keinerlei personliche Informationen ohne eine explizite gesetzliche Basis an externe Partner ubermittelt werden. Unsere Schutzvorkehrungen umfassen innovative Verschlusselungsverfahren, die unbefugte Zugriffe auf Ihre Informationen verhindern. Innerhalb der Datenschutzerklarung von spinogambino finden Sie auch detaillierte Informationen uber Ihre Datenschutzrechte. Dazu gehort unter anderem das Recht auf Dateneinsicht uber Ihre bei uns archivierten Informationen, das Recht auf Berichtigung sowie das Recht auf Datenloschung, wenn keine gesetzlichen Archivierungsregeln entgegenstehen.

    Wenn Sie Ruckfragen zum Umgang mit Ihren Daten bei spino gambino besitzen oder Ihre Rechte geltend machen wollen, ist fur Sie da unser Service-Team jederzeit zur Seite. Wir bei spinogambino verpflichten uns dazu, Ihre Datensphare zu schutzen und bestandig in den Schutz Ihrer Kundendaten zu anlegen. Verlasslichkeit ist die Fundament unserer Zusammenarbeit, und wir laden Sie herzlich ein, sich beim Durchsicht unserer kompletten Regelungen auf der dazugehorigen Seite ein umfassendes Bild von unserem verantwortungsvollen Umgang mit Ihren privaten Daten zu bilden.

  7. В этой статье рассматриваются различные аспекты избавления от зависимости, включая физические и психологические методы. Мы обсудим поддержку, мотивацию и стратегии, которые помогут в процессе выздоровления. Читатели узнают, как преодолеть трудности и двигаться к новой жизни без зависимости.
    Детали по клику – [url=https://cvetnik.me/pages/narkologicheskaya-klinika-anonimno-spb/]анонимная скорая помощь[/url]

  8. Finding the best promotional offers in the world of internet casinos can be a significant advantage for your experience [url=https://spinmama-loginbonus.com/bonus]spinmama bonus code[/url] . If you are seeking the newest promos, checking out spinmama-loginbonus.com/bonus is a clever first step. This resource is created to assist players boost their gameplay by providing easy access to the most sought-after rewards, including the highly popular spinmama bonus. Whether you are a newcomer or a seasoned player, understanding how to leverage these promotions is key to maximizing your time at the casino.

    One of the most appealing options for new users is the spinmama casino no deposit bonus. This kind of offer allows you to explore the collection of games without having to risk your own funds immediately. To claim these rewards, players frequently need to search for a valid spinmama bonus code. Using the correct spinmama code bonus ensures that your balance is credited correctly and that you can begin playing with bonus funds. It is highly important to check for the newest spinmama no deposit bonus codes, as these are refreshed often to provide fresh value to the players.

    Navigating the site to find the proper spin mama bonus is straightforward. By regularly visiting the dedicated bonus page, you stay informed about the most recent spin mama bonus code offers that are currently active. Pros know that having a trusted location for these spin mama bonus codes can significantly prolong their gaming sessions and boost their odds of winning. Remember that each promotion may come with its own set of terms and conditions, so it is crucial to read them before activation.

    Ultimately, getting a spinmama no deposit bonus is a great way to enhance your play experience. By keeping your eyes on the site for the newest updates and making sure you have the right credentials ready, you can experience all the fun that the site has to provide. Make sure to visit regularly to always catch a rewarding opportunity to increase your bankroll and enjoy your favorite games even more.

  9. betandplay-Baipsy

    Betandplay Gaming Hub Canada’s has emerged as a beloved virtual betting platform for local players looking for a effortless and lucrative experience [url=https://betandplay-casino-41.igageyurupa04.workers.dev]Betandplay Casino[/url] .

    As one of the top players in the digital gambling industry, Bet And Play delivers a extensive range of activities, attractive rewards, and a user-friendly interface. Whether you’re a experienced player or a first-timer to virtual gambling, Bet And Play forges an captivating setting where fun meets opportunity.

    One of the standout features of Betandplay Casino is its expansive selection, which covers both timeless and modern slots, roulette-style games, and real-time dealer choices. Enthusiasts can relish creations from top-tier providers like Net Entertainment Group, Microgaming, and Evolution Group, guaranteeing high-caliber entertainment and fair probabilities. The platform’s feedback frequently commends its diverse choice, positioning it a top-tier choice for those pursuing range in their entertainment journey.

    For local players, Bet And Play Casino Canada shines for its convenience and security. The website is designed with a flexible layout, facilitating visitors to enjoy their beloved activities anywhere. Furthermore, Betandplay commitments to a shielded and trustworthy setting with state-of-the-art security solutions, shielding gamers’ private and monetary data. This focus to protection is a key element in why many gamers choose Betandplay instead of other digital betting sites.

    Another reason why Bet And Play has secured traction is its compelling initial rewards and continuous promotions. First-time players can experience appealing cashback offers, and free spins, while returning players profit from special offers and unique bonuses. These incentives above all enhance the gaming adventure but also provide enthusiasts with more avenues to achieve success.

    When evaluating assessments of Bet And Play, it’s clear that the site excels in both gameplay and customer support. The site delivers continuous help through live chat, digital correspondence, and voice support, guaranteeing that all concerns are managed quickly. This level of service, merged with the platform’s honesty, and justice in gaming, enhances to a positive feedback.

    In conclusion, Betandplay Casino Canada is a top-tier alternative for digital gambling enthusiasts. With its extensive catalogue, safe space, and generous bonuses, it’s expected that Betandplay persists to deserve praise in feedback. Whether you’re seeking exciting slots, strategic card games, or interactive dealer action, Bet And Play delivers a balanced adventure that serves various likes. For those pursuing a dependable and fun-filled digital betting platform, Bet And Play is definitely justified considering.

  10. cricketroad-edurry

    Inside the swiftly changing realm of digital amusement, the interest in internet betting platforms has attained fresh heights [url=https://cricketroad-casino-2.kosunepaguh940.workers.dev]cricket road online game[/url] . Among the trending portals gaining attention in the nation is Cricket Road. This site mixes the thrill of sport-centric stimulation with relaxed betting functions, forming a unique environment for enthusiasts. If you are searching to explore the cricket road casino experience, it is vital to understand how to handle the platform securely and efficiently.

    The cricket road game has grown a popular search for those who relish fast-paced dynamic encounters. Many players are inquisitive regarding how to partake in the cricket road game online and whether they can interact with the cricket road game money features mindfully. To get started, participants generally have to finish the cricket road login method. After you possess your cricket road game login data, you get access to a diverse of elements that render the site unique.

    Finding the cricket road game original edition is crucial for a fluid and secure play period. Since there are numerous fakes online, identifying the genuine cricketroad platform ensures that your sensitive data and experience stay defended. Players frequently look for a real cricket road game to ensure they are interacting with a valid portal. Whether you are a relaxed user or somebody keen on the mechanics of the cricket road online game, keeping account safety via a correct cricket road login is the initial move toward a pleasant session.

    Prior to entering the universe of the cricket road casino, always wager mindfully and be aware of your state regulations concerning online play. The landscape of the cricket road online game is vast, offering amusement that reflects the spirit of the game. By choosing the cricket road game original, you are selecting a polished player journey. Ensure you maintain your login details secret and relish the thrill of the play as you explore all this site has to give to its growing local following.

댓글 달기

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