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”의 20,140개의 댓글

  1. При продолжительном запое в крови накапливаются продукты распада этанола, нарушается работа нервной, сердечно-сосудистой, пищеварительной и других систем. Человек может испытывать головной боль, тошноту, рвоту, тревогу, бессонницу, выраженную слабость, тремор, скачки артериального давления. Абстинентный синдром развивается после резкого отказа от спиртного и в тяжелых случаях способен сопровождаться галлюцинациями, судорожных припадками, паническими атаками, нарушением поведения и угрозой для жизни. Поэтому вывод из запоя желательно проводить под контролем специалиста, особенно если запой длится несколько суток или зависимый имеет заболевания сердца, печени, почек либо психиатрические расстройства.
    Узнать больше – https://vyvod-iz-zapoya-podolsk77.ru/

  2. free spiny dnes zadarmo bez podmienok ruleta online stГЎvky
    hracie automaty casino bedste live casino grand mondial casino registracia Online kasino za peniaze vulkanbet 25 € no deposit top online casino real money
    ДЌeskГ© casino bonus bez vkladu live online casino

  3. Wenn Sie hinter einer hervorragenden Abwechslung im virtuellen Bereich sind, ist spinogambino die Top-Anlaufstelle fur Gamer in der Schweiz [url=https://spino-gambinospiel.ch]spinogambino ch[/url] . Das Angebot spinogambino ch prasentiert eine gro?artige Auswahl an Slots, die keine Wunsche offenlassen. Wer sich fur das spinogambino bet Portfolio entschlie?t, gewinnt von einer einfach bedienbaren Umgebung, die Schutz und Unterhaltungswert optimal verknupft. Das casino spinogambino hat sich in wenigen Momenten einen Status aufgebaut, da es moderne Software mit einer einfachen Bedienung verschmilzt.

    Falls Sie das spinogambino casino aufrufen, tauchen Sie in eine Sphare reich an fesselnder Slots und klassischer Tischspiele hinein. Viele User fahnden bewusst nach casino spino gambino, um von den transparenten Auszahlungsquoten und den attraktiven Promotionen zu zehren. Als ein fuhrendes spinogambino online casino setzt der Anbieter hohe Normen in Bezug auf Ehrlichkeit und Nutzergluck. Besonders fur Spieler aus der Region ist das spinogambino casino schweiz eine ausgezeichnete Option, da die Webprasenz exklusiv auf die Anspruche des regionalen Marktes ausgelegt ist.

    Die Pluspunkte bei einem spino gambino online casino sind offensichtlich: Neben einer breiten Spielvielfalt genie?en Sie einen erstklassigen Kundendienst und schnelle Gewinnauszahlungen. Das spinogambino online casino schweiz sichert dadurch eine sichere Atmosphare, in der Ihre Personlichkeitsrechte immer sicher bleiben. Egal, ob Sie ein versierter Profi oder ein Neuling sind, spino gambino hat fur jeden Typ das passende Spielerlebnis. Die visuelle Aufmachung und die reibungslose Leistung bewirken, dass Sie stets in die Dimension des Glucksspiels eintauchen konnen. Sofern Sie also nach einer sicheren Webseite recherchieren, bei der Action an oberster Stelle steht, dann ist dieses Casino genau das Richtige fur Sie. Ansteuern Sie die Onlineprasenz und erfahren Sie personlich, weshalb so zahlreiche Schweizer Zocker auf diesen Anbieter setzen. Die Mischung aus Vergnugen, Schutz und einem hochwertigen Layout transformiert diesen Provider zu einem der fuhrenden Webseiten, um sein Schicksal im Netz auf die Probe zu stellen. Probieren Sie es aus und spuren Sie, wie facettenreich und aufregend digitales Spielen sein kann. [url=http://evsagro.com/bbs/board.php?bo_table=inquiry&wr_id=471]Warum SpinoGambino die erste Wahl ist: Exzellentes Spielvergnugen fur Schweizer Zocker – Sicher und attraktiv![/url] [url=https://acroxer.com/bbs/board.php?bo_table=Anatomy_Forum&wr_id=428769]Warum SpinoGambino[/url] 327adfe

  4. Betandplay Casino Australia has become a top-tier online gambling platform for casino lovers pursuing a smooth and rewarding adventure [url=https://bet-and-play-casino-9.onrender.com]Bet And Play Reviews[/url] . Whether you’re a longtime casino veteran or just starting in the world of virtual betting houses, this venue presents a varied selection of pastimes, bonuses, and perks customised for Australian players.

    In this BetAndPlayCasino Guide, we’ll uncover what makes this casino, its key offerings, and why it could be a worthwhile investment.

    Bet And Play Casino is well-known for its easy-to-navigate layout, allowing gamblers to traverse diverse activities, including video slots, table games, and interactive alternatives. The network supports multiple payment methods, guaranteeing convenience for deposits and payouts. Whether you choose traditional banking, virtual purses like Neteller, or even blockchain assets, Bet And Play aims to ensuring flexibility for all kinds of enthusiasts.

    One of the exceptional features of Bet And Play is its plentiful welcome bonus for first-timers. This typically includes a match deposit offer, free spins, or cashback perks, granting players a boost in their betting adventure. Additionally, the hub regularly revises its promotions, confirming there’s always something thrilling to expect. Elite memberships and golden privileges even more enhance the venture, granting elite rewards to frequent enthusiasts.

    In a Bet And Play Analysis, it’s vital to consider protection and fairness. Betandplay works under demanding legal guidelines, ensuring that all games are honest and that casino investments are shielded. The use of secure systems confirms your personal and monetary particulars stay safe, which is crucial for every internet casino venue.

    For those looking for a consistent BetAndPlayCasino Online, this site shines due to its commitment to providing a smooth and pleasurable casino venture. With a wide choice of entertainments, competitive deals, and exceptional customer support, it’s a compelling player in the Down Under virtual betting market. Whether you’re playing for thrills or hoping for massive payouts, Bet And Play delivers a site prized discovering. Always bear in mind to wager responsibly and keeping your budget.

  5. malinacasino-trete

    Αναζητάτε την μοναδική εμπειρία στον κόσμο του online gaming; Το malina casino είναι έναν από τους πιο δημοφιλείς προορισμούς για τους παίκτες που αναζητούν αξιοπιστία, ποικιλία και κορυφαία διασκέδαση [url=https://malinacasino-2.pages.dev]casino malina[/url] . Αν κάνετε μια έρευνα για malina casino review, θα διαπιστώσετε ότι η πλατφόρμα αυτή έχει αποσπάσει την εμπιστοσύνη του κοινού χάρη στην πλούσια συλλογή παιχνιδιών και την εξαιρετική λειτουργικότητα της.

    Το casino malina προσφέρει μια ευρεία γκάμα από φρουτάκια, τραπέζια ζωντανού καζίνο και άλλες δυνατότητες που ικανοποιούν κάθε γούστο. Για όσους αναζητούν malina casino κριτικεσ, είναι σαφές ότι η ευκολία πλοήγησης και το εύχρηστο περιβάλλον χρήστη αποτελούν τα σημαντικότερα σημεία του. Παίζοντας στο malina casino online, οι χρήστες έχουν την ευκαιρία να απολαύσουν μια σταθερή και ασφαλή πλατφόρμα, η οποία ταιριάζει τέλεια στις ανάγκες των παικτών.

    Ειδικότερα για το malina casino ελλαδα, ο ιστότοπος έχει αναβαθμιστεί ώστε να προσφέρει γρήγορη πρόσβαση και υποστήριξη σε τοπικό επίπεδο. Πολλοί παίκτες που αναζητούν malina casino gr διαπιστώνουν ότι οι συναλλαγές τους πραγματοποιούνται με ασφάλεια και ταχύτητα. Η παρουσία του malina casino greece στην ελληνική αγορά βελτιώνεται συνεχώς, παρέχοντας κίνητρα και προσφορές που αναβαθμίζουν το παιχνίδι.

    Αν πληκτρολογήσετε casinomalina στον browser σας, θα μεταφερθείτε σε έναν κόσμο γεμάτο δυνατότητες, όπου η ποιότητα των γραφικών και οι δίκαιοι όροι παιχνιδιού έχουν τον πρώτο λόγο. Είτε είστε έμπειρος παίκτης είτε αρχάριος, το malina casino παρέχει όλα τα απαραίτητα μέσα για μια ολοκληρωμένη εμπειρία. Η αξιοπιστία που χαρακτηρίζει το malina casino online το καθιστά ιδανική επιλογή για όσους δεν θέλουν να κάνουν εκπτώσεις στη διασκέδασή τους.

    Εν κατακλείδι, το malina casino αποτελεί μια από τις καλύτερες επιλογές για το ελληνικό κοινό σήμερα. Με σταθερή ανοδική πορεία, πλούσιο περιεχόμενο και έμφαση στην ασφάλεια, είναι σίγουρο ότι το casinomalina θα συνεχίσει να ξεχωρίζει στις προτιμήσεις των παικτών που αναζητούν μια ασφαλή και συναρπαστική πλατφόρμα για online παιχνίδι. Δοκίμασε την τύχη σας και δείτε γιατί θεωρείται κορυφαίο στον κλάδο του.

  6. Within the swiftly changing realm of virtual amusement, game buffs are persistently searching for portals that merge their passion for the sport with the excitement of betting [url=https://cricket-road-19.aseniru152.workers.dev]real cricket road game[/url] . This site that has recently captured notice is the cricket road platform. While fans seek for the cricket road game to participate with, it is crucial to realize what this destination presents to the deshi gaming community. The cricket road game online presents an immersive session where players can engage in varied challenges. Numerous players are curious about whether they can earn cricket road game money through their involvement, rendering it a popular topic of debate amidst online gaming forums.

    To start, you should preliminarily visit the cricket road login page. Afterwards, you can discover the capabilities of the cricket road casino section provided you are scouting for a combination of sporting thills and traditional gaming aspects. Because there are numerous imitations, players are encouraged to search for the cricket road game original version to verify a protected and trustworthy interface. Employing the official cricketroad portal guarantees that you are visiting the legitimate site instead of a fake clone.

    Regardless if you are a laid-back player or a skilled pro, the cricket road online game is crafted to be available on different devices. Once you perform your cricket road game login, check that you are employing a secure internet hub to guard your credentials. While the fame of the real cricket road game persists to rise, it is vital to remain current about the newest upgrades and site features. Constantly remember to wager responsibly and be aware of the terms linked with any cricket road game money features. By selecting the official platform, you guarantee a smoother experience and better security for your gaming tasks. Provided you are ready to evaluate your skills and ardour for cricket, the cricketroad experience is awaiting for you to jump in and begin playing today.

  7. Она пила неделю, потом вторую. Вызвала нарколога на дом. капельница от алкоголя — Через два часа сестра пришла в себя. Цена оказалась приемлемой. Лучше сразу вызвать специалиста. Вывод из запоя на дому реально помогает. выведение из запоя спб [url=https://detoks.vyvod-iz-zapoya-na-domu-spb.ru]выведение из запоя спб[/url] По ссылке — подробная информация для Ленобласти. Хотите быстро вывести из запоя — переходите по ссылке. Вывод из запоя на дому — быстро, анонимно, эффективно!

  8. BetAP Casino Online Gaming Platform Down Under Gaming has risen as a go-to online gaming site for punters pursuing for a seamless and enriching adventure [url=https://bet-and-play-casino-10.senubagij01.workers.dev]Bet And Play Casino Australia[/url] . Whether you’re a veteran player or brand-new to the realm of digital betting, understanding the standout elements and credibility of Betandplay Casino is key before entering.

    This analysis unpacks what defines BetAP Gaming apart, its perks, and why it may be a best pick for local players.

    Bet And Play Casino is engineered with player convenience in view, delivering a vast selection of titles that suit different tastes. From classic slots and desk titles to live-hosted features, the network assures there’s an option for everyone. The site’s design is intuitive, making navigation effortless for all newcomers and experienced gamers. One of the key features is its generous launch offer, which commonly comprises bonus spins and cashback deals, providing gamers bonus rewards upon joining.

    For those hunting a trustworthy and honest platform, Betandplay Casino has received favourable BetAP Online feedback from many punters. The site functions under tight laws, assuring honest betting and shielded funds. Approval and protection protocols are emphasised, giving bettors confidence when adding funds and gambling. Additionally, the site allows varied deposit options, featuring digital wallets and bank transfers, making it simple for local gamers to organise their capital.

    A BetAP Gaming breakdown would be lacking without covering player service. The site provides live help through live messaging, assuring that all concerns or challenges are solved promptly. This standard of help is crucial for preserving a excellent entertainment session, most importantly for those who possibly face bugs or seek help on entertainment policies.

    While Betandplay Casino has a lot, it’s constantly sensible to compare it with competing choices in the industry. Numerous players share their experiences in BetAP Online testimonials, highlighting all the pros and downsides. For case, some may applaud the variety of titles, while others could highlight the significance of smart playing rules. Knowing these angles can help bettors make an informed pick.

    In conclusion, Betandplay Down Under is a reliable pick for online casino fans pursuing for a thorough network. With a easy-to-navigate layout, generous offers, and firm security measures, it stands out as a legitimate selection in the fast-paced virtual betting environment. Whether you’re betting for relaxation or going for large payouts, Betandplay Casino provides an captivating journey that matches with the expectations of Australian players. Constantly confirm you wager responsibly and investigate BetAP Online feedback to remain updated on the newest updates.

  9. купить амф купить закладку наркотиков Мефедрон купить, кокаин купить купить метадон купить мефедрон магазин купить мефедрон телеграмме
    купить канабис трамадол 50 мг купить трамадол 50 мг таблетки купитьhttps://pervouralskkupit.xyz где можно купить гашиш можно купить таблетки трамадол

  10. cricket-assence

    Regarding aficionados of electronic sports amusement, the cricket road game has appeared as a popular hub that blends the thrill of sporting with interactive virtual features [url=https://cricket-road-20.pages.dev]cricket road[/url] . If you are searching to investigate the cricket road online game, it is crucial to understand how this environment operates and what it provides to its participants. Many people are fascinated about the potential to earn cricket road game money while savouring their preferred sport in a virtual format. By reaching the website through a trusted cricket road login, contestants can immerse into a sphere of challenging action and strategic gameplay.

    When you browse to the authorised cricket road game site, you will discover an interface built for fluid performance. It is vital to separate the cricket road game original platform from third-party mirrors to ensure your private security. The cricketroad journey is structured around delivering a stable gaming surroundings where participants can test their abilities. Regardless of you are hunting for a real cricket road game to spend the time or looking to engage in more focused play, the portal supplies options for diverse player preferences.

    Commencing is simple with the cricket road game login procedure. Once you have registered an account, you can inspect the distinct styles available within the cricket road casino segment, which integrates original gaming mechanics with traditional cricket ideas. Because the cricket road online game has attained significant traction across India, numerous players are now enrolling frequently to climb the standings. Always keep in mind to participate responsibly when dealing with any venue that involves the cricket road game money factor.

    As you embark on your adventure with cricket road, ensure you are utilising the precise URL to maintain account protection. The cricket road game keeps to develop, adding novel features and updates to preserve the fanbase connected. Regardless of whether you are a casual fan or a committed enthusiast, the cricket road game offers a unique approach to enjoy the sport from the comfort of your mobile device or workstation. Explore the cricketroad world today and observe why so numerous players are choosing it their primary hub for online sports gaming.

댓글 달기

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