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

  1. Willkommen bei der Einfuhrung von Spinmama, Ihrem vertrauenswurdigen Begleiter in der Sphare der Online Unterhaltung [url=https://spinmama-app-casino.de/ueber-uns]spin mama[/url] . Wenn jeder sich auf unserer Seite unter dem Bereich Ueber uns kundig machen, durfen Sie schnell feststellen, wobei Transparenz und Nutzerfreundlichkeit bei Spin mama an erster Stelle stehen. Die Zielsetzung ist es, ein geschutztes und spa?iges Umfeld zu schaffen, in dem sich Spieler aufgehoben fuhlen und fundierte Entscheidungen abwagen konnen. Das Crew hinter Spinmama arbeitet kontinuierlich darum, die Inhalte zu optimieren und Ihnen aktuelle Daten uber die aktuellsten Trends oder Spiele bereitzustellen. Unsere Redaktion verstehen, dass das Spektrum an digitalen Diensten derzeit enorm ist, aus welchem Grund wir uns als euren zuverlassigen Wegweiser etablieren. Bei der Erstellung unserer Webseite haben wir betrachtlichen Wert auf ein intuitives Bedienkonzept fokussiert, sodass Sie sich bei Spin mama ganzlich und ganz auf das Wesentliche konzentrieren konnen. Qualitat rangiert bei uns gegenuber Quantitat, wobei wir betrachtlichen Wert auf eine akribische Selektion der prasentierten Inhalte setzen. Wir bei Spinmama sind uberzeugt fest daran, dass verantwortungsvolles Spielen die Grundlage fur langfristigen Spa? bildet. Aus diesem Grund setzen wir uns nachdrucklich fur die Sicherheit ein und stellen Ihnen jegliche erforderlichen Ressourcen, auf dass ein geschutztes Erlebnis zu garantieren. Das Engagement fur Exzellenz zeigt sich in jeglichem Aspekt jener Webseite abermals. Ganz gleich, ob Sie neu in der Thematik sind beziehungsweise langst uber Erfahrung besitzen, bei Spin mama entdecken Sie nutzliche Einblicke, die Ihnen hierbei behilflich sind, diese Welt der Online Spiele tiefergehend zu durchdringen. Vertrauen stellt das Fundament unserer Philosophie. Unsere Redaktion laden Sie sehr dazu ein, jene Plattform zu erkunden und Teil der kontinuierlich wachsenden Community zu sein. Wir danken Ihnen fur Ihr Interesse an Spinmama samt freuen uns schon jetzt, Sie auf Ihrem Weg zu unterstutzen. Wenn Sie Anfragen beziehungsweise Anregungen vorbringen, steht Ihnen ein bemuhtes Team stets mit Rat sowie Tat zur Seite, weil die Zufriedenheit bleibt unserer gro?ter Antrieb. Vielen Dank, dafur, dass Sie Spin mama zu dem favorisierten Anlaufpunkt fur Informationen hinsichtlich dieses Thema Online Gaming gestalten.

  2. Are you searching for a dependable and trusty online casino experience in the United Kingdom? If so, you may have encountered **1xbet**, a esteemed gaming platform that provides a vast selection of staking and casino avenues [url=https://1x-bet-36.vercel.app]1xbet United Kingdom[/url] .

    However, with so many online casinos out there, it’s crucial to check whether **1xbet Casino UK** is genuine and secure for true money wagering. This analysis will assist you in comprehending what **1xbet** has to supply, its name, and whether it’s valuable your attention and wealth.

    **1xbet Casino** is a leading online gaming site that delivers sports betting, casino titles, and live dealer alternatives. Many users in the home islands have shown inquiry in whether **1xbet** is trustworthy, especially when it comes to genuine money deals. The platform proclaims to be a reliable dealer with a cosmopolitan impact, but it’s always sensible to verify its reputation before registering.

    One of the main issues when evaluating **1xbet Casino UK** is whether it operates legally in the UK. While **1xbet** is not licensed by the UK Gambling Commission, it does work under alternative governing systems in other areas. This suggests that betters in the United Kingdom should be alert, as visiting unlicensed gambling portals may generate threats. However, many users still decide on to involve with **1xbet** due to its extensive game selection and lucrative probabilities.

    When studying **1xbet reviews**, you’ll find varied comments. Some gamblers praise the portal for its extensive array of titles, including slot machines, roulette options, and virtual casino avenues, as well as its easy-to-use system. Others doubt its legitimacy, particularly regarding payment protection and payout lags. If you’re reviewing true money play, it’s essential to study **1xbet** exhaustively and recognise the anticipated challenges implied.

    Before finalising whether **1xbet** is trustworthy or not, assess variables such as transaction channels, service support, and variety equity. While **1xbet Casino UK** may provide an thrilling gaming experience, users should always prioritise security and assure they are happy with the site’s terms. If you’re hunting for a endorsed and overseen alternative, exploring UK-licensed casinos may be a better protected avenue.

    In analysis, **1xbet** is a broadly known online casino with a firm global base, but its authenticity in the UK endures a topic of contention. Whether you prefer to bet on **1xbet** varies on your hazard level and unique choices. Always bet sensibly and guarantee you’re aware of the anticipated hazards before connecting in real money wagering.

  3. Экстренное обращение требуется, если состояние быстро ухудшается, человек не может самостоятельно принимать воду и питание, практически не спит, становится агрессивным или дезориентированным. Медицинская бригада выезжает по указанному адресу, проводит первичную диагностику и определяет следующий этап лечения. При наличии показаний врач рекомендует стационарную помощь, где доступно постоянное наблюдение и оборудование для контроля жизненно важных показателей.
    Дополнительная информация – [url=https://vyvod-iz-zapoya-moskva15-1.ru/]vyvod-iz-zapoya-moskva15-1.ru/[/url]

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

  5. Qualora tu fossi alla ricerca di una risorsa innovativa relativa a il tuo intrattenimento digitale, Cazeus rappresenta una delle novita piu interessanti all’interno del panorama attuale riguardante il gambling [url=https://cazeus-casino-29.ayigureso774.workers.dev]cazeus online casino[/url] . Attraverso un catalogo vasto e una tecnologia di ultima generazione, Cazeus casino risulta rapidamente distinto quale un punto per riferimento per giocatori i quali cercano qualita, sicurezza ed varieta. Consultando su Cazeus online casino, si nota immediatamente un’interfaccia intuitiva che permette di riuscire a esplorare centinaia riguardanti slot machine, tavoli di gioco dal vivo oppure opzioni di scommesse sportive, assicurando un’esperienza fluida tanto da desktop come da mobile.

    Leggendo le diverse Cazeus recensioni online, si manifesta chiaramente la ragione del suo crescente successo nel territorio Italia. Ogni utenti gradiscono particolarmente il servizio clienti dedicato, la rapidita nelle transazioni unita a un sistema riguardante i bonus concepito per gratificare sia i nuovi iscritti come i giocatori piu fedeli. Compiere una Cazeus review approfondita permette di riuscire a scoprire un ambiente dedito al gioco protetto, laddove la trasparenza appare al primo posto. Tale sito propone un ecosistema completo all’interno del cui ogni Cazeus casino review rimarca la perfezione grafica nonche la stabilita riguardante i software forniti dai migliori provider riguardanti il settore.

    Decidere di voler giocare su Cazeus online comporta affidarsi a un portale che sa mette al centro le richieste dell’utente italiano, proponendo un supporto localizzato e opzioni riguardanti il pagamento sicure nonche affidabili. Indipendentemente dal fatto che tu sia un appassionato riguardante il poker, blackjack ovvero delle ultime slot con tema, casino Cazeus propone soluzioni create per ogni tipologia di gestione del bankroll. In definitiva, le Cazeus casino recensioni attestano la solidita riguardante il progetto. Qualora stai cercando il tuo nuovo sito preferito dentro il settore Cazeus italia, questa piattaforma detiene tutte le carte al regola al fine di soddisfare le tue pretese. Trova subito le chance offerte da Cazeus casino online e lasciati trasportare mediante un’esperienza per il gioco completa, divertente ed tecnologicamente avanzata, progettata per persone che non vuole scendere a compromessi sulla qualita del proprio tempo libero.

  6. chickenroad-injuro

    Mastering the standards of interaction represents a pivotal phase for each user seeking to appreciate their time on a gambling platform [url=https://chickenroad-casino-review.org/terms-and-conditions]Chicken Road[/url] . When you check the terms and conditions page on Chicken Road, you remain accessing the essential architecture that regulates your engagements with the service. Reading this policy stands not merely a requirement; it is an indispensable practice that confirms you stay entirely conscious of your account rights and obligations as a client. The ChickenRoad system assigns a high focus on honesty, intending to provide a protected and balanced space for all member.

    The terms and conditions document on the Chicken Road platform discusses a broad variety of vital matters. These usually contain the requirement standards for forming an account, for example minimum rules and regional limitations. Moreover, the file describes the rules covering bonus usage, staking requirements, and the procedures for financial movements. By getting comfortable with these defined parameters, you will effectively regulate your anticipations regarding fundings and withdrawals, ensuring that your period invested at ChickenRoad remains lacking superfluous complications or confusions.

    Aside from the financial aspects, the terms further address ethical wagering tools and profile protection systems. The team at Chicken Road is pledged to maintaining honor throughout their circle, which is why they explicitly set the outcomes of rule infractions. Staying knowledgeable about these laws helps you traverse the platform with certainty, understanding exactly how the firm resolves dispute settlement and privacy safeguarding.

    We firmly encourage each visitor to emphasize checking the terms and conditions preceding initiating some betting. While it could appear like a tedious task, remaining an knowledgeable gamer is the finest method to secure your individual interests. If you ever discover a segment that appears vague, the support staff at ChickenRoad remains generally accessible to offer assistance. By adopting a vigilant strategy to studying these rules, you guarantee that your experience inside Chicken Road persists simultaneously entertaining and perfectly compliant with the formal norms of the play industry.

  7. gtspinscasino6-Asypese

    For those seeking a fresh and dynamic gaming adventure, Gtspins Casino has become a platform to keep in mind [url=https://gt-spins-casino-6.vercel.app]Gtspins Uk[/url] . This Gtspins online casino features an wide library of pokies, table games, and live dealer options designed to cater to a diverse range of player tastes. As more users explore this platform, the need for an unbiased Gtspins casino review becomes vital to discover what the site really provides to players in the Gtspins United Kingdom market.

    When assessing any gaming site, the first question on every gambler’s mind is always, is Gtspins legit? Safety, licensing, and payment clarity are the foundation of a reliable platform. Many prospective players searching for Gtspins UK availability are looking for confirmation regarding the security of their data and the fairness of the game results. Based on common Gtspins reviews, the platform prioritises providing a seamless interface and responsive customer support, which are critical factors for anyone looking to engage with Gtspins real money games.

    The task of determining if a site is the right choice involves looking at the variety of bonuses and the terms attached to them. Casino Gtspins distinguishes itself by offering a sleek layout that works well across both desktop and mobile devices, ensuring you can play your favourite titles on the go. Whether you are wondering is Gtspins legit or not, it is always advised to check the terms and conditions for details on their operating licenses and safe play tools.

    Ultimately, Gtspins presents itself as a strong option in the crowded digital gaming space. By blending a wide selection of software providers with simple navigation, Gtspins Casino seeks to build trust with its user base. Before you deposit, it is wise to browse the latest feedback and verify the site suits your personal requirements. As always, remember to play responsibly and make sure that you are playing within your personal limits while exploring the services offered by the brand.

  8. baxterbet-toiweem

    When looking for a fresh along with exciting site to experience top-tier gaming, numerous fans are directing their focus to the site baxterbet-103.vercel.app [url=https://baxterbet-103.vercel.app]baxterbet casino[/url] . As a growing brand in the online play arena, baxterbet delivers a seamless session that caters to both amateur players along with seasoned professionals. If you are searching for a high-quality baxterbet casino online environment, this website delivers a complete collection of titles designed to meet the highest standards of fun and trustworthiness.

    Numerous members looking for baxter bet online shall discover that the layout is remarkably user-friendly, allowing for smooth navigation between different game sections. Whether you prefer retro slots and contemporary live dealer titles, the casino baxterbet library is extensive, making sure that each session keeps engaging. Users that investigate baxter bet casino online choices frequently stress the website’s commitment to user experience and quick load speeds. The integration of latest tech guarantees that your visits on the baxterbet online site are secure and safe.

    Before registering up, it is natural for users to look for baxterbet reviews to ensure the platform fulfils their exact needs. Good baxter bet reviews regularly state the diversity of play options plus the professional atmosphere provided by the baxter bet casino. While matching a casino baxter bet setting to alternative sites, players frequently value the distinct style plus the handpicked selection of titles available on baxterbet.

    In the end, opting to play on the site baxterbet-103.vercel.app signifies selecting for a new digital realm where excellence meets ease. Boasting its strong collection of titles plus an easy-to-use layout, baxter bet continues to forge a solid reputation. If you are set to discover a novel manner to enjoy your favourite titles, checking out the baxterbet casino is a fantastic next step. By prioritising player fun along with tech brilliance, baxterbet is rapidly turning into a preferred spot for users throughout the UK that value a dependable and fun play experience.

  9. Городская среда Петрозаводска со сменой ветров с Онежского озера, короткими сумерками и сезонными перепадами влажности может усиливать тревожность в вечерние часы. Мы учитываем это с момента первого контакта: согласованная парковка, отдельный вход без вывесок, короткая регистрация без «толстых анкет», приглушённый тёплый свет в зоне ожидания и отсутствие громких объявлений. Родственникам предоставляются «тихие окна» связи — лаконичные апдейты в фиксированное время, чтобы не перегружать пациента и не дёргать команду в критические окна наблюдения. Такой «мягкий» контур снижает сенсорную нагрузку, стабилизирует вариабельность ЧСС к сумеркам и сокращает число импульсивных просьб «усилить на ночь».
    Узнать больше – [url=https://narkologicheskaya-klinika-petrozavodsk15.ru/]запой наркологическая клиника петрозаводск[/url]

  10. Помощь оказывают врачи с практикой в наркологии, психиатрии и восстановительной терапии.
    Получить больше информации – [url=https://5.narcolog-na-dom-krasnoyarsk0.ru/]нарколог на дом анонимно[/url]

댓글 달기

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