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”의 19,657개의 댓글

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

  2. spinmachologin-Creeta

    Inside spinmacho, we value the well-being and well-being of our users above all else [url=https://spinmachologin.com/responsible-gambling]spinmacho[/url] . Playing on virtual casinos like spin macho needs to remain a source of fun instead of a method to make money or resolve financial problems. We perceive that for many users, gaming is a relaxing pursuit, but we also recognize that for a tiny fraction of individuals, it can prove challenging. This is the cause we have developed a thorough fair play protocol aimed to provide you with the utilities and helps vital to keep oversight.

    Our platform is dedicated to promoting a positive association with playing. We advise all players to establish individual boundaries before they begin their playing stint. You can oversee your activity by employing our features that empower you to apply deposit limits, risk caps, and playing duration alerts. These devices are meticulously built to aid you stay within your budget and guarantee that your experience continues to be pleasant. If you ever feel that your actions are turning detrimental, spinmacho offers blocking mechanisms that allow you to pause participation from the service for a set period.

    We believe that informed play is reliable betting. Within our safe gaming section, you will uncover useful advice on how to spot the indicators of compulsive betting, like attempting to recoup money or favoring wagering ahead of daily responsibilities. If you discover you are struggling, we list contact information for specialist groups that offer help and counseling for people impacted by gaming complications. Remember, your physical state and financial security are significantly greater than any bet.

    We urge you to check out the safe gaming page at spinmacho regularly to keep current on top strategies and individual safety tactics. By taking mindful choices and remaining cognizant of your individual patterns, you can secure that your time spent with spin macho continues as a constructive and secure encounter. Always gamble mindfully and maintain the entertainment.

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

  4. excellent name in the local online gambling industry is Betandplay, providing visitors with a innovative and user-friendly environment to indulge their beloved gaming games [url=https://bet-and-play-89.pages.dev]Betandplay[/url] . Regardless you’re searching for a secure BetAndPlay Casino Canada or simply intrigued about BetAndPlay Reviews, this manual will guide you grasp what sets this platform apart the pack.

    With a concentration on accessibility and engagement, Bet And Play has rapidly secured notoriety among those pursuing a effortless entertainment venture.

    Between the main benefits of Bet And Play is its focus to delivering a varied selection of activities. Covering classic slot machines and game entertainment to real-time host experiences, the hub ensures there’s an option for every kind of gambler. The BetAndPlay Casino Review commonly commends its user-friendly system, making it easy for both rookies and veteran wagerers to browse the platform. The addition of trusted developer companies like NetEnt Gaming, PG Soft, and Evo Gaming contributes authority and selection, guaranteeing enthusiasts have ample alternatives.

    For those looking for a trusted BetAndPlay Casino Canada, confidentiality and justice are leading focuses. The site employs advanced security tools to protect gambler information and exchanges, delivering assurance while wagering in pastimes. Additionally, the site complies responsible betting practices, supplying features like bet limits and self-imposed pause options to foster responsible gambling behaviors.

    When researching Bet & Play Reviews, many visitors value the generous bonus rewards and promotions available. These incentives can elevate the overall playing journey, turning Betandplay a competitive pick in the domestic digital entertainment scene. Regardless you’re entertaining for pleasure or targeting to win hefty, the venue’s equitable gameplay and advantageous probabilities position it a reliable pick.

    If you’re continue unsure about how BetAndPlay is the right option for you, checking the reviews of Betandplay Casino can provide comprehensive views. Many users commend the venue for its dependability, client help, and broad activity range. With a concentration on both excitement and fairness, Bet And Play continues to create its footprint as a elite online wagering hub in Canada.

    For those set to attempt their chance, BetAndPlay provides a smooth and pleasurable session, rendering it a standout option throughout Bet & Play Casino Canada avenues. Depending you’re a poker fan or a supporter of interactive operator games, this platform provides a comprehensive entertainment venture that serves to multiple preferences.

  5. Εφόσον επιζητάτε μια εκπληκτική εμπειρία στον σύμπαν των παιχνιδιών στο ίντερνετ, τότε το chicken road είναι η απόφαση που θα σας συναρπάσει [url=https://chicken-road-gr-24.web.app]chicken road game[/url] . Αποτελεί για μια από τις πιο αναγνωρίσιμες εφαρμογές που αποκτούν σημαντικό έδαφος στην Ελλάδα, χαρίζοντας στους θαμώνες έναν ιδιαίτερο μίγμα διασκέδασης και ρίσκου. Το chicken road casino έχει υλοποιηθεί με τέτοιο ύφος ώστε να παρέχει μια ομαλή λειτουργικότητα, είτε αθλείστε από desktop είτε από το tablet.

    Το chicken road game οικοδομείται στην λιτότητα και τη τακτική. Οι χρήστες καλούνται να οδηγήσουν το πρωταγωνιστή με προσοχή, προσπερνώντας τα δυσκολίες, σε ένα σκηνικό που θυμίζει τα παλαιότερα arcade παιχνίδια, αλλά με νέες βελτιώσεις. Για τους παίκτες που ψάχνουν την εξέλιξη, το chicken road 2 δίνει ακόμα περισσότερα γύρους και δοκιμασίες, κρατώντας ακμαίο το κέφι. Δεν προκαλεί απορία ότι το chicken road slot είναι σήμερα σημείο αναφοράς για όσους αγαπούν τα ταχύτατα και θετικά διασκεδαστικά στο διαδίκτυο.

    Αναζητώντας chicken road κριτικεσ, θα παρατηρήσετε ότι η κοινότητα των παικτών εκτιμά εμφανώς την άμεση ανταπόκριση και τη σωστή υπόσταση του game. Το chicken road game casino έχει καταφέρει να διαμορφώσει μια σοβαρή ομάδα θαυμαστών, οι οποίοι διαλέγουν την τοποθεσία για τις περιόδους ξεκούρασης τους. Συγκεκριμένα για το κοινό που αγωνιά για το chicken road ελλάδα, η είσοδος διαμέσου της κεντρικής πύλης είναι γρήγορη και άμεση.

    Όταν νιώθετε έτοιμοι να δοκιμάσετε την πρόκληση και τα ακουστικά σας, το chickenroad είναι ο στόχος που οφείλετε να δοκιμάσετε. Η απλότητα του game σε σύνδεση με το δυναμικό gameplay το καθιστούν μια μοναδική λύση για όλον τύπο χρήστη. Μην αφήσετε την ευκαιρία να ανακαλύψετε τις δυνατότητες που προσφέρει αυτή η πλατφόρμα και να βιώσετε τη περιπέτεια από κοντά. Είτε είστε νέοι είτε έμπειροι χρήστες, το game αυτό υπόσχεται έντονες ανατροπές και κεφί σε κάθε πράξη που κάνετε. Ανακαλύψτε το άμεσα και καταστείτε μέρος της αναπτυσσόμενης κοινότητας των οπαδών του.

  6. personalblog-Chienda

    Daca esti in cautarea unor momente de relaxare digitala si vrei sa descoperi de ce oameni tot mai multi sunt fascinati de acest fenomen, trebuie sa vizitezi resursa recomandata [url=https://personalblog-1-0rkt.onrender.com]chicken road pareri[/url] . Aici vei gasi toate informatiile necesare despre popularul chicken road, un titlu care a atras imediat publicul din tara noastra. Indiferent daca esti un jucator veteran sau abia acum incepi aventura in universul jocurilor de noroc online, platforma ofera o analiza aprofundata despre fiecare aspect al experientei de joc.

    Multi pasionati cauta detalii despre chicken road slot pentru a descifra mecanicile din spatele castigurilor. Pe site-ul mentionat, vei gasi o sectiune speciala pentru chicken road pareri, unde utilizatorii isi exprima opinia despre dinamica si grafica acestui joc. Daca te intrebi daca este pe placul tau, sectiunea de jocul chicken road pareri iti va oferi perspectivele utile inainte de a incepe aventura. Popularitatea a crescut atat de mult, incat au aparut deja discutii despre continuarea acestuia, respectiv chicken road 2, iar jucatorii sunt curiosi sa afle daca mecanicile au fost actualizate.

    Pentru cei care cauta chicken road pareri forum, platforma aduna marturii veridice din partea utilizatorilor din Romania. Jucatorii debat cu interes despre strategiile folosite in chicken road casino si cum pot maximiza sansele de succes. Indiferent daca il numesti joc chicken road sau pur si simplu te bucuri de dinamica oferita de acest chicken road game, informatiile de pe site sunt esentiale. De asemenea, daca ai incercat deja chicken road 2 pareri despre noua versiune sunt la mare pret pentru a vedea diferentele fata de original. Nu rata ocazia de a te informa corect despre acest chicken road Romania si afla cum poti juca responsabil in lumea acestui joc chicken road atragator. Acceseaza resursa recomandata pentru a fi mereu la curent cu ultimele noutati din acest domeniu si pentru a lua hotarari corecte in timpul sesiunilor tale de joc preferate.

  7. Магазин шины-киров.рф — это широкий выбор автомобильных шин и дисков под любой сезон и бюджет. Ассортимент включает бренды Yokohama, Pirelli, Hankook, Kama, Viatti и десятки других изготовителей легковых, грузовых и спецтехнических покрышек. Оформить заказ и подобрать резину по размеру можно на сайте https://xn—-dtbqbjqkp0e6a.xn--p1ai/ прямо сейчас. Доступны собственный шиномонтаж и комфортная доставка по всему Кирову.

  8. Discovering the perfect casino perks can markedly boost your betting experience, and the hub at spino-gambino-review.net/bonus offers everything you crave to navigate these packages properly [url=https://spino-gambino-review.net/bonus]spino gambino promo code[/url] . If you are searching to expand your bankroll, learning how to apply a spinogambino bonus is the primary step towards optimizing your activity. This platform serves as an vital aid for players who desire to secure the peak out of their status by featuring the freshest bonuses obtainable.

    For gamers who like to evaluate a venue before investing their individual funds, the spinogambino no deposit bonus is a fantastic choice. It enables you to enjoy the rush of the games without any initial cash exposure. Searching for a exact spino gambino no deposit bonus is kept straightforward by way of the portal, guaranteeing that you never skip private starter treats. Whether you are a beginner or a experienced player, having exposure to precise, up-to-date data is vital for your triumph.

    When it involves securing supplemental value, knowing the correct spino gambino bonus code is frequently the answer. Utilizing the proper spinogambino bonus code throughout the signup or deposit method can offer you access to extra spins, matched deposits, or cashback rewards. It is crucial to stay current with the fresh spino gambino promo code lists to confirm your perks are processed accurately. The group behind this critique portal carefully watches every available spinogambino casino bonus to ensure members aware.

    Mastering the terms and conditions linked with all casino spinogambino bonus is equally important as locating the code personally. By visiting the domain, you can weigh various deals to see which spinogambino code gives the best return on your funds. Always keep in mind that terms like betting conditions can vary, so keep posted to reach the optimal choices. With the right plan and the current incentive details, your journey through these games can be equally rewarding and extremely enjoyable. Be sure to return back often so you seldom overlook a unique chance to wager with an benefit. [url=http://1.s.2.free.fr/viewtopic.php?f=13&t=445495&p=524043#p524043]Discovering the Optimal Spino Gambino Bonus Codes and Promotions at spino-gambino-review.net/bonus to Boost Your Betting Experience[/url] [url=https://www.challenger4g.com/forum/threads/very-insightful-thoughts.36294/page-292#post-431617]Discovering the Top Spino Gambino Bonus Codes and Promotions at spino-gambino-review.net/bonus to Maximize Your Betting Session[/url] fe8_936

  9. excellent casino Betandplay is a top web-based casino that has captured significant attention among domestic players searching for a smooth and rewarding betting experience [url=https://bet-and-play-90.vercel.app]Betandplay[/url] . As one of the leading brands in the domestic digital betting field, this platform offers a vast selection of games, plentiful incentives, and a easy-to-navigate design. Whether you’re searching for Bet And Play Reviews, this platform excels out for its credibility and entertainment.

    For those new to digital wagering, understanding the standing of Bet And Play Casino is critical. Many gamblers have expressed favorable Betandplay evaluations accounts, emphasizing the site’s rapid payments, guaranteed deals, and diverse selection of games. From slot games and traditional titles to live host options, Betandplay confirms there’s something for any type of player. The portal’s focus to equity and accountability has also secured it a strong reputation among those seeking for reliable digital casinos.

    If you’re evaluating testing Betandplay’s web-based hub, reviewing current Betandplay assessments can deliver valuable insights. Many players commend the portal for its simple enrollment mechanism, efficient customer assistance, and the variety of bonuses. Whether you’re hunting a welcome bonus or ongoing incentives, Betandplay’s domestic hub offers competitive bonuses to elevate your betting venture.

    For those who choose a in-depth review, a careful Bet And Play Review can support you grasp the site’s advantages and potential drawbacks. While Betandplay Casino has received recognition for its playing library and perks, it’s always wise to assess it with other top online betting platforms in the country. Factors like regulation, defense steps, and payment options hold a vital purpose in identifying the optimal selection for your goals.

    In recap, Betandplay’s domestic hub is a solid player in the web-based gambling field, presenting a combination of excitement, perks, and consistency. Whether you’re pursuing for a fast Bet And Play Casino Review or detailed Betandplay analyses, this platform remains to be a top among domestic gamblers looking a fun and protected playing adventure. Always guarantee you play responsibly and opt a authorized portal to secure your concerns.

댓글 달기

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