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

  1. Sakaling ka na nag-aabang ng isang uri ng nakaka-excite at matulin na istilo para subukan iyong iyong swerte, yung chicken road game ay naging isa sa mga pinaka trending na trend sa bansa [url=https://chicken-road-ph-6.14vkge0o7rgen8o3w4ak.workers.dev]chicken road casino[/url] . Maa-access sa pamamagitan ang mga apps, ang chicken road gambling game ay nagbibigay ng natatanging adventure na nagpapa-excite sa mga players na nakaupo sa kanilang upuan. Ang pangunahing layunin ng road chicken game ay madali subalit nakaka-excite: i-guide iyong karakter sa kabila ng isang delikadong na path habang inilalayo ang mga obstacle nang maabot ang iyong goal. Dahil sa kanyang payak na mekanismo, maraming mga player ngayon ang nag-aabang ng pinaka-okay na paraan upang magenjoy ang chicken road game online.

    Tuwing tinutuklas iyong mundo ng yung chicken road casino experience, yung mga gamer ay madalas na nagugustuhan ang masigla na disenyo pati ang posibilidad nang sa mabilis na panalo. Hindi gaya ng isang lumang chicken road slot machine, ang lalaro ito ay nakasalalay nang higit sa pakiramdam ng user at pagdedesisyon ng desisyon sa bawat round. Habang ka ay nagpapatuloy, ang mga taya ay tumataas, na siya namang dahilan kung bakit yung mga sanay sa chickenroad mechanics ay nagbibigay-diin sa kahalagahan ng estratehiya at timing. Kahit ka ay isang ordinaryong manlalaro o isang pro pro, ang chicken road gambling game ay nagbibigay ng nakakaaliw na atmospera na hrap makita sa iba.

    Marami na mga gumagamit ang nag-hahanap din ng pinakabagong na bersyon ng laro, tulad ng chicken road 2, na nagbibigay ng na-upgrade na graphics at mas smooth na transition nang sa mas mahusay na mobile na karanasan. Para sa mga tatanong kung paano magsimula, ang road chicken platform ay nagbibigay ng user-friendly na interface na nag-aallow upang sa seamless na nabigasyon. Yung kasikatan ng chicken road game ay bumibilis sa buong bansa dahil ito ay pinagsasama ang pagiging simple nito sa excitement ng isang mahal na hamon. Kung nais mong subukan ang iyong kakayahan sa sikat na trend na ito, siguraduhin na malaman ang mga pangunahing kaalaman bago ka pumasok. Sa pamamagitan ng pag-master sa iyong tamang oras sa chicken road, ikaw ay nagpapataas ng iyong chances na matagumpay na makatawid sa landas. Damhin ang thrill ngayon at alamin kung bakit napakaraming mga mga tao ang adik sa mabilis na galaw ng road chicken game. Laging huwag kalimutan na mag-play nang responsable at magsaya ang paglalakbay habang tinatahak ang landas tungo sa potensyal na tagumpay.

  2. chickenroad-Taike

    Le monde des mini-jeux de maison de jeux en ligne cesse rarement de stupéfier les parieurs français via des formats innovants et hypnotiques [url=https://chickenroad-fr-33.onrender.com]avis chicken road[/url] . Parmi les jeux qui trônent au sommet, on aperçoit le populaire Chicken Road. Accessible via la plateforme chickenroad-fr-33.onrender.com, ce passe-temps a pu charmer une immense clientèle suite à sa formule basique mais particulièrement opérationnelle. Au cas où vous voulez un avis chicken road neutre, il s’avère important de comprendre comment ce jeu de genre crash rencontre un tel plébiscite sur le web.

    Le concept du chicken road game est clair: vous commandez un faible poulet obligé de passer une artère émaillée d’embûches. À chaque fois réalisée, vos bénéfices futurs montent, mais l’aléa de affronter un ennemi ou de connaître un accident s’élève également. Ce chicken road jeu offre une pratique prenante où la gestion du hasard et l’intuition sont primordiales. À l’opposé de une chicken road slot traditionnelle basée seulement sur l’aléa des bandes, dans ce cas, il s’agit de le joueur qui arrête du instant recommandé pour empocher ses fonds, procurant un sentiment de contrôle très estimé.

    Concernant le chicken road casino, le site vouée assure une fluidité parfaite et une fiabilité maximale pour les utilisateurs. Les fidèles des jeux chicken road pointent régulièrement la qualité esthétique et la rapidité des transactions. Pour ceux qui ont auparavant éprouvé cette première version, la conception de chicken road 2 amène des options additionnelles et une façade infiniment plus moderne, validant la permanence de cette marque.

    En visitant les variés chicken road avis, on constate une contentement universelle relativement à la fluctuation du produit. Certes, ce chicken road game casino reste parfait pour les clients en recherche de sensations rapide. Que vous soyez un spécialiste des loisirs de sort ou un néophyte intrigué, la manipulation reste instantanée. Avant de vous jetter, conservez perpétuellement en pensée que le jeu devrait demeurer un bonheur. En somme, si vous recherchez un spectacle amusant et fascinant, ce divertissement justifie totalement sa position parmi les favoris du jour.

  3. Быстро собираем первичную информацию, оцениваем риски и предлагаем подходящий вариант обращения.
    Узнать больше – [url=https://2.vyvod-iz-zapoya-moskva1-13.ru/]vyvod-iz-zapoya-na-domu-moskva-nedorogo[/url]

  4. spinmachologin-Inish

    Opting for the ideal site for your virtual amusement proves a vital decision, and the about us page at spinmachologin.org offers a detailed perspective at the primary principles that define our community [url=https://spinmachologin.org/about-us]spin macho[/url] . When you explore the universe of spinmacho, you are accessing an setting built on the cornerstones of honesty, user-focused innovation, and a deep promise to supplying an superior gaming experience. Our portal was created with a lone objective in mind: to ease the manner players obtain their preferred online pastime by building a streamlined, secure, and reliable gateway for all user.

    The identity of spin macho is based in a thorough comprehension of what today’s players require. We acknowledge that the online field might feel cluttered or complicated, which is why we possess pledged ourselves to sustaining a system that prioritizes straightforward style and solid defense. Each feature found on our page gets engineered to ensure that your journey remains seamless from the time you join till you finish your activity. We maintain that systems ought to perform for you, not against you, and our personnel continuously updates our setup to support that belief.

    Ethics rests at the heart of the spinmacho experience. We realize that confidence stands acquired through steady delivery and direct communication. That is why our heads and creation crews concentrate greatly on securing customer records while enhancing for velocity and availability. By choosing to participate with spin macho, you find yourself enrolling in a growing network of users who appreciate high-quality support and a skilled strategy to online play. We stand resolute in our mission to develop alongside the field, making sure that our tools and services stay at the cutting edge. We encourage you to find further concerning our current projects and our devotion to quality by viewing our primary portals, in which we show the enthusiasm and expertise that fuel our site. Your pleasure continues our primary driver as we persist to mature and tweak the special adventure we deliver to every user of our community.

  5. Экстренный вывод из запоя на дому — это управляемая медицинская последовательность, а не «сильная капельница на удачу». В наркологической клинике «КалининградМедПрофи» мы выстраиваем помощь вокруг трёх опор: безопасность, конфиденциальность и предсказуемый результат. Выездная бригада приезжает круглосуточно, работает в гражданской одежде и без опознавательных знаков, чтобы не привлекать внимания соседей. Каждое вмешательство имеет измеримую цель, окно проверки и прозрачный критерий перехода к следующему шагу. Благодаря этому темп лечения остаётся мягким, а динамика — понятной для пациента и близких.
    Подробнее можно узнать тут – [url=https://vyvod-iz-zapoya-v-kaliningrade15.ru/]помощь вывод из запоя калининград[/url]

  6. chickenroadgamebonusapp-Obliply

    The massive enthusiasm regarding online crash games has climbed to unprecedented heights with the debut of this famous retro-themed pursuit [url=https://chickenroadgamebonusapp.net/demo]chicken road demo[/url] . Should you be curious regarding the inner workings supporting this fast-paced adventure, the chickenroad demo represents the perfect place to begin. Many users favor to examine their methods without monetary danger, rendering the chicken road demo an essential utility for newcomers and pros equally. Via accessing the site, you is able to savor the entire fun of this game mechanics, syncing your actions so as to traverse that path while avoiding impediments to amplify potential payouts.

    Opting for the chicken road free version grants you so as to gain an understanding for the title rhythm ahead of committing real funds. That practice remains vital, since understanding the moment so as to collect stays that primary path towards success in that genre. Whenever gamers select the chicken road play, they join the vibrant sphere in which reflexes plus gut feelings are put to this test. Many people seek some reliable source offering chicken road free play so they verify users are able to rehearse inside some secure area without the pressure associated with some real balance. That remains exactly the way the demo option offers, yielding an simulated environment where duplicates some real action flawlessly.

    The chicken road demo mode stays built to be simple, letting everyone in order to jump directly into the thrill with simplicity. Regardless of if you are playing on some computer or the mobile device, that layout stays smooth plus responsive. Exploring this software through the sample permits one so as to watch this instability and regularity linked to winning, a factor that helps towards formulating the long-term strategy. Before one opt so as to play using actual stakes, using the needed moment so as to control the options using that offered sample is the clever gameplay move. Through employing the complimentary resources, one can guarantee if you ultimately switch to active sessions, users are fully set so as to cross this road towards winning with confidence and skill.

  7. Jeder, der nach exzellentem Spielspa? auf Reisen unterwegs sein mochte, sollte sich die Moglichkeiten der mobilen Anwendung intensiv betrachten [url=https://spino-gambino-login.de/app]spinogambino app download[/url] . Die spinogambino app liefert Spielern eine dynamische und benutzerfreundliche Plattform, um rund um die Uhr auf ihre Favoriten zuzugreifen. Wer die Bequemlichkeit schatzt, direkt vom Mobiltelefon oder mobilen Endgerat aus zu wetten, erhalt mit der spinogambino casino app genau die richtige Losung. Die Handhabung ist einfach gestaltet, sodass der Start selbst fur Anfanger muhelos funktioniert.

    Fur den schnellen Einstieg auf das portale Spielvergnugen ist ein spinogambino app download der erste Schritt. Dieser Ablauf ist einfach und ermoglicht es Ihnen, die casino spinogambino app binnen kurzer Dauer auf Ihrem Smartphone zu aufspielen. Wenn Sie nach einem schnellen spinogambino casino app download suchen, lokalisieren Sie auf der hauseigenen Seite alle notwendigen Informationen. User von Android-Geraten durfen, zudem speziell nach einem spinogambino apk download Ausschau halten, um die Applikation direkt und geschutzt zu bekommen. Gleichfalls die Suche nach spino gambino app download Suchwortern fuhrt Sie schnell zur erhofften mobilen Version, die fur ein flussiges Zocker-Vergnugen angepasst wurde.

    Ein erfolgreicher spino gambino download garantiert Ihnen nicht nur Bestandigkeit, sondern auch Zugang auf das komplette Angebot an Automatenspielen und Live-Casinospielen. Wenn Sie sich fur die spino gambino app wahlen, profitieren von besonderen App-Features und schnellen Lade-Sequenzen. Die spino gambino casino app ist exakt auf die Anforderungen zeitgema?er User angepasst, die keine Abstriche bei der Leistung hinnehmen wollen. Jeder, der sich fur das mobile Abenteuer entscheidet, wird schnell bemerken, dass die app spino gambino eine unverzichtbare Helferin fur fesselnde Momente ist.

    Abschlie?end lasst sich festhalten, dass der spinogambino download die perfekte Alternative fur alle ist, die ihr Zocker-Erlebnis aktualisieren wunschen. Dank der hervorragenden Leistung der Software wird jede Spielrunde zu einem Glanzmoment. Beginnen Sie noch heute mit dem spino gambino app download und nutzen Sie die gesamte Flexibilitat des Portablen Glucksspielangebots hautnah in Ihrer Handflache. Verlasslichkeit und Spa? rangieren dabei immer an erster Stelle. [url=https://bandrik.sites.sch.gr/%cf%84%ce%bf-%ce%b6%ce%b5%cf%8a%ce%bc%cf%80%ce%b5%ce%ba%ce%b9%ce%ba%ce%bf-%cf%84%ce%bf%cf%85-%ce%ba-%ce%b8%ce%b1%ce%bd%ce%bf%cf%85/]Erfahre alles Essenzielle zum Spinogambino App Download fur das erstklassiges Gaming-Erlebnis am Tablet.[/url] [url=https://acroxer.com/bbs/board.php?bo_table=Anatomy_Forum&wr_id=421880]Erfahre alles Essen[/url] adfec98

  8. Наркологическая клиника в Краснодаре работает на основе современных протоколов терапии, утверждённых в клинической практике. Ведущие направления включают экстренную помощь, лечение острых состояний и долгосрочные программы реабилитации. Врачи учитывают индивидуальные особенности организма, сопутствующие заболевания и психологическое состояние пациента, что позволяет выстраивать эффективные схемы терапии.
    Углубиться в тему – [url=https://narkologicheskaya-klinika-krasnodar14.ru/]наркологическая клиника вывод из запоя[/url]

  9. betandplay-Erocky

    standout online betting platform well-regarded as Betandplay gaming site has been drawing interest among Australian punters seeking for a reliable and unforgettable betting experience [url=https://betandplay-55.pages.dev]Bet And Play Review[/url] . Whether you’re checking out Bet And Play for Aussies or simply checking Bet And Play Takeaways, this destination offers a rich library of features crafted for both relaxed and dedicated gamblers.

    In this analysis, we’ll analyze what sets Betandplay in the pack in the cutthroat realm of internet betting platforms.

    One of the primary things punters observe when stepping into Bet And Play Hub is its straightforward design. The destination is structured with usability in mind, confirming that even those novice to virtual entertainment can explore it with ease. The structure is streamlined, methodically laid out, and features a responsive framework that operates smoothly on both PC and mobile equipment. This is especially important for Australian punters who may love to wager while mobile, whether they’re at home.

    When it comes to playing options, Betandplay provides a extensive range that covers beloved spin games, interactive entertainment, and live dealer alternatives. The site’s catalogue is consistently revised to introduce the newest options from leading software houses, ensuring that gamblers frequently run out of alternatives. Whether you’re a fan of traditional slot machines like Gonzo’s Quest or love big-money blackjack, Betandplay has something for everyone. The presence of real-time betting selections adds an further dimension of energy, facilitating entertainers to appreciate dynamic engagement with skilled game hosts.

    Reliability and fairness are critical aspects for any internet betting platform, and Bet And Play treats these meticulously. The destination is powered by state-of-the-art protection technology to protect gambler data and monetary payments. On top of that, the hub operates under demanding legal laws, which is encouraging for those looking a dependable betting adventure. Many Bet And Play Takeaways stress the hub’s loyalty to honesty, with scheduled reviews ensuring that entertainment are equitable and payments are precise.

    Another pivotal element of Betandplay is its incentive offers, which are designed to enhance the gaming opportunity. Novice entertainers can often seize welcome bonuses, featuring deposit matches, while existing punters benefit from membership bonuses. These bonuses make Betandplay a tempting selection for those targeting to maximize their winnings while relishing a broad selection of wagering choices.

    For those assessing Bet And Play Verdicts, it’s essential to highlight that the destination also provides top-tier customer support. Gamblers can initiate contact via live chat, electronic mail, or hotline for assistance with profile setbacks, playing queries, or offer questions. The service is famous for being efficient, supportive, guaranteeing that any problems are managed quickly.

    In final analysis, Bet And Play Online is a reliable avenue for homegrown punters searching a holistic internet wagering venture. With its effortless layout, extensive wagering choices, robust security measures, and compelling bonuses, it’s clear that many Bet And Play Verdicts laud the site. Whether you’re hunting to try your chance on slots or test your expertise at interactive betting selections, Betandplay delivers a engaging and rewarding setting for all varieties of punters. Always understand to gamble judiciously and adhering your resources.

  10. купить наркотики бот где купить альфа пвп Мефедрон купить, кокаин купить купить скорости спб героин закладки Купить Марихуану, Мефедрон, Гашиш, Кокаин
    купить метадон соль меф купить альфа пвп купитьhttps://syzrankupit.xyz трамадол капсулы 50 мг купить купить мефедрон телеграмме

댓글 달기

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