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

  1. gtspins-immandy

    For those looking for a contemporary platform to enjoy premium gaming, the Gtspins online casino has been making waves among digital players [url=https://gtspins-casino-4.vercel.app]Gtspins[/url] . As you look for the best gaming sites, you might ask yourself if Gtspins is legitimate. This Gtspins casino review aims to provide a clear overview of what the platform provides to those based in the region. When considering Gtspins United Kingdom access, players often look for a trustworthy environment that mixes entertainment with user security.

    Regarding the question of is Gtspins legit or not, it is important to examine the site attributes and transparency. Gtspins has positioned itself as a flexible platform where enthusiasts can play various titles. Whether you are interested in the mechanics of the games or the ease of transactions, many Gtspins reviews indicate that the interface is designed for seamless navigation. For those looking for Gtspins Uk options, the site offers a structured approach to online play.

    Playing at Gtspins real money tables allows users to experience the thrill of the casino from the comfort of their own homes. The platform is often classified as a contemporary Casino Gtspins destination that prioritises providing a diverse portfolio of slots and classic table games. If you are questioning is Gtspins legit, it is always recommended to review the site terms and safety measures to ensure a safe experience suited to your preferences.

    The reputation of Gtspins continues to grow as more users provide reviews. Most Gtspins casino enthusiasts value the streamlined design and the breadth of gaming options available. By upholding quality, Gtspins strives to be a preferred destination for players looking for an immersive online environment. Before you start your journey, remember to explore the available features and ensure that the platform aligns with your needs for security and enjoyment. Overall, Gtspins remains a platform worth watching for those interested in discovering the latest trends in digital gaming across the United Kingdom.

  2. vegashero-Ignins

    Vernunftiges Wetten hat bei vegashero maximale Wichtigkeit [url=https://vegashero-spiel.ch/verantwortungsvolles-spielen]vegashero[/url] . Wer sich fur das vielfaltige Entertainment von vegas hero entschlie?t, wird dazu angehalten jederzeit die komplette Kontrolle uber sein Spielverhalten bewahren. Da Online-Glucksspiel in primar der Entspannung nutzen soll, ist es wichtig, dass Spieler ihre individuellen Grenzen verstehen und bewusst respektieren. Auf der Plattform bekommen Gaste nutzliche Unterstutzung, um ein serioses und gerechtes Klima zu gewahrleisten.

    Der Support der Kunden ist bei vegashero tief in der Geschaftsphilosophie verankert. Das System bietet unterschiedliche Instrumente an, die dadurch unterstutzen, das individuelle Finanzpolster sinnvoll zu managen. Dazu zahlen beispielsweise die Moglichkeit zur Festlegung von 24-Stunden, wochentlichen oder monatlichen Einzahlungsgrenzen. Indem man sich fruhzeitig ein festes Budget festlegt, wird das Gefahrenpotenzial eines monetaren Verlusts signifikant minimieren. Wenn man das Gefuhl verspuren, dass das Zocken nicht mehr den erwarteten Vergnugen bringt, bietet vegas hero ausserdem Moglichkeiten zur temporaren Unterbrechung oder zum Selbstausschluss an. Diese Tools sind leicht verfugbar und fungieren dafur, dem Gast jederzeit eine hilfreiche Pause zu ermoglichen.

    Zudem schult vegashero seine Community durch transparente Daten und Tipps. Es wird dringend dazu geraten, Wetten unter keinen Umstanden als Einnahmequelle zu betrachten. Wer bemerkt, dass das personliche Handeln suchtartige Symptome aufweist, findet auf der Plattform nutzliche Anlaufstellen zu spezialisierten Hotlines, die diskret und professionell helfen. Die Geschutztheit und das Wohlbefinden der User stehen bei vegas hero immer an vorderster Prioritat, denn lediglich ein umsichtiger Umgang mit den Automaten sichert ein positives und erfreuliches Event.

    Zusammenfassend kann man festhalten, dass ein besonnener Ansatz die Grundvoraussetzung fur jedes Online-Spielerlebnis ist. Anhand die proaktiven Schritte von vegashero erlangen User die erforderliche Hilfe, um bedacht und umsichtig zu agieren. Jeder, der bei vegas hero zockt, zeigt Eigenverantwortung und gebraucht die verfugbaren Werkzeuge, um den Blick immer auf den Spielwert zu fokussieren. Seien Sie wachsam und erleben Sie Ihr Spielerlebnis bei vegashero jederzeit unter Berucksichtigung Ihrer individuellen Vorgaben. [url=https://www.2shane.com/index.php?topic=12939.new#new]Sicher spielen bei vegashero: So behalten Sie die Ubersicht uber Ihr Wettverhalten[/url] [url=https://agbmarshall.com/2021/11/28/3-ways-to-level-up-your-photography/#comment-5884]Mit Selbstverantwortung spielen: Die wichtigsten Moglichkeiten fur Ihr Budget bei vegashero[/url] fa77327

  3. Вчера был корпоратив, а сегодня я еле живой. Он посоветовал вызвать капельницу на дом. Быстрая капельница от алкоголя — Через два часа я уже мог встать и выпить чаю. Всё анонимно, без лишних вопросов. Главное — не мучиться. избавление от похмелья [url=https://materinstvo2.com/kapelnitsa-ot-zapoya-spasenie-ili-vremennoe-reshenie/]избавление от похмелья[/url] По ссылке — подробная информация для нашего города. Проверено на себе. Быстрая капельница от алкоголя — верните себя к жизни!

  4. Greetings to this detailed Vegas Hero Casino review, in which we embark a close examination into what makes this platform an acclaimed choice for local gamers [url=https://vegas-hero-gb.pages.dev]Casino vegashero[/url] . If you are looking for a thrilling digital casino journey, investigating Vegas Hero uk choices might just lead you to an ideal top destination. Known for its sleek design alongside a massive game selection, Casino Vegas Hero continues drawing attention within the industry. Many players regularly question, is Vegas Hero safe and legal? We seek to answer that and provide all the essential information required prior to registering.

    When you visit vegashero Casino, visitors get met by an advanced metropolis lobby filled with luminous displays and an intuitive layout. The platform offers an enormous catalogue of slots, classic tables, alongside live host sessions driven by many premier leading studio creators within the trade. Following numerous Vegas Hero reviews, site movement stays seamless, plus mobile responsiveness certifies users may enjoy your favourite games anywhere with zero trouble.

    Protection and honesty stand paramount for Vegas Hero. The site employs cutting-edge cipher methods to secure user details alongside fiscal transfers, offering members complete calm. Furthermore, overall expert opinion underscores the speed regarding their player assistance staff, who remain prepared to aid concerning each profile plus banking questions swiftly.

    To wrap up the current analysis, the platform delivers a thrilling and secure setting for each of new and experienced gamblers. Whether you are turning reels or testing luck concerning blackjack, the venue merges fun alongside solid safety measures. If you want to experience top-tier play tailored for local gamblers, Vegas Hero emerges as a formidable contender. Dive into gameplay right now thus discovering why countless enthusiasts speak highly of Vegas Hero.

  5. Wenn Sie auf der Jagd nach einer frischen plus aufregenden Webprasenz fur digitales Glucksspiel gehort, mussten ihr sich das Cazeus Casino beaugen [url=https://cazeus-casino-23.ajomolurid646.workers.dev]cazeus casino online[/url] . Innerhalb dieser Cazeus Casino Review werfen das Team einen tiefgehenden Blick auf die Produktpalette, das Sortiment nebst die Bedienbarkeit des Webauftritts, welche unter der Adresse cazeus-casino-23.ajomolurid646.workers.dev erreichbar ist. Die Online-Spielhalle hat umgehend einen Namen gemacht, da das Haus eine beeindruckende Vielfalt an Slots, Tischspielen inklusive Live-Angeboten bereitstellt, die weder fur Einsteiger wie fur geubte Spieler attraktiv sind.

    Viele User veroffentlichen ihre Cazeus Casino Erfahrungen in verschiedenen Foren und Vergleichsseiten. Jene vorherigen Cazeus Reviews gestalten dabei gro?tenteils erfreulich hin, vor allem sofern das Thema betreffend das Tempo der Gewinnauszahlungen und die Vielfalt der Promotionen dreht. Gleichfalls fur User von dem Segment Cazeus Deutschland erscheint die Plattform dank der intuitiven Navigation sowie der modernen Grafik besonders reizvoll. Falls Sie euch fragen, inwieweit dieses Portal euren individuellen Anspruchen genugt, rentiert es, verschiedene Cazeus Casino Reviews mal durchzusehen, gefolgt von ein umfassendes Konzept hinsichtlich die Vertrauenswurdigkeit und die Unterhaltung dahingehend bekommen.

    Ein gro?er Nutzen an dem gewahlten Portal stellt die Web-App, wobei das Cazeus Casino nahtlos auf Mobilgeraten sowie Tablets funktioniert. Eine Registrierung gestaltet sich unkompliziert, sowie auch der Kundensupport wurde innerhalb aktuellen Cazeus Bewertungen oft fur seine flotte Reaktionszeit gefeiert. Wer, welcher eine Cazeus Review sucht, wird bald feststellen, dass hier die Seite durch Offenheit und ein breites Angebot von etablierten Studios begeistert. Alles in allem bietet die Online-Spielhalle ein rundum geschutztes sowie unterhaltsames Portal an alle, die ihr Gluck bei traditionellen plus modernen Casino-Spielen testen mochten. Falls ihr auf Vielfalt sowie ein Spielerlebnis bauen, ist dieses Casino eine hervorragende Wahl. Checken man sich eigenstandig hinsichtlich den vorhandenen Moglichkeiten plus schwenken ihr einen Fokus bezuglich das neue Portfolio, das fur jeden die passenden Titel bereithalt.

  6. Помощь можно получить анонимно, с аккуратным оформлением и внимательным отношением к личным данным.
    Получить больше информации – [url=https://vyvod-iz-zapoya-balashiha15-1.ru/]вывод из запоя дешево[/url]

  7. Обошли кучу салонов, насмотрелись на разные варианты. Мы решили попробовать. кухня Глория — Без посредников, без накруток. Помогли рассчитать кухню на заказ под наш бюджет. Мы очень довольны. Идите к производителю. кухни глория отзывы [url=https://yerkramas.org/article/201408/kvadratnye-metry—ne-prigovor-kak-pravilno-vybrat-kuxnyu-na-zakaz-v-sankt-peterburge]кухни глория отзывы[/url] Там все контакты и условия для Ленобласти. Это надёжный производитель. Кухни на заказ — качество от производителя!

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

  9. Αν ανακαλύπτετε μια φρέσκια αλλά μοναδική περιπέτεια εντός του κόσμο από games, το baxterbet αποτελεί κάποια από τις εξαιρετικά πολλά υποσχόμενες προτάσεις σχετικά με όλους τους Ελλαδίτες επισκέπτες [url=https://baxter-bet-100.vercel.app]baxter bet[/url] . Η πλατφόρμα baxter bet έχει επιτύχει να κερδίσει την εμπιστοσύνη του κόσμου παρέχοντας μία πλούσια λίστα από εφαρμογές, μοντέρνο σχεδιασμό συν σίγουρες στις αναλήψεις. Το baxterbet casino θα έχει σχεδιαστεί με στόχο την ευκολία επαφής, επιτρέποντας στους χρήστες πως εξερευνήσουν γρήγορα εντός με πολλούς επιλογές φρουτάκια, table παιχνιδιών και δυνατότητες live dealer.

    Αρκετοί χρήστες εκείνοι που επιθυμούν κάποιο baxter bet casino υπογραμμίζουν την επιτάχυνση κατά την λειτουργία της σελίδας, η οποία φαντάζει απόλυτα συμβατή με mobile τηλέφωνα. Επιπρόσθετα, το casino baxterbet δίνει μεγάλη έμφαση στην ποιότητα των εταιρειών games, συμπράττοντας με τα σημαντικότερα ονόματα του χώρου για να να εξασφαλίσει έντιμο session συν μεγάλες αποδόσεις. Για εκείνους που ενδιαφέρονται περί κάποιο baxterbet casino greece, η πλατφόρμα προσφέρει ειδικές υπηρεσίες καθώς και υποστήριξη η οποία απαντά τις ανάγκες των επισκεπτών στην Ελλάδα.

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

    Ψάχνοντας το baxterbet gr, θα μάθετε πως αυτή η πλατφόρμα δίνει βάση σε προηγμένα συστήματα ασφάλειας, θωρακίζοντας τα προσωπικά στοιχεία των μελών της. Εάν θέλετε μια άρτια λύση σχετικά με το παιχνίδι σας, το baxterbet αποτελεί αναμφίβολα έναν προορισμό που αξίζει πως ελέγξετε. Διαθέτοντας συνεχή ανοδική πορεία στον κλάδο των διαδικτυακών games, το site παρέχει όλα τα απαραίτητα εργαλεία με σκοπό μια εξαιρετική εμπειρία gaming από την ασφάλεια του σπιτιού σας ή εν μετακίνηση. Δείτε τώρα τις δυνατότητες που παρέχει το baxter bet και χαρείτε τις λύσεις κάποιου site που θέτει τον παίκτη στο κέντρο.

  10. chickenroad-jequed

    Openness and user secrecy stay at the pinnacle of the gaming journey at Chicken Road [url=https://chickenroad-casino-review.org/cookie-policy]Chicken Road[/url] . As a platform committed to delivering straightforward and exhaustive reviews, Chicken Road works with a definite pledge to information security. The website retains a nuanced data guideline designed to inform visitors about the manner facts are compiled and employed to refine surfing functionality and customize the entire session. By accessing the portal, players accept the application of said analytical tools, that constitute typical procedures within the digital sphere to guarantee a smooth and safe portal.

    The cookie standard for ChickenRoad explains the distinction among session and permanent files. Temporary cookies act as temporary items which persist only while you remain browsing, while permanent trackers remain on your system to store your preferences for subsequent sessions. These instruments permit ChickenRoad to remember settings, including language options or layout configurations, that negates the necessity for hand-operated adjustments any time you come back. Moreover, the portal uses statistical cookies to comprehend how traffic moves through the portal. By analyzing the sections rank as most viewed, the team supporting Chicken Road can continuously refine material and boost the ease of use of their reviews.

    Information protection is a priority, and the data collected via these tools are carefully managed in line with current confidentiality rules. ChickenRoad ensures that every detail gathered gets utilized solely to boost platform efficiency and fails to harm the privacy of the single visitor. You possess the power to manage your cookie preferences at any moment using your browser settings, although deactivating them may influence some engaging functions of the portal. By entering Chicken Road, you are confirming the use of said functional utilities as presented in the formal papers. This commitment to openness is a segment of what create the portal a reputable guide for gamers hunting for trustworthy details. For those who value secrecy during navigating the world of digital betting, the method taken by ChickenRoad yields peace of mind simultaneously preserving a functional and efficient surfing atmosphere.

댓글 달기

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