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”의 68,226개의 댓글

  1. spinogambinoapp-vickumn

    When you engage with the many digital entertainment platforms available today, understanding the legal framework governing your user experience is crucial [url=https://spinogambinoapp.net/terms-and-conditions]spinogambino[/url] . The terms of service page on the official website for spinogambino serves as a significant document that details the rules, rights, and responsibilities for every player. By checking the official page, users can view the full scope of the agreement that explains how the service operates and how your personal information is managed.

    One of the main reasons to read these terms is to ensure that you are completely informed of the age limits and regional restrictions associated with the spino gambino platform. Legal transparency is a foundation of responsible gaming, and the document explicitly clarifies the rules regarding account registration, deposit procedures, and withdrawal policies. When you create an account, you are entering into a legal agreement, making it important to read through every section to prevent potential misunderstandings or account limitations later on.

    The information provided within the terms of service also includes key points of copyright, banned activities, and the platform’s liability limits. Whether you are accessing the services on a computer or through a smartphone app, the rules remain the same. Knowing these guidelines helps protect your account safety and ensures that your experience with spinogambino stays enjoyable and adherent to their internal policies.

    If you have inquiries or require clarification about particular sections, the site frequently offers a customer service team. It is highly recommended to check the terms and conditions periodically, as digital platforms often change their policies to reflect new features or changing regulatory environments. By staying informed, you can enjoy a seamless experience on the spino gambino app with confidence. Spending some time to review these documents shows a proactive approach to safe gaming and helps maintain a fair and secure environment for the whole player base.

  2. chicken-langada

    That Feathered Path Demo is a trendy web-based gaming title that has captured substantial focus within the Isle gaming scene [url=https://chicken-road-game-118.vercel.app]Chicken Road Demo Uk[/url] .

    Whether you’re a veteran player or completely to virtual betting, stepping into the Feathered Road Preview can provide an thrilling method to experience the joy of spin-wheels free laying any actual funds.

    This guide provides a comprehensive analysis of what the Chicken Lane Test includes, its reliability, and how you can play it without.

    —

    The Chicken Road Demo enables enthusiasts to try the title’s features, visuals, and features prior committing to live-cash gambling. This is undeniably helpful for those seeking to get themselves with the game’s layout, covering its distinctive reel systems and likely payouts. Many players in the Isle value the opportunity to sample with fresh titles through previews, guaranteeing they match their preferences upfront gambling for real.

    —

    When searching for takeaways on the Feathered Road Test, it’s critical to consider both player experiences and authoritative views. The Chicken Road Preview Gaming Analysis often p praises the game’s captivating design, flawless experience, and the freedom to win fake credits. Positive Chicken Road Preview Reviews consistently note the title’s ease and the pleasure it offers, rendering it a top for occasional and dedicated enthusiasts alike.

    —

    One recurring query among new gamblers is whether the Chicken Road Preview is authentic. The verdict is undoubtedly, provided you access it through a reliable portal. The Chicken Road Preview is built by renowned game publishers, guaranteeing fair gameplay and secure deals. Still, perpetually double-check the source to ward-off frauds or rogue versions.

    —

    Gambling the Feathered Road Demo is easy—quickly head the licensed website and launch gambling the wheels. The Feathered Road Test Game includes a diverse choice of wagering options, allowing players to adjust their wagers tailored to their likes. Whether you’re exploring the territory or simply relishing the spin for joy, the Feathered Road Preview delivers an engaging journey.

    —

    For those yearning to explore digital gaming, the Feathered Lane Demo Web-Based Gaming is a fantastic foundational stage. Many websites offer this offer as part of their demo zones, giving gamblers a taste of what to prepare-for. If you cherish the preview mode, you can then switch to live-cash gambling with confidence.

    —

    In summary, the Feathered Lane Preview is a wonderful avenue to try this engaging slot offer free any monetary danger. With gushing feedback and a user-friendly interface, it’s an perfect selection for both rookies and seasoned enthusiasts in the UK. Always confirm you’re gambling on a licensed and secure network to experience in a risk-free and pleasurable gaming experience.

  3. En quete d’un site de casino en ligne serieux et amusant, le site Vulkan Vegas est devenu une destination phare pour les passionnes de jeux [url=https://vulkan-vegas-72.vercel.app]Is Vulkan Vegas Legit[/url] . Beaucoup d’utilisateurs se posent souvent la question « Est-ce que Vulkan Vegas est fiable » avant de debuter leur aventure. La reponse est claire : grace a une licence valide et une reputation etablie, Vulkan Vegas Casino offre un environnement protege, juste et transparent pour tous ses membres. Si vous consultez un Vulkan Vegas Review complet, vous constaterez rapidement que le site se demarque par sa large gamme de machines a sous, ses jeux de table captivants et ses bonus genereux.

    Pour les joueurs en France, Vulkan Vegas France propose une interface fluide et optimisee. En consultant un avis detaille sur Vulkan Vegas Casino, vous decouvrirez que la qualite graphique et la velocite des transactions bancaires sont au c?ur de l’experience utilisateur. Il est courant de consulter des avis d’utilisateurs afin de s’assurer de la qualite du service client et la variete des methodes de paiement. Heureusement, le Casino Vulkan Vegas excelle dans ces domaines, garantissant un accompagnement professionnel a chaque etape.

    L’critique sur Vulkan Vegas est globalement tres positif, soulignant notamment la frequence des promotions et la variete des logiciels fournis par les meilleurs editeurs du marche. Faire un choix judicieux est essentiel, et chaque evaluation confirme que Vulkanvegas sait fideliser ses membres grace a un programme de recompenses avantageux. Que vous soyez un parieur novice ou un habitue des plateformes de jeux, Vulkan Vegas reste une destination de choix pour jouer en toute serenite. La plateforme continue d’evoluer pour offrir une experience de jeu actuelle, securisee et toujours plus captivante. En resume, si vous cherchez une experience de casino en ligne de premier plan, cette plateforme merite largement votre attention pour vos sessions de divertissement preferees. Decouvrez les nombreuses fonctionnalites offertes sur le site et decouvrez pourquoi tant de joueurs optent pour cette destination pour leurs moments de jeu.

  4. В этой статье мы подробно рассматриваем проверенные методы борьбы с зависимостями, включая психотерапию, медикаментозное лечение и поддержку со стороны общества. Мы акцентируем внимание на важности комплексного подхода и возможности успешного восстановления для людей, столкнувшихся с этой проблемой.
    Читать далее > – [url=https://driveautorent.ru/pages/kapelnica-ot-alkogolnoj-intoksikacii-na-domu/]запой выезд на дом[/url]

  5. Αναζητάτε μια συναρπαστική διαδρομή στον χώρο του στοιχήματος; Το only spins casino αποτελεί την τελευταία τάση στον κλάδο του online gaming, παρέχοντας μια πληθώρα εναλλακτικών που ικανοποιούν κάθε απαίτηση. Όποτε ψάχνετε μια ασφαλή ιστοσελίδα, αυτό το only spins review θα σας δώσει όλες τις χρήσιμες δεδομένα για να αρχίσετε τη διαδρομή σας με σιγουριά και κομψότητα.

    Το onlyspins καζίνο διακρίνεται για τη εύκολης προς τον χρήστη δομής του και της τεράστιας συλλογής ψυχαγωγίας που διαθέτει. Από συνηθισμένα κουλοχέρηδες μέχρι σύγχρονα παιχνίδια με live κρουπιέρηδες, το casino only spins μεταμελείται ώστε κάθε μέλος να ανακαλύπτει αποκλειστικά αυτό που ψάχνει. Η περιήγηση στο portal παραμένει πολύ απλή, καθιστώντας τη διαδρομή για το only spins login γρήγορη και εύκολη, επιτρέποντάς σας να προχωρήσετε ακαριαία στην προτιμώμενη σας δράση.

    Σε όλες τις αναλυτικό only spins casino review, επισημαίνεται η αξία της ακεραιότητας και της ειλικρίνειας. Το onlyspins casino εστιάζει στην προστασία των στοιχείων των παικτών του, παρέχοντας ταυτόχρονα κορυφαία βοήθεια. Είτε είσαστε έμπειρος παίκτης ή αρχάριος, το only spins προσφέρει τα κατάλληλα εφόδια για την ορθή και απολαυστική εμπειρία.

    Επιπλέον, το onlyspins casino review υποδεικνύει τις ελκυστικές παροχές και τα μπόνους που περιμένουν τα νέα καθώς και τα υπάρχοντα παίκτες. Τα μέλη που διαλέγουν το onlyspins επωφελούνται τακτικά προνόμια που αναβαθμίζουν τη δράση τους. Αν επιθυμείτε να μάθετε πιο πολλά για το γιατί το casino only spins θεωρείται πρώτη επιλογή, η διεύθυνση στο [url=https://only-spins-48.web.app]only spins review[/url] αποτελεί ο τελικός σας σταθμός.

    Συνοψίζοντας, το only spins casino αποτελεί μια κορυφαία λύση για αυτούς που αναζητούν κορυφαίο online gaming. Διαθέτοντας μια πλήρη ποικιλία παιχνιδιών και μια ασφαλή πλατφόρμα, το onlyspins διαθέτει τα πάντα όσα χρειάζεται κάθε παίκτης. Μη χάνετε χρόνο, κάντε το only spins login άμεσα και εξερευνήστε τις μοναδικές προοπτικές που σας περιμένουν. Το only spins βρίσκεται κοντά σας για να αλλάξει τις εξελίξεις στο internet, προσφέροντας δράση χωρίς όρια και σημαντικές δοκιμασίες για κάθε λάτρη του παιχνιδιού.

  6. spinogambinoappreview-Noibus

    Das Auffinden nach einer vertrauenswurdigen und spannenden Plattform fur Online-Casinos fuhrt immer haufiger zu speziellen Testportalen, die Klarheit im wachsenden Markt schaffen [url=https://spinogambinoappreview.com.de]spino gambino[/url] . Eine der aktuellsten Anlaufstellen hierfur ist die Webseite spinogambinoappreview.com.de, die sich ausfuhrlich mit dem Angebot von Spino Gambino auseinandersetzt. Wer auf der Suche nach einer fundierten spinogambino casino bewertung ist, findet hier eine detaillierte Aufarbeitung aller relevanten Punkte, die fur Spieler von Interesse sind.

    Das Portal durchleuchtet das spinogambino casino online aus unterschiedlichen Blickwinkeln. Dabei geht es nicht nur um das Spielangebot an sich, sondern auch um die Benutzerfreundlichkeit der Plattform, die Sicherheit der Transaktionen und die Qualitat des Kundensupports. Wenn man sich fur das spino gambino casino entscheidet, mochte man gewissheit haben, dass man in einer sicheren Atmosphare spielt. Die Experten hinter der Seite prufen prazise, wie das casino online spinogambino in puncto Spielauswahl und Bonusangebote performt. Oftmals ist es gerade die Auswahl der Automaten und Tischspiele, die das spinogambino Erlebnis so auszeichnet.

    Ein wesentlicher Vorteil von spinogambinoappreview.com.de liegt in der Neutralitat der Berichterstattung. Da es viele Anbieter auf dem Markt gibt, ist es wichtig, sich vorab grundlich zu informieren. Ob es um die Ladezeiten, die mobile Optimierung der App oder die Auszahlungsbedingungen geht – die Analysen zum casino spinogambino bieten eine solide Entscheidungshilfe. Besonders fur Nutzer, die das spino gambino Angebot auf ihrem Smartphone testen mochten, ist die Seite eine nutzliche Hilfestellung. Die strukturierte Aufbereitung sorgt dafur, dass auch Anfanger leicht begreifen, worauf es bei einem Besuch im spinogambino casino ankommt. Wenn Sie also Wert auf Transparenz und eine objektive Meinung legen, ist diese Webseite die beste Anlaufstelle fur Ihre Recherche. Sie hilft dabei, das Potenzial der Plattform optimal zu nutzen und ein unterhaltsames und geschutztes Spielerlebnis zu genie?en, das genau auf Ihre individuellen Bedurfnisse zugeschnitten ist. Alles in allem stellt das Portal eine unverzichtbare Ressource fur jeden dar, der sich intensiv mit dem Angebot befassen mochte.

  7. Handling the universe of digital gaming requires a thorough understanding of the regulations that control your activity. If you are a regular gamer at spinogambino, it proves essential to prepare yourself with the authorized terms and conditions presented on their portal. By viewing [url=https://spino-gambino-bonus.net/terms-and-conditions]spino gambino[/url] , you secure admission to the thorough structure that secures a impartial and open environment for every patrons. These rules act as a binding agreement between the service and the user, detailing your rights, duties, and the specific guidelines for utilizing their offerings.

    A single factor to study these terms is to completely understand how bonuses work. When you claim an offer at spino gambino, you remain constrained by set wagering requirements and expiry periods. The terms page details accurately how you can convert your promotional credits into cashable winnings and notes any game limitations that may occur. Comprehending these specifics prevents uncertainty and aids you optimize the gifts offered by the operator.

    Furthermore, the text covers key aspects such as profile administration, validation processes, and responsible gaming guidelines. Regardless of whether it concerns deposit limits, payout approaches, or profile safety, the information delivered at this link is designed to defend each the player and the operator. By devoting a short seconds to browse through these statutes, you exhibit a dedication to playing ethically and staying up-to-date regarding changes to the platform’s operations.

    Tracking these rules is a trait of a shrewd bettor. Constantly ensure you are mindful of any adjustments to the clauses, as operators regularly change their rules to reflect latest regulatory standards or service improvements. Whenever you possess questions about your membership level or the constraints of a specific promotion, the terms and conditions page should be your primary source of consultation. By following these practices, you guarantee that your time utilized at spinogambino continues to be fun, safe, and compliant with the established house rules. Consistent interaction with these legal statements is the greatest way to sustain a healthy gaming experience. [url=https://www.2shane.com/index.php?topic=12939.new#new]Exploring the SpinoGambino Policy Guidelines: A Essential Manual for Members[/url] [url=http://czrlp.8u.cz/forum/viewtopic.php?f=9&t=1353&p=24858#p24858]Understanding the SpinoGambino Policy Guidelines: A Comprehensive Guide for Users[/url] 7a610d2

  8. That Chicken Road Demo is the highly sought-after online playing that has captured massive enthusiasm towards gambling aficionados in the United Kingdom and elsewhere [url=https://chicken-road-game-119.web.app]Chicken Road Demo Reviews[/url] .

    If you’re curious into this play and want to discover its traits before investing genuine money, playing the Test Version is one of the excellent point.

    This free mode allows participants to feel the thrill of the play without considerable monetary threat, positioning it ideal towards neither novices and skilled wagerers.

    This of the key aspects of the Slot Test is its ease. If you’re looking after a UK Demo edition or just want to try it on the internet, several platforms provide this complimentary alternative.

    The preview format gives a authentic model of the live game, complete with the same images, noise, and mechanics. This confirms that enthusiasts can completely grasp the guidelines, betting choices, and probable winnings before selecting to gamble for genuine capital.

    Regarding people who are cautious towards fresh virtual casinos, looking up Road Journey Demo ratings can offer precious views. Numerous enthusiasts and specialists have exchanged their stories, showcasing the fairness, payment standards, and overall enjoyment of the play. If you’re thinking, “Does the Game Demo trustworthy?”, the reply is generally encouraging, provided you’re playing on a reliable and regulated site. Established wagering venues guarantee that their test modes are precise models of the real game, so you can have confidence in the outcome you have.

    The Game Preview Experience edition is particularly well-received towards fans of slot activities. This mode frequently features lively graphics, compelling movements, and stimulating extra phases, positioning it one of the showstopper choice for those who prefer quick experiences. Regardless you’re betting on pleasure or trying approaches, the preview edition allows you to relish the play on your personal pace free from tension.

    If you’re set to venture upon, simply find for “Begin Road Journey Demo” or visit a beloved web-based gambling site that features this slot. Many sites also present a Road Journey Demo Area where you can explore related games and promotions. By using advantage of the free, you can develop an informed choice before transferring genuine capital, ensuring a safer and far delightful entertainment.

    No matter you’re a aficionado of gaming slots, blackjack plays, or real-time wagering options, the Chicken Road Demo delivers a fantastic way to investigate the world of online gambling safely.

  9. В этой медицинской статье мы погрузимся в актуальные вопросы здравоохранения и лечения заболеваний. Читатели узнают о современных подходах, методах диагностики и новых открытий в научных исследованиях. Наша цель — донести важную информацию и повысить уровень осведомленности о здоровье.
    Не упусти шанс – [url=https://drivefun.ru/pages/detoksikaciya-posle-zapoya-na-domu/]вывод из запоя на дому[/url]

  10. chickenroad-adody

    Ao explorar no universo das apostas digitais, e essencial compreender as normas que governam a casa que selecionou para o seu lazer [url=https://chickenroad-app-casino.pt/termos-e-condicoes]chicken road[/url] . No caso da Chicken Road, a clareza e um alicerce fundamental para garantir que todos os utilizadores aproveitem de uma vivencia protegida e equilibrada. A pagina de regulamento da Chickenroad e o texto base que detalha os obrigacoes dos apostadores, sendo um etapa fundamental para quem pretende aventurar-se nesta proposta de casino.

    Ao consultar o site Chicken Road, encontrara informacoes cruciais sobre a validade do registo, os processos de transacao, e as politicas de jogo responsavel. Estes termos foram desenhados para proteger ambas as partes, definindo limites claros sobre a utilizacao do software e a lisura dos jogos. E aconselhavel que dedique alguns minutos a consultar estas regras antes de comecar a jogar, assegurando dessa forma que esta em acordo com as diretrizes impostas.

    A protecao na Chickenroad e tratada com maxima prioridade. Ao aceitar os termos e condicoes, o utilizador aceita com a recolha e tratamento de dados pessoais, algo que o site faz sob sistemas de seguranca avancados e conformidade legal. Este empenho com a protecao do utilizador ajuda a cimentar a confianca exigida para que a diversao seja a unica preocupacao. Alem disso, as regras sobre bonus e promocoes estao bem explicadas nesta seccao, evitando mal-entendidos sobre os requisitos de apostas exigidos para converter ganhos em saldos reais.

    Em resumo, a consulta detalhada da area de regulamentos e um habito essencial para qualquer jogador assiduo. A Chicken Road empenha-se por manter um ambiente transparente, onde as normas sao claras desde o inicio. Ao estar ciente sobre as diretrizes da Chickenroad, estara a assegurar que a sua jornada de entretenimento se desenrola de forma tranquila, segura e sempre dentro dos limites regulamentares definidos para este setor em constante evolucao. Nao ignore estas normas, pois elas sao a certeza de um ambiente de jogo integro.

댓글 달기

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