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

  1. chickenroad-Amoday

    Caso procure uma experiencia de diversao eletronico que mistura adrenalina, planeamento e gozo imediata, decerto ja descobriu do Chicken Road [url=https://chickenroad-game.com.pt/sobre-nos]Chicken Road[/url] . Este jogo virou exito junto aos amantes de plataformas online, destacando-se pela sua premissa elementar, mas profundamente cativante, no qual o objetivo primordial e dirigir a galinha atraves de um trajeto abarrotado de obstaculos desafiantes. Ao visitar portal oficial em chickenroad-game.com.pt/sobre-nos, os utilizadores podem descobrir a filosofia por tras deste trabalho original e entender o que torna ChickenRoad uma escolha bastante procurada para jogadores de quaisquer geracoes.

    A pagina Sobre Nos do portal oficial e o local perfeito para descobrir a perspetiva da banca de desenvolvimento. O dedicacao da insignia e disponibilizar uma plataforma intuitiva, graficos interessantes e uma jogabilidade perfeita que prometa instantes de ocio de alta qualidade. O Chicken Road nao e apenas um passatempo de talento; e uma homenagem do layout astuto e do entretenimento barato, desenhado para operar perfeitamente em variados aparelhos. A comitiva por tras do ChickenRoad dedica-se em atualizar constantemente a interface, assegurando que a base de jogadores tenha permanentemente novos fases e desafios para explorar, mantendo o entusiasmo e a competitividade constantemente em alta.

    Seriedade e fiabilidade sao pilares essenciais para o Chicken Road. Ao visitar a seccao de informacao do portal, os visitantes percebem com maior clareza a devocao da organizacao em desenvolver um ambiente web fiavel, focado na utilizacao do jogador e na honestidade do titulo. Quer seja para passar o tempo durante uma curta paragem ou para almejar bater marcas de pontuacao, ChickenRoad posiciona-se como uma autoridade no setor. Chamamos cada um dos fas de jogos casuais a explorar a seccao sobre nos e a integrar-se nesta comunidade em expansao que nao deixa de impressionar. Se deseja medir os seus instintos e divertir-se ao limite, a sua caminhada inicia-se pontualmente aqui, com a dedicacao que unicamente os reais mentores de Chicken Road tem capacidade para dar aos seus fieis gamers nacionais.

  2. chickenroad-Ademilm

    Assuming you are hunting for an electrifying and rapid digital experience, the chicken road game is presently capturing the web by storm [url=https://chickenroad-pk-11.writergarciaforestefimo777.workers.dev]chicken road game casino[/url] . This engaging production has enthralled users throughout Pakistan who enjoy challenging their fortune and mettle in a competitive setting. Regardless of whether you are a casual gamer or a seasoned master, the dynamics of the chicken road present a perfect equilibrium of suspense and strategy.

    For those searching for the ultimate venue, the site chickenroad-pk-11.writergarciaforestefimo777.workers.dev delivers uninterrupted access to this craze. As you jump into the chicken road online game, your objective is simple but exhilarating: lead your character over a risky route filled with concealed hazards. Numerous enthusiasts are presently gravitating to the chicken road game casino version as it merges the pleasure of classic motion with the fervor of real-time gambling. It is no surprise that the search for the real chicken road game has increased, as people look for legit and trustworthy platforms to wager on.

    The renown of this release has grown so significantly that devotees are now enthusiastically checking follow-ups like chicken road 2 to discover what novel elements and challenges lay ahead. Enjoying the chicken road game online is very handy, enabling you to enjoy rapid turns any moment you have a free time. When you choose to participate with the chicken road casino venture, you are involved in a universal movement where reaction and pacing dictate your success.

    The phrase chickenroad has grown synonymous with this distinctive form of interactive leisure. By checking the official site, you can guarantee that you are using the best edition of the game chicken road accessible today. If you have been waiting to prove your reflexes, now is the moment to begin. Jump into the world of chicken road today and verify if you have what it requires to cross the path to success. Join the community, control the controls, and enjoy the fun that this hot title has to offer.

  3. spinmacho-Oscix

    Provided you seem seeking to boost your gaming adventure, finding the appropriate incentives remains crucial [url=https://spinmacho-login.com/bonuses]spinmacho no deposit bonus[/url] . At Spinmacho, gamers receive a wide selection of lucrative deals built to optimize profit possibilities. If you are a beginner or a pro, leveraging a spinmacho bonus acts as the perfect way to browse an expansive collection of high-quality slot and card titles avoiding gambling too much money.

    To begin, you could choose to look for a spinmacho casino no deposit bonus. This kind of deal is highly sought because it enables you to test the website promptly following signing up. By obtaining a spinmacho no deposit bonus, you can jump straight into the excitement utilizing bonus cash or complimentary spins. Always monitor for an current spinmacho bonus code, since these particular keys are essential to unlock special advantages. Should you look for a code bonus spinmacho or a general bonus spinmacho, these promotions were built to offer you a clear advantage.

    For those who like a more organized loyalty program, the spinmacho casino bonus variations seem very diverse. You may need a spinmacho promo code or a unique spinmacho casino promo code to enable these packages while your transaction stage. Periodically, you might see these described as a spin macho promo code or a spin macho casino no deposit bonus. Irrespective of the terminology, the goal stays the same: to award you greater playing. Ensure to read the terms and conditions whenever you apply a spin macho bonus code or a spin macho bonus to ensure you reach the wagering requirements.

    Ultimately, keeping track of the latest deals proves essential. Should you enter a spin macho code bonus or looking for the new spinmacho bonus, remaining updated ensures you seldom lose out on bonus value. Visit the promotions section frequently to discover the top offers and turn your gameplay into a successful series. With the correct strategy and a bit of fortune, these bonus incentives might turn into genuine prizes today.

  4. chickenroad-Freen

    La sphère des jeux de casino en ligne ne finit de surprendre les passionnés d’émotions intenses via des jeux innovants et stimulants [url=https://chickenroad-fr-41.onrender.com]chicken road casino[/url] . Dans les espaces qui suscitent en ce moment parler d elles, le site chickenroad-fr-41.onrender.com se révèle tel un lieu incontournable pour les clients de jeux amusants. Au cœur de cette expérience figure le célèbre chicken road, un titre qui a réussi à gagner l’esprit des joueurs grâce à son approche propre et son design pratique.

    Le chicken road game se distingue par une mécanique de divertissement élémentaire mais très captivante. Tel une chicken road slot revisitée, ce jeu propose une cadence où le suspense augmente progressivement à chaque action. Les participants qui veulent le chicken road game casino optimal aimeront notamment la rapidité de cet exemplaire, élaborée pour garantir une sensation complète. Que vous soyez un habitué des jeux de rouleaux ou un apprenti, le jeu chicken road offre des moments accélérées et intenses qui mettent à l’épreuve vos sens et votre flair.

    Pourquoi le chicken road jeu devient-il si populaire? Premièrement, son esthétique soignée rend la pratique plaisante sur tout écran. En outre, le portail chickenroad facilite une entrée prompte, permettant aux usagers de se plonger directement dans le jeu. Avec l apparition de nouveaux opus tel que le chicken road 2, la marque ne cesse de se renouveler pour mettre en avant des épreuves toujours plus motivants.

    Si vous souhaitez explorer cette mode, le site chicken road casino constitue la base recommandé. Le concept du jeu chicken road est clair: conduire votre protagoniste parmi des périls pour accroître vos victoires éventuels. C est ce minimalisme associée à une dose de pression réfléchie qui établit chickenroad en un modèle indispensable de l’industrie. Ne patientez davantage pour découvrir pourquoi de nombreux utilisateurs préfèrent ce contenu, rejoignez le groupe dès maintenant et tentez votre bonheur via ce domaine captivant où chaque décision peut changer votre partie vers un gain mémorable.

  5. купить мефедрон онлайн купить через закладки Мефедрон купить, кокаин купить купить закладку меф купить амф где купить амфетамин
    лирика таблетки купить марихуана закладки купить мефедрон телеграмhttps://velikynovgorodkupit.xyz можно ли купить трамадол без рецепта купить мефедрон

  6. spinania-envenue

    Alle, die auf der Suche nach einem modernen und aufregenden Spielerlebnis sind, sollte sich das Portfolio von Spinania genauer ansehen [url=https://spinania-casino-5.vercel.app]spinania[/url] . Das Spinania Casino hat sich in der Welt des iGamings als eine erstklassige Plattform etabliert, die Spielern aus vielen Regionen, darunter auch Spielern aus Deutschland, einen sicheren und abwechslungsreichen Rahmen bietet. Wenn Sie das Spinania Casino online besuchen, erwartet Sie eine intuitive Oberflache, die sowohl fur Einsteiger als auch fur alte Hasen einfach zu bedienen ist. Das Online Casino Spinania zeichnet sich durch eine beeindruckende Vielfalt an Unterhaltungsmoglichkeiten aus. Besonders gefragt sind die zahlreichen Spinania Casino Spiele, die von den Top-Anbietern der Branche bereitgestellt werden. Egal, ob Sie Casino-Klassiker bevorzugen oder in die Welt der modernen Animationen eintauchen mochten, bei Spinania finden Sie garantiert das Richtige. Ein Hohepunkt ist dabei ohne Frage der Spinania Slot Bereich, der mit einer Vielzahl an verschiedenen Themen, Bonusrunden und Gewinnchancen uberzeugt. Viele Nutzer schatzen zudem, dass das Spinania Casino online eine hohe Zuverlassigkeit bietet, was es zu einer Top-Adresse fur Glucksspielfans macht. Fur Abwechslungssuchende, findet im Portfolio der Plattform stets neue Titel, die das Gamer-Herz hoher schlagen lassen. Auch wenn man in verschiedenen Landern wie Polen nach dem Begriff Spinania kasyno sucht, zeigt sich die internationale Ausrichtung und Beliebtheit des Anbieters. Abschlie?end kann man festhalten, dass Casino Spinania eine hervorragende Anlaufstelle fur jeden ist, der Wert auf Qualitat, Sicherheit und ein umfangreiches Spielangebot legt. Die Kombination aus einer modernen technischen Basis und einem exzellentem Service macht Spinania zu einer festen Gro?e. Wenn Sie also ein hochwertiges Online Casino Spinania suchen, sind Sie hier genau richtig. Tauchen Sie ein in die Welt von Spinania und entdecken Sie die Vielfalt, die dieses Casino zu bieten hat. Probieren Sie noch heute einen der vielen Automaten aus und erleben Sie, warum Spinania so viele Spieler fasziniert. Das nachste gro?e Gewinnereignis konnte schon bei der nachsten Drehung auf Sie warten.

  7. betandplay-bathext

    casino venue recognized as a top-tier virtual gaming spot among local punters pursuing for a trustworthy and energizing betting experience [url=https://betandplay-66.pages.dev]Bet And Play Review[/url] .

    Whether you’re seeking for the Bet And Play online hub or simply reviewing the Bet And Play testimonials, this site provides a diverse array of game avenues crafted for newbie and serious players. With an stress on simplicity, Bet And Play Casino offers a seamless layout that makes it simple to explore spin titles, live titles, and live dealer avenues.

    For those new to the platform, digging into the Bet And Play testimonials can offer insightful perspectives into the hub’s perks and potential pitfalls. Many customers note the site’s lucrative initial perks, such as complimentary revolutions and bonus matches, which can considerably boost your wagering venture. The the Bet And Play testimonials often covers the diversity of plays available, from classic games like Starburst to live gaming plays that replicate the energy of a brick-and-mortar casino hub to your screen.

    If you’re hunting for a reputable the Bet And Play digital hub in the Aussie region, it’s critical to consider aspects like compliance, security, and player service. Betandplay appears to value gambler security by providing secure payments and mindful wagering resources, assuring a transparent and safe space. The hub also serves gamblers from multiple regions, making it a ideal pick for those in Victoria.

    When evaluating Bet And Play Casino with alternative platforms, its reputation for transparency is often praised in the Bet And Play feedback. The venue’s dedication to ensuring a smooth venture, combined with competitive odds and offers, makes it a top-tier player in the local virtual gambling market. Whether you’re a enthusiast of casino options, poker plays, or real-time betting, the Bet And Play hub has something for every player.

    For those yet hesitating whether to join the Bet And Play hub, allotting the moment to review Bet And Play Reviews can assist you to formulate an well-researched decision. The hub’s user-friendliness and range of titles make it a trustworthy option for punters looking excitement and likely winnings. As with any virtual wagering site, essentially make sure you play sensibly and keeping your capabilities.

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

  9. Круглосуточная наркологическая помощь — это не громкая вывеска, а чётко выстроенная логистика, где каждый шаг измерим и объясним. В клинике «УралМед Трезвость» мы работаем по принципу «одна цель — один клинический шаг — одно окно оценки», чтобы исключить полипрагмазию и сохранить прогнозируемость результатов. Выездные бригады прибывают без маркировки, используют компактное оборудование и поддерживают спокойную коммуникацию: только факты, никакой стигмы и давления. Такой формат минимизирует тревогу пациента и близких, а также снижает риск срывов за счёт последовательной, поэтапной стабилизации.
    Получить дополнительные сведения – http://narkologicheskaya-klinika-v-chelyabinske16.ru/oblastnaya-narkologicheskaya-klinika-chelyabinsk/https://narkologicheskaya-klinika-v-chelyabinske16.ru

댓글 달기

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