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

  1. spinmama-Inwanda

    Welcome to the specialized information page for Spinmama, a site designed to provide players with a smooth and profitable gaming experience [url=https://spinmama-loginbonus.org/about-us]spinmama[/url] . At Spinmama, our goal is to redefine how enthusiasts engage in their preferred online entertainment by prioritizing honesty, security, and outstanding user benefits. We realize that the digital gaming landscape is expansive, which is why we have created a site that prioritizes ease of use and reliable player rewards.

    When you choose Spin Mama, you are choosing a player-centric space where your preferences matter. Our staff strives constantly to ensure that every user feels supported, whether you are here to explore new promotional opportunities or seeking clarity on how to optimize your account rewards. We believe that gaming should be an fun pastime, and by offering a clear and dependable interface, we allow our users to focus entirely on the excitement of their chosen games.

    The fundamental principle driving Spinmama is straightforward: provide the top-tier service through honesty and modernity. We are constantly monitoring market shifts to verify that the content we offer remains relevant and valuable to our users. From the second you land on our site, you will notice that Spin Mama is structured to lead you effortlessly toward the details you need. We value the trust our users give us, and we are committed to upholding the highest standards of safety and fair play policies.

    If you have questions about how our system works or are curious about the special rewards available, our about us page is only the start. We encourage you to check out the tools of Spinmama and see firsthand why we have become a top choice for players who value quality and consistency. We are committed to your happiness and look forward to being your trusted partner in your gaming adventure. Thank you for choosing Spin Mama as your go-to resource for premium online entertainment and rewards.

  2. Should you are hunting for a exhilarating fresh approach to enhance your web-based pastime, look no further than the latest phenomenon dominating the gambling sphere by force [url=https://drop-the-boss-uk.todfakeelingdqm97.workers.dev]drop the boss stake[/url] . Drop the boss constitutes a energetic experience that blends rapid action with the likelihood for profitable pay-outs. Abundant users all over the region are joining the drop the boss uk platform to uncover what the buzz is centered on. This interesting release has rapidly grown into a top selection, granting a needed pause from traditional betting structures.

    The drop the boss game is crafted with a modern design that keeps the energy active, promising that each playtime is packed with intensity. Distinct from a usual drop the boss slot, this unique offering emphasizes the responsive element, causing it look more like a calculated puzzle than a static event. When you enjoy the drop the boss casino game, you are wrapped up in a environment where rhythm and gut-feeling are key to winning.

    For individuals versed in the logic of a drop the boss betting game, the aim is simple yet fascinating. Members must calculate the perfect moment to act, weighing risk and gain to increase their projected earnings. The popularity of the drop the boss online following continues to thrive as additional members exchange their outcomes and methods. Regardless of if you are altering your drop the boss stake to suit your wallet or proving your odds with a lower drop the boss game stake, the adaptability provided by this website is a huge draw.

    In the event you are scouting for droptheboss data, you will find that this medium offers a smooth experience on all hardware. The drop the boss casino environment is safe and simple, catering to equally casual players and people wanting a little more rush. For what reason accept boring substitutes when you can experience the hyped responsive game in the business? Sign up for the game now and determine if you hold what it takes to triumph in this singular betting test.

  3. bombastic-acustic

    Gaming-Plattform erfahren in den letzten Perioden einen Anstieg an Beliebtheit, vor allem unter deutschen und europäischen Nutzern [url=https://bombastic-casino-20.web.app]Bombastic Casino Deutschland[/url] .

    Doch bevor man man sich für eine Registrierung entscheidet, ist ratsam es sich, sich über die verschiedenen Bereiche des Online-Gaming zu informieren, vor allem wenn man nach ausführlichen Urteilen fragt. In diesem speziellen Bericht werden wir uns mit den relevanten Fragen rund um das Spielanbieter erörtern, darunter vor allem Erfahrungsberichte und Erfahrungen sowie die aktuelle Website.

    Analysen des Online-Casinos sind oft uneinheitlich, da die Seite sowohl vorteilhafte als auch negative Aspekte zeigt. Viele Gamer schätzen besonders die große Palette an Spielen, die auf der Website erhältlich sind. Dazu gehören klassische Automaten sowie Tischgaming wie Roulette-Varianten und 21 sowie Live-Casino-Optionen. Die Casino-Angebote ist umfassend und erledigt sowohl Neulinge als auch expertisierte Gamer. Besonders die Live-Dealer-Runden werden oft als herausragend bezeichnet, da sie ein echtes Gaming-Erlebnis bieten.

    Ein weiterer zentraler Punkt sind die Feedback des Gaming-Portals internationaler Spieler. Viele Nutzer beschreiben, von einer benutzerfreundlichen Benutzeroberfläche und schnellen Auszahlungen, nachdem die Mindesteinzahlung erfüllt wird. Dennoch gibt es auch Unzufriedene, die sich über unzureichend schnelle Support-Antworten oder unklare Bonusregeln protestieren. Wer vor der Teilnahme eine Feedback zum Online-Casino liest, sollte daher insbesondere auf aktuelle Eindrücke verlassen.

    Die vertrauenswürdige Anwendung von Bombastic Casino ist der beste Plattform, um sich über die aktuellen Optionen zu informieren. Hier findet man nicht nur eine Darstellung über die verfügbaren Games, sondern auch Informationen zu den Einzahlungs- Variationen. Häufig genutzte Wahlmöglichkeiten sind Kreditkarten sowie E-Wallets wie Skrill oder PayPal und auch klassische Geldtransferwege wie Lastschrift. Entscheidend ist, dass Spieler die Nutzungsbedingungen ausführlich untersuchen, um versteckte Regeln bei Gewinnangeboten zu ausschließen.

    Für Gamer, die nach einer Analyse des Gaming-Portals verlangen, ist es empfehlenswert, mehrere Plattformen zu untersuchen. Einige Bewertungsportale bieten gründliche Berichte zu Geldtransferlimits, Anreizregeln und der Fairness der Unterhaltungsoptionen. Ganz besonders wichtig ist dabei die Genehmigung des Online-Anbieters, da nur genehmigte Anbieter in Deutschland fair sowie seriöse erleben erlaubt sind. Das Gaming-Portal ist in einigen innerhalb mehreren westlichen Ländern zulässig, aber Nutzer sollten sich über die ausführlichen rechtlichen Bestimmungen hinterziehen, vor einer sie sich registrieren.

    Abschluss: Das Gaming-Portal kann eine lohnende Wahl für Kunden sein, die eine breite Repertoire an Games und digitale Dealer-Spiele wünschen. Allerdings sollten Nutzer vor Registrierung die Analysen und Rückmeldungen verschiedener Spieler sorgfältig analysieren. Wer auf Fairness und Seriosität Wert legt, sollte sich über die Zulassung und die aktuellen Bonusbedingungen informieren. Eine gründliche Analyse des Gaming-Portals unterstützt dabei, überlegte Wahlmöglichkeiten zu fassen und ein erfolgreiches Casino-Erlebnis zu garantieren.

  4. spinmamareviewbonus-Hebmafe

    While searching for the finest web-based play encounters, discovering a reliable manual is vital [url=https://spinmamareviewbonus.com/about-us]spin mama[/url] . This is precisely why the team behind spinmama was founded. Our platform is committed to offering players with detailed, candid, and open data concerning the newest betting promotions, incentives, and game evaluations. At spin mama, our main objective is to simplify the intricate sphere of online betting so that you can make educated selections ahead of you even wager.

    We understand that the virtual gaming environment can feel intimidating. With many firms fighting for your focus, it is usually tough to differentiate among high-quality platforms and brands that do not attain the mark. Our expert team allocates many time researching, auditing, and assessing multiple sites to ensure we only present you the most reputable alternatives. We value security, title variety, fair action, and player satisfaction over anything else. Once you check our company page, you will observe that our core beliefs revolve around integrity and customer well-being. We are hardly simply another critique platform; we are a social utility designed to assist you obtain the maximum benefit from your playing rounds.

    Transparency is at the center of anything we execute at spinmama. We contend that gamers earn clear explanations about bonus conditions, betting obligations, and cashout methods. By offering objective reports, we strive to build confidence and enduring bonds with our members. Whether you are a newcomer simply beginning to explore web games or an veteran aficionado searching for the latest bonus codes, spin mama offers the knowledge you demand to thrive. Our commitment to excellence indicates we constantly refresh our content to match the always shifting betting sector. We welcome you to investigate our tools and find how our service can enhance your complete experience. Thank you for choosing us as your trusted ally in navigating the exciting world of digital casinos. We are ready to verify that your experience is both entertaining and profitable.

  5. vegashero-Adethy

    El resguardo y la claridad son pilares basicos para cada usuario que optar por darse de alta en una casa de apuestas digitales [url=https://vegashero-bet.es/politica-de-privacidad]vegas hero[/url] . En dicho contexto, la politica de privacidad de vegas hero supone un texto vital que la totalidad de los jugadores deben leer antes de comenzar su trayectoria. Consultando la direccion especifica dedicada a este area en el portal vegashero-bet.es, los jugadores pueden encontrar un detalle minuciosa acerca de como se almacenan, procesan y almacenan sus datos personales. El deber de vegas hero vinculado a la seguridad de la privacidad del cliente se refleja en el seguimiento estricto de las normativas vigentes referentes a proteccion de datos. Si te registras en vegashero, la casa implementa protocolos de seguridad modernos con el objetivo de avalar que toda la informacion enviada se permanezca secreta y protegida ante accesos no autorizados. Dicha accion contempla desde datos basicos de comunicacion hasta datos economicos necesaria para efectuar ingresos y cobros con plena tranquilidad. Aparte de resguardar los datos, la politica de privacidad de vegashero detalla de forma precisa la manera en que se utilizan las herramientas de rastreo para optimizar la facilidad de navegacion y ajustar la interaccion a traves del portal. Resulta fundamental comprender que este registro busca unicamente optimizar el funcionamiento de los entretenimientos y brindar un espacio seguro. Los clientes tienen derechos fundamentales en relacion a su privacidad, tales como el visionado, la correccion o la borrado de la data, conforme se especifica en dicho seccion oficial de vegas hero. Leer este documento no solo constituye una cuestion de cumplimiento legal, sino tambien una manera de conseguir tranquilidad mientras aprovechas tus apuestas preferidas. Concluyendo, la claridad de vegashero en su politica de privacidad ratifica su estatus como una opcion segura a traves del mercado del juego online en Espana. Priorizando la proteccion de datos, vegas hero prueba que el cliente es el centro de su filosofia, proporcionando un escenario en donde la pasion y la proteccion estan siempre de la mano. Te recomendamos consultar esta informacion sin intermediarios en su sitio oficial para descubrir la totalidad de los detalles referentes al uso adecuado de tus datos personales. [url=http://192.249.121.131/%7Erosedoll/forum1/index.php?topic=2095.new#new]Analisis sobre la seguridad de la informacion en Vegas Hero: lo que debes conocer[/url] [url=http://119dongwon.com/bbs/board.php?bo_table=sub0501&wr_id=33018]Guia sobre la polit[/url] fa77327

  6. Он не ел, не спал, не разговаривал. Врач приехал быстро. капельница от запоя — Смог выпить воды, потом поел. Всё анонимно, без учёта. Лучше сразу вызвать специалиста. Нарколог на дом реально помогает. помощь вывода запоя [url=https://narkolog.vyvod-iz-zapoya-na-domu-samara-omk.ru]https://narkolog.vyvod-iz-zapoya-na-domu-samara-omk.ru[/url] Там все контакты и цены для Самары. Это надёжный способ. Нарколог на дом — быстро, анонимно, эффективно!

  7. Se sei alla ricerca di un’esperienza di gioco coinvolgente e sicura nel mondo del gaming digitale, thorfortune casino rappresenta una delle opzioni piu interessanti attualmente disponibili sul web [url=https://thor-fortune-94.onrender.com]thor fortune[/url] . Questo portale e riuscito a conquistare una vasta fetta di pubblico grazie a un assortimento di titoli estremamente variegato e a una piattaforma ottimizzata per garantire la massima fluidita su ogni dispositivo. Scegliere thor fortune significa affidarsi a un ambiente dove l’intrattenimento incontra standard di alta qualita, offrendo sessioni di gioco dinamiche.

    Per iniziare la tua avventura su thor fortune casino, il primo passo fondamentale e completare la procedura di thorfortune login. L’accesso alla piattaforma e stato progettato per essere immediato, permettendo a ogni utente di passare in pochi istanti dall’autenticazione alla selezione dei propri giochi preferiti. Una volta effettuato il thorfortune accesso casino, avrai a disposizione un’interfaccia user-friendly che ti guidera tra slot machine all’avanguardia, giochi da tavolo classici e opzioni con croupier dal vivo, tutte pensate per massimizzare il divertimento.

    La sicurezza e un pilastro centrale dell’offerta di thor fortune casino. Gli utenti che decidono di creare il proprio thor fortune account login possono stare tranquilli sapendo di operare in un contesto protetto da sistemi di sicurezza all’avanguardia. La trasparenza e l’affidabilita rendono thorfortune casino online una meta privilegiata per chi cerca serieta nel settore del gioco d’azzardo digitale. Inoltre, il supporto costante garantisce che ogni dubbio relativo al proprio thorfortune casino profilo venga risolto con efficienza.

    Se desideri esplorare nuove possibilita, questa piattaforma offre tutto cio di cui hai bisogno in un unico posto. Scopri oggi stesso l’ampia gamma di promozioni e la varieta del catalogo che thor fortune mette a disposizione dei suoi iscritti. Registrarsi e iniziare a giocare non e mai stato cosi semplice, trasformando ogni sessione in un’occasione speciale. Entra nel mondo di thor fortune e lasciati conquistare da un’offerta di gioco di alto livello.

  8. Portable gaming has flourished with the emergence of the spin mama casino app, providing players with a seamless way to enjoy their favorite slots and table games on the go [url=https://spinmama-loginbonus.org/app]spin mama casino app[/url] . For players seeking a premium pocket gaming experience, the mobile software provides a sleek interface, fast loading times, and a solid selection of titles that are ideal for your device. Whether you are at home or traveling, the ease of having your gaming collection available at all times is unrivaled.

    To get started, the process for the Spin Mama installation is easy and user friendly. By accessing the official platform, you can initiate the application setup in just a few clicks. The application is designed to be compact, guaranteeing that it does not consume too much space on your device while preserving high performance. Once set up, the mama spin app gives quick entry to your account, allowing you to manage funds, cashouts, and promotional rewards with complete security.

    Many players choose the mobile version because it replicates the PC experience without sacrificing functionality. The creators have prioritized easy browsing, making it simple for both beginners and seasoned pros to find games fast. Moreover, using the mobile platform frequently grants access to special bonuses that are not found elsewhere, giving you more value for every session.

    Security remains a major focus for those utilizing the application. The spin mama app utilizes high-level security protocols to secure your monetary transfers and private information. This dedication to user protection makes the spin mama download a trusted choice for phone players everywhere. If you want to elevate your gaming routine, installing the application today is the ideal method to experience a reliable, top-notch gaming session anytime you desire. Embrace the next generation of mobile play by installing the program on your smartphone or handheld and become part of the growing community of players who rely on this platform for their daily entertainment.

  9. droptheboss-Wargomi

    Should you find yourself hunting for an exhilarating novel approach to enliven your online gaming rounds, you might already heard the hype about the drop the boss game [url=https://droptheboss-uk.vercel.app]drop the boss stake[/url] . Representing a rising star in the online leisure industry, the drop the boss casino adventure presents a rapid atmosphere designed for players who appreciate risky excitement. Available using the site called droptheboss, this title has quickly turned into a preferred for people seeking a thing unique from the typical catalogue of classic titles.

    The drop the boss slot systems deliver a original visual and interactive journey that distinguishes it from the average drop the boss online playtime. Players are always looking for the top drop the boss uk tactic, regularly concentrating on how to manage their drop the boss stake to increase their game length. Comprehending the volatility of the drop the boss casino game is essential, as the game requires a sharp eye and a fast reaction to achieve potential payouts. Whenever you interact with the drop the boss betting challenge, you are entering a contemporary interface that emphasises velocity and integrity.

    Regarding people intrigued regarding the drop the boss game stake conditions, the site is constructed to fit a selection of tastes, ensuring it is easy for gamers to locate a accessible starting point. Regardless of if you are a leisurely gamer or someone who takes their drop the boss betting activity sessions earnestly, the site provides all the required tools to track your progress. As the renown of this release expands throughout the United Kingdom, increased users are heading to the portal to witness what all the fuss is regarding. Through prioritising smart tactics and strict management of your drop the boss stake, you can elevate your duration on the platform. In case you have been searching for a original, captivating test that combines contemporary aesthetics with competitive excitement, exploring the rules of this release is a great place to launch your subsequent playtime.

  10. bombastic-loale

    Online-Casino-Plattform ist eine der beliebtesten Adressen für virtuelle Spiele, die in den letzten Zeiträumen zunehmend Fokus auf sich erregt [url=https://bombastic-casino-21.onrender.com]Bombasticcasino[/url] .

    Besonders in Europa suchen viele Gamer nach seriösen Anbietern, die diverse Möglichkeiten an Glücksspielvarianten und attraktive Bonusangebote bieten. Doch was macht die Spielseite aus, und wie positioniert es sich im Kontext zu anderen Glücksspielseiten? Diese Analyse gibt einen ausführlichen Rundumschau und hilft dir, überlegte Wahlmöglichkeiten zu umsetzen.

    Das Casino hat sich als eine der bekanntesten Lösungen für digitale Wetten durchgesetzt, wobei es in Nutzerfeedback als auch auf der offiziellen Website auf sich aufmerksam macht. Viele Spieler interessieren sich für Expertenanalysen, um die Glaubwürdigkeit und Unterhaltungswert zu prüfen. Besonders in Europa, wo strenge Zulassungsbedingungen gelten, ist die Auswahl eines vertrauenswürdigen Anbieters wichtig. Das bundesweite Casino bietet eine lokalisierte Plattform der Seite, die auf die Erwartungen deutscher Spieler optimiert ist.

    Die Mehrheiten mit dem Casino sind vielfältig, aber überwiegend erfolgreich. Besucher schätzen die umfassenden Möglichkeiten an Unterhaltungsformaten, darunter klassische Tischspiele wie Roulette und Blackjack sowie moderne Slot-Maschinen mit spannenden Themen. Besonders die Sonderleistungen, wie das Willkommensangebot, oder die regelmäßigen Turniere, werden häufig gelobt. Trotzdem sollten Nutzer auch auf die Vertragsdetails beachten, da einige Gewinnvoraussetzungen komplexe Spielvorgaben mit sich bringen.

    Wer sich für Nutzerbewertung informieren möchte, findet viele unabhängige Bewertungen, die sowohl Vor- und Nachteile analysieren. Ein kritischer Gesichtspunkt ist die Schutzmaßnahmen: Das Glücksspielportal arbeitet mit fortschrittlicher Sicherheitstechnik, um die Nutzerinformationen zu absichern. Zudem ist es wichtig, die seriöse Homepage des Glücksspielportals zu nutzen, um Imitationen zu vermeiden.

    Abschluss: Die Plattform ist eine lohnende Option für Nutzer, die Gewicht auf diverse Glücksspielvarianten und interessante Rabatte legen. Dennoch sollten Neukunden vor der Registrierung die Nutzermeinungen genau prüfen und die Vertragsdetails gründlich prüfen. Wer auf der Suche nach einem seriösen Online-Casino ist, das bundesweit verfügbar ist, findet hier eine überzeugende Lösung – trotzdem mit den üblichen Risiken, die mit virtuellem Spielen begleitet werden.

댓글 달기

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