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

  1. 1xbetcasino13-creefs

    1xBet Online is a well-known gambling network that has captured substantial attention in the UK [url=https://1x-bet-casino-13.vercel.app]1xbet Casino[/url] . It provides a wide variety of wagering and gaming entertainment. If you’re weighing up signing up for 1xbet Casino UK, it’s critical to comprehend its legitimacy, features, and how it compares against rival operators. This review will help you in making an informed decision before registering for real-money betting.

    1xBet Casino has solidified itself as a respectable name within the digital betting market, supporting punters from the Great Britain and elsewhere. Many punters inquire whether *”1xBet Casino is trustworthy?”* The typical outcome is absolutely, as it functions under a regulated scheme and delivers a protected betting setting. Yet, it’s always sensible to verify the up-to-date certification and security before sending resources.

    For those searching a 1xbet casino review, the network dominates with its huge entertainment library, featuring slots, live casino, and sport wagering. The user interface is designed to be intuitive, making it ideal for both novices and pro punters. Promotions, such as welcome packages and refund arrangements, are also available, though the conditions should always be reviewed attentively.

    When considering 1xbet United Kingdom, gamblers should acknowledge that while it is popularly recognized, some regional restrictions may come into effect. The network assures fair play through unbiased mechanics and honest disbursement processes. Many punters have shared positive 1xBet feedback, emphasizing fast payouts and efficient assistance.

    If you’re still uncertain about whether 1xBet Online is authentic or not, it’s worthwhile to investigate independent reviews and gambler stories. The site’s standing for dependability and equity makes it a solid candidate within the digital betting market. Whether you’re searching for actual betting or merely exploring alternatives, 1xBet Online presents a reliable choice for British punters.

    Always gamble mindfully and ensure you meet the age rules before participating in any internet betting activities.

  2. Лечение на дому удобно, однако оно подходит не каждому пациенту. При выраженном отравлении, судорогах, галлюцинациях, тяжелых сердечных болезнях, психиатрических расстройствах или продолжительных запоях врач может рекомендовать стационар. В клинике человек находится под постоянным наблюдением, а команда специалистов имеет доступ к диагностическому оборудованию, лекарствам и дополнительным способам поддержки.
    Ознакомиться с деталями – https://2.vyvod-iz-zapoya-moskva1-13.ru/

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

  4. chickenroad-illini

    Provided you are hunting for a novel and compelling digital pastime, the chicken road game is rapidly becoming a cult classic for enthusiasts who adore high-stakes arcade challenges [url=https://chickenroad-game-245.onrender.com]chicken road[/url] . This electrifying title tasks you with maneuvering your avatar through a sequence of progressively hard hazards, evaluating your reaction speed and tactical pacing. Regardless if you act as a leisurely user seeking for a quick distraction or a hardcore pro targeting for the pinnacle of the rankings, the chicken road provides hours of fun.

    Many gamers who enjoyed the initial version are now flocking to the chicken road 2 game to see how the programmers have improved the mechanics. This sequel builds upon the successful foundation of the prior version, introducing new settings and improved dynamics that ensure every attempt seem unique. To begin, you can visit chickenroad-game-245.onrender.com, which offers a fluid layout for your gaming periods.

    For users worried about ease of use, you could be hunting for a chicken road game download or a custom chicken road app. Even though playing straight using your web is the simplest approach, numerous fans choose the ease of use granted by the primary site. Ahead of subscribing to a total game, certain people like to try the chicken road demo to understand the controls and the skill gradient. Once you feel familiar with the mechanics, you can finish the chicken road game login to save your progress and challenge rival gamers worldwide.

    Locating a reliable chicken road download is vital for ensuring your device remains safe. By selecting verified sites, you promise that you receive the highest quality and regular updates. The chickenroad community is constantly growing, and with the fresh features seen in the chicken road 2, there has never been a better time to jump into the fun. Savor the excitement today and check if you hold what it takes to conquer the path and conquer every round in this captivating arcade gem.

  5. spinmachologin-arouct

    As you navigate to the main website for Spinmacho, your confidentiality and user journey are our primary goals [url=https://spinmachologin.com/cookie-policy]spinmacho[/url] . To guarantee that our digital interface functions flawlessly and provides you the best gaming features, we employ cookies. This tracking statement clarifies precisely how spin macho leverages these small text records to improve your interaction with our online services. When you visit our web domain, cookies are saved on your device to aid us remember your preferences, streamline site performance, and analyze traffic trends to give you the best possible gaming experience.

    Our utilization of cookies is classified into a several essential types. Mandatory necessary cookies are important for the base functionality of spinmacho, enabling you to sign in, control your user profile, and navigate safe areas of our platform. Without these, various parts of the site would not be functional. We additionally employ performance and data cookies to grasp how gamers navigate our platform, which aids us determine which games are trending and how we can optimize our interface to be user-friendly. Specific cookies permit us to remember your individual choices, like language settings or gameplay history, offering a tailored session each occasion you log in to spin macho.

    You have full control over your browser settings at any time. While our site is built to function best when all cookies are turned on, you may opt to administer or turn off them through your browser settings. Regardless, kindly be informed that restricting cookies may affect your capacity to reach certain features or the total quality of your visit on spinmacho. As you continue to use our platform barring changing your site settings, you consent to our use of cookies as outlined in this policy. We are focused on transparency regarding how we collect and handle your private information. For additional in-depth queries about how we secure your info while you enjoy your favorite games at spin macho, kindly feel free to contact our specialized support team.

  6. Should you are looking for a brand-new and engaging hub to savour your preferred pastimes, look no further than the latest offerings at Baxterbet [url=https://baxter-bet-108.vercel.app]baxter bet online[/url] . This contemporary webpage, available at baxter-bet-108.vercel.app, has quickly acquired traction within enthusiasts seeking a smooth session. As you explore the domain of Baxter bet online, you will uncover a easy-to-use design crafted to cater to equally seasoned players and novices too.

    When you dive into the Baxterbet casino, you are greeted by an impressive selection of games that span classic pokies to captivating interactive experiences. The charm of selecting a Baxter bet casino is the diversity it delivers; the catalogue is perpetually revised to verify that each round appears fresh and interesting. Whether you favour the fast-paced excitement of spinning slots or the methodical complexity of table games, the casino Baxterbet atmosphere is constructed to supply high-end fun.

    Numerous users right now searching for a trustworthy betting hub are examining Baxterbet reviews to grasp why this service shines. The comments emphasises the intuitive navigation and the stability of the software, which are essential for any high-quality Baxter bet casino online. Provided you are specifically interested in a top-tier casino Baxter bet time, this platform performs on performance and visual appeal.

    Deciding to play at a site like Baxterbet online guarantees you have usage of a safe space where leisure is the core focus. Players who have visited different sites frequently note in their Baxter bet reviews that the move to this layout is effortless and beneficial. As you embrace the flow of the rounds, you will appreciate the attention to detail that characterises the Baxterbet casino online journey. If you are prepared to visit a vibrant online gaming lobby, navigating to the portal right now is the best initial move. Discover why so countless players are opting to turn this their go-to spot for gaming fun, and see for yourself why the standing of the company keeps on improving gradually within the digital world.

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

  8. Klarheit und Glaubwurdigkeit befinden sich bei dem Entertainment-Portfolio an hochster Prioritat [url=https://chicken-road-game.at/cookie-richtlinie]ChickenRoad[/url] . Sofern User jene Webseite von Chicken Road ansteuern, ist dieser Umstand fur uns entscheidend, dass Sie exakt nachvollziehen, wie das Unternehmen Tools wie Cookies nutzen, zwecks das Spielerlebnis zu optimieren. Innerhalb dieser Cookie-Richtlinie erklaren wir den Usern deswegen genauestens, samtliche Informationen das System erheben und warum wir dies tun.

    Besagtes Cookie stellt eine kleine Text-Datei, die man wahrend dem Zugriff von ChickenRoad an eurem Gerat hinterlegt wird. Besagte Elemente erlauben es uns, die bevorzugten Parameter zu speichern und Optionen bereitzustellen, die wegen den storungsfreien Gameplay notwendig sind. Manche dieser Cookies gehoren zu systemseitig notigen Bestandteilen, sodass die zentralen Kernfunktionen von Chicken Road initial gestartet konnen. Ohne besagte essenziellen Informationen wurde der optimales Betrieb unserer Webseite technisch nicht realisierbar.

    Daruber hinaus verwenden das Haus an ChickenRoad unter gewissen Szenarien Cookies gezielte Mechanismen, die man dabei unterstutzen, die allgemeine Performance der Webseite effektiv auszuwerten. Durch derartige statistischen Daten erfahren das Analyseteam, auf welche Weise unsere Spieler durch das Spiel navigieren, und konnen so prazise Optimierungen auf der jeweiligen Benutzeroberflache vornehmen. Jene Ma?nahme tragt dazu bei, dass Chicken Road fur den Nutzer sogar einfacher und unterhaltsamer wirkt. Wir uberwachen hierbei penibel auf den Punkt, dass dabei euer Privatsphare gewahrt bleibt und keine unnotige private Angaben jenseits Ihre explizite Freigabe gespeichert werden.

    Ihr besitzen jederzeit die Kontrolle uber eure Cookie-Einstellungen. Durch jene Einstellungen Ihres Internet-Programms konnt man die Archivierung durch Cookies limitieren, schon abgelegte Dateien loschen oder jeden Empfang vollstandig stoppen. Denkt daran allerdings, dass die Abschaltung bestimmter Cookies hierzu fuhren kann, dass einige Sektionen bei Chicken Road gar nicht langer fehlerfrei angezeigt werden oder einzelne Spielfunktionen limitiert sind. Das Portal bitten euch ausdrucklich dementsprechend ein, die komplette Cookie-Richtlinie direkt auf der Webseite zu sichten, um samtliche Einzelheiten zu erfahren. Unser Ziel bei ChickenRoad ist es, euch ein solches korrektes, serioses und fesselndes Spielerlebnis zu bieten, bei dem der Datenschutz immer zentrumsma?ig im Zentrum unserer Bemuhungen liegt. Vielen Dank wegen euer Vertrauen bei Chicken Road.

  9. 1xbetcasino15-Reecy

    Are you searching for a reliable and legitimate online casino experience in the Britain? If that’s the case, you may have encountered **1xbet Casino**, a renowned operator that provides a diverse selection of wagering avenues [url=https://1x-bet-casino-15.vercel.app]1xbet Casino Uk[/url] . Still, with so many online casinos on the market, it’s crucial to verify whether **1xbet Casino UK** is trustworthy before joining for real-money gambling. This evaluation will inform you about what **1xbet** delivers, its standing, and whether it’s a secure option for UK players.

    **1xbet Casino** is a widely acknowledged entity in the online gambling field, but its offering in the UK has been a debated issue. Unlike some competing venues, **1xbet** does not openly market itself as a UK-focused casino, which has caused many to challenge its legitimacy. The UK has demanding regulations overseeing online gambling, and many reputable casinos acquire licences from authorities like the UK Gambling Commission. While **1xbet** exists in various countries, including Russia and parts of Europe, its position in the UK remains unclear.

    If you’re curious, **”Is 1xbet legit?”**, the reply changes on how you interpret legitimacy. The platform is licensed in some jurisdictions, indicating it obeys certain gaming rules, but its absence of a UK-specific licence generates doubts. Enthusiasts should also assess factors like safe funds, just odds, and support before depositing real capital. Many **1xbet reviews** point out its wide bookmaking and casino options, but others warn about foreseeable hazards due to its regulatory vagueness.

    For UK gamblers, choices with definite regulation—such as those controlled by the UK Gambling Commission—may deliver more assurance. However, if you still want to test **1xbet Casino UK**, undoubtedly examine for secure deposit routes, fair probabilities, and explicit conditions before placing any cash bets.

    At the core, whether **1xbet** is the right selection changes on your preferences—whether you cherish broad convenience over UK-specific oversight. Always bet wisely and ensure you’re conscious of the risks implied. If you’re seeking a favourably-received and lawfully licensed casino in the UK, look for sites with suitable approval and strong bettor guarantees.

  10. chickenroad-Orackax

    Assuming you hunt for a thrilling and quick-paced video adventure, the chicken road game is rapidly emerging as a popular pick within relaxed gamers globally [url=https://chickenroad-game-246.davidsolisq400.workers.dev]chicken road[/url] . Available at the dedicated webpage chickenroad-game-246.davidsolisq400.workers.dev, this engaging release tests your reflexes when you navigate a brave chicken across busy streets plus dangerous obstacles. The main aim of chicken road feels simple yet captivating, needing accuracy plus pacing to ensure your avatar migrates without harm to the far bank.

    For folks possessing formerly perfected the first version, the chicken road 2 game introduces extra involved levels, lively settings, plus novel tests that measure your talents to the limit. Players keen on commencing could investigate the chicken road demo to find a feel for the systems ahead of jumping into the complete session. Regardless of you are using a handheld device otherwise a home workstation, the game provides fluid mechanisms plus colorful visuals that maintain you focused for countless hours.

    Numerous enthusiasts are looking for a trusted chicken road game download to relish the fun locally. While the browser version provides quick reach, having the chicken road app on your device allows for uninterrupted play anytime you find a brief interval. When you access the page, you may spot notifications regarding a chicken road game login. Creating a member otherwise entering assists you monitor your best records, challenge worldwide leaderboards, and preserve your records across different platforms.

    The renown of chickenroad keeps to grow as additional fans uncover the joy of coordinating their movements accurately to bypass approaching vehicles. Assuming you are set to place your reflex abilities to the limit, finding a safe chicken road download is the first phase leading to rising the tiers. Head to the hub now to see the reason so many users are addicted to this modern staple. Given its easy gameplay plus limitless longevity, it seems effortless to see the reason the chicken road series remains a top selection for enthusiasts hunting for rapid, intense excitement.

댓글 달기

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