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”의 18,408개의 댓글

  1. the fast-rising brand in this particular casino market is the Betandplay platform, providing the wide array of entertainment tailored for both casual players and hardcore betters [url=https://bet-and-play-81.onrender.com]Bet And Play Casino Australia[/url] .

    Whether you’re exploring for honest evaluations or an full analysis, grasping its features, protection, and engagement is essential before committing your resources.

    One notable aspect of the site is its straightforward layout, which simplifies exploring for players. The website looks optimised for ease of use, promising that newcomers can rapidly find their loved games devoid of annoyance. For players unaccustomed with virtual betting, the site appears to deliver straightforward guides and service, enabling it more convenient to begin.

    Nevertheless, just virtual casino, it’s necessary to confirm its validity and licensing before attempting deposits.

    Protection is one of the top priority for every online gambling casino, in this case in Australia where rules are rigorous. Betandplay states to value player safety through data protection tools and transparent gaming procedures. While that is a reassuring point, carrying out a rigorous assessment can assist prove whether these stated steps are genuinely operational. Users should also look for unbiased inspections or certifications that authenticate the platform’s fairness.

    A significant consideration in some analysis is the variety of playing choices on offer. From classic video poker and traditional playing to real-time choices, a comprehensive selection ensures there’s variety for everyone. The site may include deals, exclusive deals, and member benefits to boost the gaming experience, which can be a important element for quite a few players. Nevertheless, it’s wise to check the conditions of these deals to steer clear of hidden restrictions.

    For people researching digital gambling options, it’s also beneficial to assess it with alternative platforms. While The platform might currently possess the same track record as certain betting platforms, its expanding trend suggests it’s justified tracking. Reviewing authentic user testimonials from multiple gamblers can provide firsthand views into the platform’s functionality, assistance, and overall satisfaction.

    Ultimately, This casino showcases some potential contribution to the Down Under casino market. Whether you’re searching for some approach to experience internet casinos or pursuing an in-depth guide, it’s essential to consider the platform with caution. Always focus on licensed secure and honest betting platforms to promise a risk-free and enjoyable session. Staying knowledgeable through reliable user testimonials will assist you to take the top call for your playing wants.

  2. spinmama-Snamigo

    Wer, welche beim Stobern nach exzellenter Unterhaltung plus attraktiven Extras ist, sollte unbedingt die Plattform spinmama-anmeldung.ch/bonus aufrufen [url=https://spinmama-anmeldung.ch/bonus]spin mama bonus code[/url] . Fur User in der Eidgenossenschaft profitieren Sie durch exklusiven Angeboten, diejenigen den Beginn in die Dimension des Online-Glucksspiels massiv aufwerten. Besonders jener spinmama bonus wird fur Neukunden extrem beliebt, indem er das Startkapital nachhaltig pusht und dadurch mehr Spielzeit ermoglicht.

    Damit hinsichtlich diesen Boni zu profitieren, wird regelma?ig ein spezieller spinmama bonus code notig. Achten Sie wahrend der Anmeldung akribisch darauf, den gultigen spinmama code bonus anzugeben, damit Ihnen die Gutschrift fest zugesagt wird. Zahlreiche Spieler uberlegen, ob es ebenfalls ein spinmama bonus code free gibt. Das Ergebnis lautet: Klar, falls ihr die passenden Seiten nutzen, werden ihr sich besondere Vorzuge sichern. Ebenso jener spin mama bonus code gilt als ein entscheidender Ausdruck, hinsichtlich dessen ihr Ausschau halten mussten.

    Derjenige, die bezuglich eines spin mama casino bonus code sucht, erhalt auf der genannten Seite sofort Resultate. Ein echtes Glanzlicht fur zahlreiche Zocker bleibt jener spin mama bonus ohne einzahlung. Jener spin mama bonus code free gilt als extrem popular, da dieser hierbei gestattet, die Plattform ganzlich ohne Kosten auszuprobieren. Sofern man gezielt wegen eines spinmama casino no deposit bonus fahnden, offeriert euch unser Vergleich alle notigen Informationen.

    Kurz gesagt kann man festhalten, dass der bonus spinmama eine exzellente Methode bleibt, um die gesamte Kapazitat der Seite zu nutzen. Denken Sie daran, beim Erstellen des Accounts den richtigen code bonus spin mama einzugeben, sodass keine Chance auf Bonusguthaben zu versaumen. Der spin mama bonus bleibt gerecht aufgebaut sowie offeriert sowohl Anfangern wie auch langjahrigen Zockern einen echten Mehrwert. Besuchen Sie spinmama-anmeldung.ch/bonus jetzt direkt auf, kontrollieren Sie die aktuellen Bedingungen zudem ergattern Sie Ihren eigenen Bonus. Mit dem richtigen Code bleibt Ihrem nachsten gro?en Gewinn auf dieser Seite nichts weiter entgegen. Gutes Gelingen bei Ihren Runden zudem haben Sie Spa? bei die Sessions.

  3. Нужна срочная медицинская помощь? Капельница от запоя с выездом врача реально помогает. Советую глянуть источник:
    нарколог на дому капельница цена [url=https://narkolog.kapelnicza-ot-zapoya-ektb-cdb.ru]https://narkolog.kapelnicza-ot-zapoya-ektb-cdb.ru[/url]
    Реальные условия и отзывы. Вызвать нарколога — лучший выход, ведь капельница выход из запоя помогает быстро прийти в себя.

  4. Мы уже смирились. Скорая отказалась госпитализировать. Я начал искать частную помощь. Капельница от запоя — Осмотрел отца, поставил капельницу. Затем поел. Сказал, что при необходимости можно повторить. Сейчас отец не пьёт уже два месяца. Если у вас похожая ситуация — не ждите. прокапаться от запоя цена [url=https://detoks.kapelnicza-ot-zapoya-ektb-cdb.ru]прокапаться от запоя цена[/url] По ссылке — подробная информация для Урала. Хотите быстро вывести из запоя — переходите по ссылке. Капельница от запоя — спасение для всей семьи!

  5. chickenroad-Triem

    Εφόσον θέλετε την συναρπαστική περιπέτεια στον χώρο συγκεκριμένων διαδικτυακών slots, το chicken road συνιστά κάποιον από τους πιο ιδιαίτερα γνωστούς προορισμούς σε αυτούς τους χρήστες σε αυτή την ελλάδα [url=https://chickenroad-gr-17.pages.dev]chicken road casino[/url] . Είναι σαν κάποιο καινοτόμο chicken road game που κατάφερε να αποκτήσει την προτίμηση εκ μέρους του κοινού εξαιτίας της ευκολία και αυτή τη διασκεδαστική συγκεκριμένη φύση. Η πλατφόρμα chickenroad χαρίζει μια ξεχωριστή εμπειρία που μόλις συνδυάζει τη μεθόδευση μαζί με κάποια ευκαιρία, καθιστώντας το πρώτη πρόταση όσον αφορά πολλούς που γυρεύουν ό,τι άλλο από τα παραδοσιακά φρούτα.

    Το chicken road slot παραμένει φτιαγμένο βάσει στόχου τη μέγιστη απόλυτη ικανοποίηση από τον παίκτη, δείχνοντας σχέδια μεγάλης ποιότητας αλλά και απρόσκοπτο session σε πασα device. Αρκετοί παίκτες ψάχνουν το chicken road game casino ώστε να μπορέσουν να ελέγξουν τις δικές τους δυνάμεις τους ενώ να μπορέσουν να διεκδικήσουν σοβαρές νίκες εντός ένα ασφαλές χώρο. Είτε τελικά παραμένετε αρχάριος είτε παλιός παίχτης, το gameplay είναι πολύ σαφές, γεγονός που ακριβώς φανερώνει για ποιον λόγο αυτές οι chicken road κριτικεσ βρίσκονται στην μεγάλη πλειοψηφία αυτών εξαιρετικά θετικές. Η κοινότητα από τους gamers σε αυτή τη επικράτεια μας ευρύτερα εξυμνεί σταθερά αυτή την εφαρμογή λόγω για την σοβαρότητα αυτής.

    Δια μέσω της παρουσίαση συγκεκριμένου chicken road 2, οι ίδιοι προγραμματιστές μπόρεσαν να ανεβάσουν στον στόχο ακόμα πολύ μακριά, εισάγοντας φρέσκες επιλογές και αναβαθμισμένα προσόντα που μόλις κρατούν το όλο πάθος αδιάπτωτο. Το chicken road casino προσφέρει τη πλατιά γκάμα επιλογών, διασφαλίζοντας ότι οποιοσδήποτε παίκτης θα εντοπίσει ό,τι που πραγματικά του ταιριάζει. Εφόσον γυρεύετε να μπορέσετε να δείτε παραπάνω αναφορικά με το chicken road συνιστά σαν υπέρτατο trend αυτήν εδώ εποχή, μην έχετε μόνο να δείτε αυτή την επίσημη site τους. Η εμπειρία που τελικά δίνει το chicken road σε αυτή την ελλάδα είναι αξέχαστη, καθώς ανακατεύει την ένταση επίσης την ευκολία πρόσβασης. Μην αφήνετε τη χρυσή ευκαιρία να μπορέσετε να βρείτε πώς άπαντες συζητούν σε το εν λόγω κάποιο παιχνίδι. Μεταβείτε άμεσα μέσα στο chicken road μαζί με ζήστε τη περιπέτεια μπροστά στην οθονίτσα εσάς, γευόμενοι μια από τις πολύ διασκεδαστικές ιδέες στον χώρο διαδικτύου συγκεκριμένων online slots, στην οποία κάθε round είναι δυνατόν να καταφέρει να εσωτερικεύει τη σοβαρή έκπληξη ζωής.

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

  7. betandplay-alets

    One standout virtual gaming platform recognized as Betandplay is capturing enthusiasm from local players pursuing for a dependable and addictive playing adventure [url=https://betandplay-81.pages.dev]Bet And Play Reviews[/url] .

    As one fast-growing entity in the down-under digital casino arena, The Bet And Play Casino delivers the array of options, rewards, and the user-friendly interface tailored to serve every occasional and seasoned gamblers. Whether you’re hunting for a in-depth Bet And Play assessment or plainly looking to dive into The Bet & Play Hub, grasp its aspects, pros, and track record is key before finalizing your initial funding.

    The key feature of Betandplay Gaming is its availability. The platform is engineered for handheld and PC punters, assuring an effortless entertainment experience regardless of device. With the rich selection of entertainment, spanning reel-based titles, live play, and live facilitated options, gamblers can relish an varied selection of games from premier game developers. The highlight of trending games like Mega Moolah and The Starburst adds to its charm, establishing it an solid choice in the Aussie Bet And Play Casino Review arena.

    For newbies gamblers, Betandplay frequently offers welcome promotions and deals to enhance their entertainment venture. These packages can feature free rounds, matching perks, or cashback incentives, which are common in the Bet & Play Digital Hub. That said, it’s critical to examine the guidelines diligently, as many promotions may include stake rules or restrictions.

    When weighing trusted Bet And Play assessments, player reviews and independent checks take the crucial place in establishing the platform’s legitimacy. While Bet And Play’s digital den has earned favorable notices for its title range and client assistance, it’s forever wise to verify with additional resources to verify transparency. Trusted digital gaming sites in Australia must comply strict licensing and defense rules, and Bet And Play shows to comply with these standards, creating a secure setting for payments.

    An consideration to evaluate is the selection of transaction ways supported on Betandplay. The platform commonly allows convenient choices like credit wallets, virtual wallets, and financial transfers, guaranteeing hassle-free deposits and exits. Swift turnaround periods and secure fundings are major elements that help to an favorable Bet & Play Hub.

    To recap, Bet And Play Casino Australia is a destination absolutely exploring for players seeking some comprehensive digital entertainment venture. Whether you’re analyzing the detailed Bet And Play analysis or choosing to test it out, understanding its offerings, deals, and player stories will enable you to commit to the well-researched decision. Constantly play wisely and verify you’re gambling on the and approved platform to enjoy a trustworthy and enjoyable experience.

  8. Wahrend des Gebrauch bei digitalen Gaming-Seiten ist der Schutz der eigenen Privatsphare ein wichtiges Thema fur Anwender [url=https://spino-gambinoreview.ch/datenschutzrichtlinie]spinogambino[/url] . Wer das das Angebot von spinogambino interessiert, sollte sich deshalb eingehend mit den geltenden Bestimmungen beschaftigen, die im Bereich spino gambino datenschutzrichtlinie abrufbar sind. Besagte Dokumentation fungiert als offen gelegtes Regelwerk, um aufzuzeigen, in welcher Form individuelle Informationen aufgezeichnet, verarbeitet und sicher gespeichert werden. Klarheit gilt hierbei als ein wichtiger Grundstein, um das Vertrauen der Kunden langfristig zu erlangen sowie zu untermauern.

    Wenn Sie auf der Homepage von spinogambino unterwegs sind, sind verschiedene technische Informationen analysiert. Dazu gehoren Netzwerk-Adressen, Browserdaten und einzelne Aktivitatsprofile, die den Zweck verfolgen, das Spielerlebnis ma?geschneidert zu verbessern plus den Schutz der Plattform zu gewahrleisten. Das Regelwerk auf der Seite spino gambino erklart ausfuhrlich, zu welchen Zwecken diese Daten genutzt werden und welche juristischen Basisdaten hierfur vorliegen. Das ist fur samtliche Teilnehmer empfehlenswert, sich jene Inhalte genau durchzulesen, um eine komplette Ubersicht hinsichtlich der personlichen Cyber-Sicherheit zu erlangen.

    Eine wichtige Komponente der Vorgabe von spinogambino ist der verantwortungsvolle Umgang mit sensiblen Informationen. Der Anbieter garantiert, neueste Codierungssysteme einzusetzen, um nicht autorisierte Eingriffe durch Unbefugte zu unterbinden. Dabei werden die Vorgaben der Privatsphare-Wahrung strikt eingehalten, um ein sicheres Umfeld fur alle Nutzer zu schaffen. Falls Sie Fragen hinsichtlich der Sicherung Ihrer Daten bzw. hinsichtlich Ihrer gesetzlichen Rechte auf Auskunft, Berichtigung sowie Entfernung besitzen, liefert die Informationsseite von spino gambino klare Ansprechpartner.

    Abschlie?end kann man festhalten, dass ein sorgfaltiger Umgang mit den zur Verfugung gestellten Inhalten bei spinogambino oberste Wichtigkeit besitzt. Wenn Sie sich mit der Datenschutzrichtlinie befassen, fallen Sie eine wohluberlegte Wahl bezuglich Ihres Mitwirkens an den Angeboten. Schutz steht wahrend des Zockens stets an oberster Stelle, plus ein offener Austausch durch die Betreiber von spino gambino wirkt entscheidend mit, dass sich User beim Spielen permanent geborgen fuhlen konnen. Besuchen Sie das zugehorige Portal, um stets uber neue Anderungen informiert zu bleiben.

댓글 달기

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