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”의 71,393개의 댓글

  1. spinogambino-entisee

    Si buscas una vivencia de apuestas unica, spinogambino se ha establecido como una de las opciones mas populares en el panorama actual [url=https://spinogambino-bet.com.es]spino gambino[/url] . Al visitar la plataforma de spinogambino casino, los usuarios encuentran un entorno digital creado para ofrecer maxima diversion y proteccion. Este sitio se ha convertido rapidamente como un punto de referencia para quienes aman de las apuestas de primer nivel, ofreciendo una interfaz intuitiva que agiliza el acceso a una amplia gama de opciones de entretenimiento.

    Para aquellos jugadores en territorio nacional, el spinogambino casino espana ofrece una oferta adaptada a las necesidades de los jugadores, garantizando que cada usuario encuentre exactamente lo que busca. La flexibilidad de este casino permite disfrutar tanto de la seccion de spinogambino betting, perfecta para los aficionados a los deportes, como de una gran coleccion de tragamonedas y juegos clasicos. Si te cuestionas como iniciarte, el spino gambino casino permite probar diversas modalidades que se ajustan tanto a principiantes como a jugadores experimentados.

    Una de las bondades mas valoradas es la opcion de probar muchos titulos mediante spinogambino casino gratis, una alternativa excelente para acostumbrarse con las dinamicas antes de apostar dinero real. Al ingresar en spino gambino casino espana, notaras que la transparencia y el compromiso con el juego responsable son pilares fundamentales de la marca. No es de extranar que cada vez mas jugadores prefieran spinogambino casino online para disfrutar sus momentos libres, gracias a su seleccion de juegos renovada y constante innovacion tecnologica.

    En resumen, spino gambino destaca por su excelencia operativa y su capacidad para crear una atmosfera emocionante desde cualquier dispositivo. Ya sea que desees la adrenalina de las apuestas deportivas o la diversion de las mejores slots del mercado, casino spinogambino tiene todo lo necesario para transformarse en tu sitio predilecto. Visita sus ofertas hoy mismo y comprueba por que este portal esta siendo lider en el sector del casino online, uniendo diversion de alta categoria con una atencion al usuario excelente.

  2. Σε περίπτωση που αναρωτιέστε τι ειναι το plinko, βρείτε τον εαυτό σας στο ιδανικό σημείο αναφοράς για να ανακαλύψετε τα πάντα για αυτό το συναρπαστικό παιχνίδι που έχει κατακτήσει τον κόσμο των online τυχερών παιχνιδιών [url=https://plinko-casino-43.onrender.com]plinko[/url] . Το plinko game αποτελεί μια μοντέρνα ηλεκτρονική μορφή ενός παραδοσιακού παιχνιδιού που στηρίζεται στην τύχη και τη διασκέδαση. Στην πλατφόρμα plinko-casino-43.onrender.com, οι θαμώνες απολαμβάνουν την προοπτική να βιώσουν μια μοναδική εμπειρία μέσα από ένα λιτό αλλά ελκυστικό gameplay.

    Ο κεντρικός μηχανισμός είναι ιδιαίτερα σαφής. Μια plinko ball κατηφορίζει από την κορυφής μιας διάταξης με εμπόδια και διατρέχει μια πορεία πλούσια σε εμπόδια μέχρι να καταλήξει σε μια από τις υποδοχές στο βάσης επίπεδο. Μία υποδοχή αντιστοιχεί σε έναν συγκεκριμένο πολλαπλασιαστή, ορίζοντας το συνολικό κέρδος. Το plinko play προσφέρει στους επισκέπτες την ένταση της προσμονής, όσο παρακολουθούν τις plinko balls να αναπηδούν με απρόβλεπτο τρόπο, μετατρέποντας κάθε παιχνίδι μοναδικό.

    Πολλοί νέοι παίκτες αναρωτιούνται what is plinko και αν αφορά για μια ασφαλή απόφαση. Η απόκριση στο πρόβλημα is plinko legit εδράζεται πάντα από την επιλογή της σωστής πλατφόρμας, όπως το plinko casino που προωθούμε στην ιστοσελίδα, το οποίο προσφέρει έμφαση στη διαφάνεια και την εμπιστοσύνη. Διαβάζοντας αρκετές plinko κριτικες, θα διαπιστώσετε ότι οι παίκτες αξιολογούν ιδιαίτερα την ευκολία του μηχανισμού και τη προοπτική γρήγορων αποτελεσμάτων.

    Είτε είστε έμπειρος παίκτης ή νέος, το plinko casino game παραμένει κατασκευασμένο για να προσφέρει αναψυχή σε κάθε επίπεδο. Η ενέργεια της κίνησης που διανύει η κάθε plinko ball δημιουργεί μια συναρπαστική εμπειρία που ξεχωρίζει από τα παραδοσιακά φρουτάκια. Αν ερευνάτε για έναν μέσο να δοκιμάσετε την μοίρα σας σε ένα περιβάλλον που συνδυάζει την εικόνα με τη τακτική, το plinko είναι αναμφίβολα μια λύση που αξίζει την ματιά σας. Δείτε την site μας και δείτε γιατί αυτό το game συνιστά την δημοφιλέστερη μόδα στο νέο online gaming, χαρίζοντας ψυχαγωγία με εγκράτεια και εμπιστοσύνη σε οποιαδήποτε προσπάθεια.

  3. Этот обзор посвящен успешным стратегиям избавления от зависимости, включая реальные примеры и советы. Мы разоблачим мифы и предоставим читателям достоверную информацию о различных подходах. Получите опыт многообразия методов и найдите подходящий способ для себя!
    Дополнительно читайте здесь – [url=https://flatrenthq.ru/pages/chastnyj-narkologicheskij-centr-ekaterinburg/]нео клиник[/url]

  4. В этой статье мы говорим о важности поддержки в процессе выздоровления. Рассматриваются семьи, группы поддержки, специалисты и онлайн-ресурсы, которые могут сыграть решающую роль в избавлении от зависимости.
    Ознакомьтесь поближе – [url=https://pobetony.expert/zdorove/vyvod-iz-zapoya-2]лечение запойного состояния[/url]

  5. L’honnetete se place au fondement de l’experience utilisateur sur la plateforme SpinoGambino [url=https://spino-gambinocasino.fr/politique-de-cookies]spinogambino[/url] . Afin d’assurer un surf fluide et protegee a tous ses joueurs, l’operateur a mis en place un reglement interne exigeante, visible directement via le lien approprie. Apprehender la facon dont vos renseignements sont manipulees s’avere primordial pour beneficier pleinement des prestations ludiques mis a disposition par ce site web. Lorsque vous naviguez sur l’espace de Spino Gambino, des petits documents appeles cookies sont places sur votre ordinateur. Ces elements techniques n’ont pas seulement pour role a rendre fluide l’entree a votre compte, ils autorisent aussi d’analyser le trafic et de perfectionner le confort de l’interface selon vos preferences de navigation. En validant ces fichiers, vous aidez a accroitre la celerite de chargement des machines et la pertinence des contenus proposes. La charte des fichiers de SpinoGambino detaille precisement les differents types de donnees employees, incluant les fichiers requis au fonctionnement technique de la plateforme, ceux servant a le calcul du trafic, tout comme les fichiers d’adaptation. Il faut souligner que le site Spino Gambino promet de suivre les regles de vie privee en vigueur, vous laissant le controle total sur vos choix. Vous disposez effectivement du droit de gerer, de limiter ou de rejeter l’utilisation de ces cookies quand bon vous semble par l’intermediaire des options de votre outil de surf ou sans attendre au moyen du systeme des options offert sur l’espace. En vous tenant averti sur ces pratiques, vous ameliorez la securite de votre session de jeu. La clarte delivree par la rubrique dediee aux cookies chez SpinoGambino illustre l’intention de l’operateur de batir une relation de confiance solide avec ses utilisateurs. Nous vous conseillons d’examiner frequemment cette partie pour rester au courant des actualisations possibles au sujet du maniement de vos informations de surf. Une gestion reflechie est la premiere etape pour une experience de jeu responsable et plaisante sur la globalite de l’ecosysteme Spino Gambino.

  6. chickenroad-Incurf

    Whenever engaging with web wagering sites, focusing on protection and customer safeguarding is of vital concern [url=https://chickenroad-review.org.uk/responsible-gambling]ChickenRoad[/url] . At Chicken Road, we acknowledge that while wager activity is a favoured type of recreation, it must be approached with care and vigilance. Our dedicated portal at ChickenRoad provides users with a thorough guide to responsible gambling, making certain that bettors have the aids and assets required to sustain a stable and healthy bond with wagering tasks.

    The approach at Chicken Road is founded on the notion that pleasure ought never exist at the detriment of personal well-being. By accessing the responsible gambling section on ChickenRoad, customers can find significant data created to assist them identify the symptoms of addictive play. We provide obvious advice on how to set personal limits, including spending ceilings and time-out periods, which are fundamental for people aiming to regulate their participation efficiently. Strengthening our community with this insight is a core part of our commitment to the UK betting community.

    Furthermore, we maintain that educated players are more secure players. The ChickenRoad interface presents direct links to professional help agencies and self-ban features that can help persons who feel they could be overwhelmed. Our assets are customised to the England region, ensuring that the counsel given is simultaneously pertinent and actionable. If you are a casual player or a person who has concerns about their patterns, the content kept on Chicken Road is intended to foster a protected space for everybody.

    We advise all users to treat betting as a leisure activity instead of a method to earn profit. By consistently reading the responsible gambling principles located on ChickenRoad, you can keep aware about the best practices for safe betting. Remember, the team at Chicken Road is here to uphold a enduring and transparent gaming culture. If you sometimes suspect that your play is getting excessive, do employ the help channels we highlight. Putting your well-being is the most important gamble you will ever make.

  7. В клинику приходят люди с разным стажем зависимости. Один человек обращается после первого выраженного срыва, другой страдает несколько лет и уже проходил лечение. Иногда родственники привезли брата или другого близкого из деревни, поскольку там невозможно получить специализированную помощь по профилю. Нарколог оценивает употребление алкоголя и наркотических веществ, наличие хронических заболеваний, патологическое влечение и способность соблюдать рекомендации.
    Изучить вопрос подробнее – [url=https://narkologicheskaya-klinika-v-krasnoyarske18.ru/]наркологическая клиника лечение алкоголизма в Красноярске[/url]

  8. chickenroad-BOome

    Were the Chicken Road platform genuine? A detailed review on behalf of UK-based gamblers

    While looking among online casinos, plenty of players come across Chicken Road, such a website who asserts presents thrilling wagering adventures [url=https://chickenroad-uk-17.web.app]Is Chicken Road Legit Or Not[/url] . Yet, doubts such as *”Does this Chicken Road site trustworthy?”* including *”Are the so-called Chicken Road a reliable betting platform within United Kingdom?”* stay frequent towards individuals weighing joining.

    Although the Chicken Road platform positions itself like an legitimate casino platform, these exist various points who review in advance of confiding in the app by means of their own resources.

    Firstly, Chicken Road runs as this handheld betting hub, accessible via mobile applications. Despite this level of convenience appears appealing, that’s vital so as to confirm the site’s reliability. Quite a few players wonder *”Are this Chicken Road site such a reliable casino adventure?”* prior installing.

    Unfortunately, these are barely any transparency in relation to the platform’s approval, authorised oversight, or honest playing rules. Reputable British betting platforms demand get accredited through British gambling regulators, maintaining fair play. Without clear confirmation pertaining to this accreditation, apprehensions concerning the platform’s credibility endure.

    A further issue are the shortage of thorough assessments. After looking across *”Is the so-called Chicken Road a verified review?”* plus *”Does this Chicken Road site such a trustworthy wagering hub across England?”*, the bulk of results primarily lead over to promotional copy along with deficit concerning verifiable confirmation. That scarcity regarding unbiased feedback leads to these difficult in order to determine to what extent the so-called Chicken Road were verified.

    Moreover, casino enthusiasts commonly inquire *”Can the so-called Chicken Road verified or not not?”* at the time of assessing incentives as well as refund processes. Quite a few stories highlight slow plus obscure withdrawals, which are this warning sign with regard to most wagering hub. Legitimate British casinos typically offer straightforward guidelines, swift payouts, plus trustworthy financial systems—aspects who are Chicken Road lacks not exhibit.

    Concerning those asking, *”Does Chicken Road genuine across Britain?”*, it’s beneficial emphasising who has Britain features stringent betting regulations in order to defend wagering individuals. Unapproved including ill-managed sites including Chicken Road can lack the ability to obey in keeping with these sorts of requirements, creating a risk of betting fans in danger for dishonest conduct or monetary hardship.

    Ultimately, although this Chicken Road site can look like resemble the user-friendly solution in app-based wagering, this scarcity for evident regulation, official monitoring, plus credible analyses raises critical inquiries about its trustworthiness. Betting fans are advised to treasure reputable including UK-licensed betting platforms while looking for a secure plus just casino journey. Regularly confirm the app’s qualifications prior depositing capital, plus evaluate verified solutions which transparency as well as player security.

  9. icecasino-varty

    Αν αναζητάτε μια μοναδική διασκέδαση στοιχηματισμού ψηφιακά, το ice casino συνιστά σίγουρα έναν από τους κορυφαίους κόμβους για τους παίκτες στην Ελλάδα [url=https://icecasino-6.iviroqawagur42.workers.dev]ice casino κριτικες[/url] . Αυτό το gaming site έχει κερδίσει την εμπιστοσύνη της κοινότητας προσφέροντας μια ευρεία γκάμα από slots, επιτραπέζια παιχνίδια και live sessions με πραγματικούς κρουπιέρηδες. Μελετώντας οποιοδήποτε ice casino review, θα παρατηρήσετε πως τα μέλη αναγνωρίζουν ιδιαίτερα την ασφάλεια της πλατφόρμας και τα δελεαστικά bonus που ανανεώνονται συνεχώς.

    Για τους ανθρώπους που επιθυμούν να ξεκινήσουν το παιχνίδι, η διαδρομή είναι εύκολη και σβέλτη. Το ice casino login σας παρέχει άμεση πρόσβαση σε έναν κόσμο πλούσιο σε επιλογές, παράλληλα το layout παραμένει πλήρως βελτιστοποιημένο τόσο για PC όσο και για tablets. Είναι σημαντικό να επισημάνουμε ότι το casino ice έχει άδεια λειτουργίας που εγγυάται το δίκαιο παιχνίδι και τη διαφύλαξη των στοιχείων σας. Τα μέλη που διαλέγουν το ice casino greece απολαμβάνουν ένα περιβάλλον που αντιλαμβάνεται τις απαιτήσεις του ελληνικού κοινού, παρέχοντας βοήθεια και εύκολες μεθόδους συναλλαγών.

    Μελετώντας τις δημοσιευμένες ice casino κριτικες, θα δείτε ότι η πλειοψηφία των παικτών αισθάνεται απόλυτα ικανοποιημένη από την ταχύτητα διεκπεραίωσης των πληρωμών και το υψηλό επίπεδο των γραφικών. Το ice casino online προσφέρει ένα παιχνίδι που διακρίνεται στην ανταγωνιστική αγορά του gaming. Σε περίπτωση που είστε στους καινούργιους χρήστες, ένα έγκυρο icecasino login θα σας προσφέρει την πόρτα για γενναιόδωρα μπόνους καλωσορίσματος που θα ενισχύσουν το υπόλοιπό σας.

    Με λίγα λόγια, το ice casino ελλαδα συνιστά μια σίγουρη επιλογή για τον κάθε χρήστη που θέλει υψηλά στάνταρ, πληθώρα και σιγουριά. Είτε είστε λάτρεις των παραδοσιακών τίτλων ή θέλετε τις τελευταίες κυκλοφορίες στον χώρο των φρουτακιών, το icecasino φέρει τις δυνατότητες για να σας προσφέρει ατελείωτες ώρες ψυχαγωγίας. Μην ξεχνάτε διαρκώς να παίζετε συνετά, χρησιμοποιώντας τις επιλογές που παρέχει το σύστημα για τον έλεγχο του παιχνιδιού σας, με σκοπό η ενασχόληση να παραμένει σταθερά ένας ευχάριστος τρόπος διεξόδου.

  10. В этой статье рассматриваются способы преодоления зависимости и успешные истории людей, которые справились с этой проблемой. Мы обсудим важность поддержки со стороны близких и профессионалов, а также стратегии, которые могут помочь в процессе выздоровления. Научитесь первоочередным шагам к новой жизни.
    Узнать больше > – [url=https://housemastery.ru/pages/centr-narkologicheskoj-pomoschi-ekaterinburg/]наркологический стационар екатеринбург[/url]

댓글 달기

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