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”의 21,779개의 댓글

  1. В данной статье рассматриваются проблемы общественного здоровья и социальные факторы, влияющие на него. Мы акцентируем внимание на значении профилактики и осведомленности в защите здоровья на уровне общества. Читатели смогут узнать о новых инициативах и программах, направленных на улучшение здоровья населения.
    Информация доступна здесь – [url=https://driveautorent.ru/pages/anonimnyj-narkologicheskij-centr-nizhnij-novgorod/]анонимная наркологическая клиника[/url]

  2. spinmamareviewbonus-Invibly

    Mastering the policies of some digital hub constitutes a crucial part for each gamer hoping to enjoy a smooth as well as delightful session [url=https://spinmamareviewbonus.com/terms-and-conditions]spin mama[/url] . Once you access the terms and conditions area on spinmamareviewbonus.com, you start obtaining entry to the foundational rules that manage your activities with the domain. Reading these agreements serves not merely a requirement, since it guarantees you stay wholly informed of your personal privileges as well as responsibilities while engaging with the numerous features provided by Spinmama.

    The document found at this spot delivers a distinct guide for how the site works. Through thoroughly reviewing these terms, you can comprehend the demands for registration creation, the protocols for overseeing incentives, and the steps for secure payouts. Spin mama prides itself in transparency, as well as this page acts as a extensive resource for visitors who desire to remain completely aware leading up to they commence their betting journey. Regardless of if you stay interested about bonus eligibility alternatively the security policies upheld by the domain, the terms and conditions tab stays your primary area of guidance.

    Exploring the spinmama landscape requires a basic comprehension of its functional design. The domain stands engineered to provide a just alongside controlled space, plus the included terms constitute the foundation of that vow. Participants ought to take note of chapters about minor confirmation, geographical limits, as well as ethical betting guidelines. By sticking to these guidelines, you secure your membership plus ensure that you persist aligned with the platform expectations.

    We deeply advise each player to save or regularly check this page to remain advised on any rule modifications. Keeping informed represents the top strategy to increase the advantages offered by Spin mama as bypassing all conceivable disputes. In case you ever find yourself unsure about a precise reward offer alternatively a hub policy, the terms and conditions given on the domain serve as the authoritative authority to direct your choices. Dedicating a few periods to examine these points serves as an asset in a guarded as well as more rewarding internet experience.

  3. For those seeking to elevate your gaming on the go, the spinmama app offers a smooth way to enjoy your preferred games directly from your smartphone [url=https://spinmama-loginbonus.net/app]spinmama app[/url] . Designed with user convenience in mind, the spinmama casino app brings a high-quality interface to the palm of your hand, ensuring that you never miss out on the action whether you are at home or on the go. Players who value performance and accessibility will find that the casino spinmama app is optimized for both speed and reliability.

    To get started, the steps for the spin mama app download is easy. Just head to the official platform to access the installer and begin your journey. Once you have completed the spin mama app download, you will find a wide selection of gaming titles tailored to suit different tastes. Managing your account is equally simple, as the spin mama app login procedure is safe and fast, letting you dive right into the excitement without any unnecessary delays.

    Many users prefer the app spin mama solution because it eliminates the need to open a mobile browser every time they want to play. By utilizing the dedicated spin mama casino app, you benefit from faster loading times and a more immersive gaming environment. Whether you are a fan of traditional games or modern interactive titles, this application serves as a one-stop shop for all your gaming needs.

    It is important to make sure that you use the official channels for your spinmama app download to guarantee a safe experience. By using the official site, you ensure that your device remains secure and your performance remains top-tier. With simple menus and frequent updates, the spinmama app remains a leading option for enthusiasts looking for a premium mobile experience. Sign up now, complete your spin mama app login, and embrace the convenience of high-quality gaming software built for your mobile device. Experience the difference in quality and speed that comes with choosing the right mobile gaming platform.

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

  5. droptheboss-Pymmex

    Within the rapidly changing environment of online amusement, plenty of players are directing their gaze to the captivating destination located at droptheboss [url=https://droptheboss-arh.pages.dev]drop the boss casino[/url] . If you are seeking for a unique and compelling approach to experience modern play, it is time to examine why so much individuals are choosing to drop the boss. This innovative journey has quickly acquired momentum as a leading choice for individuals looking for a dynamic setting that combines rapid choice-making with polished style.

    As you interact with the drop the boss game, you are immediately met with an accessible dashboard that renders traversing the experience effortless. For those especially drawn to the drop the boss slot mechanics, the website presents a unique thrill that separates it from conventional offerings. Plenty of users appreciate how the drop the boss casino setup highlights user input, making sure that every round seems both gratifying and fast-paced. Regardless of whether you are a novice or a pro, the drop the boss online experience is crafted to maintain you engaged.

    For customers located in the United Kingdom, locating a trustworthy platform is paramount. The drop the boss uk community is expanding as increasing people reveal the pros of this contemporary gambling game. One of the common questions revolves around the drop the boss stake options, which are engineered to be versatile enough to fit varied needs. By tweaking your drop the boss game stake, you can manage your session in a style that seems comfortable and managed.

    Ultimately, the drop the boss casino game excels thanks to its uncomplicated nature and the enthusiasm it sparks. By browsing the site, you can see personally why it has become a subject among those who relish a dynamic gambling game. If you are prepared to elevate your downtime, investigating the functions available at droptheboss is a fantastic subsequent move. Enjoy the excitement currently and see why this platform is setting a fresh bar for users seeking something uncommon and very absorbing in the domain of online wagering.

  6. Daca esti in cautarea unei aventuri virtuale de neuitat in mediul virtual, oscarspin reprezinta o platforma care atrage tot mai multi pasionati de jocuri de noroc din Romania [url=https://oscar-spin-ba9.pages.dev]oscarspin online[/url] . Platforma oscarspin casino se remarca printr-o interfata intuitiva si o selectie variata de sloturi, fiind deja o alegere populara pentru cei care cauta oscarspin romania ca metoda preferata de divertisment. Site-ul oficial, accesibil prin oscarspin com, ofera acces rapid la o lume plina de adrenalina, direct de pe dispozitivul tau mobil sau desktop.

    Unul dintre cele mai mari puncte forte pe care le ofera acest casino oscarspin este generozitatea fata de noii utilizatori. Jucatorii care aleg oscarspin online pot beneficia regulat de diverse bonusuri atractive, in special de oscarspin casino rotiri gratuite, care permit explorarea titlurilor populare fara a risca propriul capital. Aceste promotii sunt concepute exclusiv pentru a creste posibilitatile de profit si pentru a prelungi timpul petrecut in fata jocurilor preferate.

    Pentru cei care sunt constant preocupati de gasirea unor beneficii suplimentare, cautarea de oscarspin rotiri gratuite este un demers frecvent, deoarece acestea reprezinta cea mai cale directa de a testa platforma. De asemenea, ofertele de tip oscarspin rotiri gratuite fara depunere sunt extrem de cautate, oferind jucatorilor sansa de a incepe aventura fara investitii financiare imediate. Aceasta abordare prietenoasa fata de utilizator a ajutat brandul sa isi consolideze reputatia pe piata din Romania.

    Indiferent daca preferi sloturile clasice sau cele cu grafica avansata, acest operator pune la dispozitie toate facilitatile pentru o sesiune de joc protejata si placuta. Navigarea pe platforma este fluida, iar procesul de inregistrare este prompt, asigurandu-te ca poti accesa ofertele oscarspin in cel mai scurt timp. Daca esti pasionat de jocuri de noroc, vizitarea site-ului este pasul ideal catre o experienta completa si captivanta. Nu rata ocazia de a revendica promotiile curente si de a te bucura de tot ceea ce acest cazinou digital are de oferit astazi pentru jucatorii romani.

  7. vegashero-Coola

    Sicheres Glucksspiel ist ein zentrales Anliegen bei vegashero, da die Sicherheit und das Wohlbefinden der Nutzer stets an erster Stelle stehen durften [url=https://vegashero-bet.ch/verantwortungsbewusstes-spielen]vegas hero[/url] . Wer sich fur Programm von vegas hero entscheidet, nutzt eine Anlaufstelle, die nicht nur unterhaltsame Spiele liefert, sondern auch definierte Regeln beachtet, um ein risikofreies Vergnugen zu garantieren. Innerhalb der Rubrik fur verantwortungsbewusstes Spielen erhalten Nutzer umfassende Informationen, die dabei helfen sollen, das eigene Spielverhalten permanent im Auge zu behalten und die volle Kontrolle zu bewahren.

    Das Konzept von vegashero grundet darauf, dass Glucksspiel als Hobby angesehen werden kann und keinesfalls als Methode, um Geld zu verdienen oder okonomische Schwierigkeiten zu losen. Um dies zu starken, stellt vegas hero unterschiedliche Instrumente aus, mit denen Spieler personliche Limits fur ihre Spielbetrage, Verluste oder die Lange ihrer Sitzungen bestimmen konnen. Diese praventiven Ma?nahmen sind ein zentraler Baustein der Unternehmenskultur, um spielsuchtahnlichem Verhalten entgegenzuwirken und zu gewahrleisten, dass der Vergnugungsgrad stets gewahrt bleibt.

    Falls Teilnehmer jemals das Eindruck gewinnen, dass ihr Setzmuster problematisch wird, bietet vegas hero au?erdem schnellen Kontakt zu Support-Einrichtungen und Unterstutzungsmoglichkeiten. Es ist essentiell, zu bemerken, wann es an der Stunde ist, eine Pause einzulegen oder sich professionelle Hilfe zu suchen. Aufgrund der offene Informationspolitik auf der Plattform zur Verantwortung bei vegashero werden Kunden dazu ermutigt, sich bewusst mit ihrem Setzverhalten auseinanderzusetzen.

    Zusammenfassend lasst sich formulieren, dass vegashero den Schutz seiner Kunden sehr ernst nimmt. Wer auch immer bei vegas hero setzt, sollte die bereitgestellten Ressourcen bewusst einsetzen, um ein gesundes Verhaltnis zum Casino-Spiel zu halten. Die Mischung aus erstklassigen Spielen und einem starken Fokus auf Spieler-Schutz transformiert die Seite zu einer Adresse, auf der Verantwortung und Spa? miteinander harmonieren. Informieren Sie sich deshalb standig auf der zugehorigen Unterseite uber die Wege, Ihr Wettverhalten geschutzt und bewusst zu formen, damit Ihr Besuch immer eine gute Erinnerung wird. [url=https://beminestudio.ru/product/%d0%bf%d1%80%d1%8f%d0%bc%d0%be%d0%b5-%d0%bf%d0%bb%d0%b0%d1%82%d1%8c%d0%b5-%d0%b8%d0%b7-%d0%b0%d1%82%d0%bb%d0%b0%d1%81%d0%b0-%d1%81-%d1%80%d0%b0%d0%b7%d1%80%d0%b5%d0%b7%d0%be%d0%bc-%d0%bd%d0%b0-%d0%bd/#comment-3328]Verantwortungsbewusstes Spielen bei vegashero: Weshalb Schutz und Spielspa? bei dem Anbieter an erster Stelle stehen[/url] [url=http://all4one.phorum.pl/viewtopic.php?f=2&t=47216&p=307286#p307286]Verantwortungsbewusstes Spielen bei vegashero: Weswegen Verantwortung und Spielspa? fur die Plattform bei hochster Prioritat stehen[/url] 3f5fa77

  8. BlazePro Crash é dentre os ambientes de jogos notavelmente desejados no ambiente nos recentes ciclos [url=https://blaze-crash.onrender.com]Blaze Crash[/url] . Ele conquista milhares de participantes em almejando entretenimento e, especialmente, de ganhos instantâneos.

    Mas como opera aquele game e de que forma realmente ganhar nele? Neste artigo vamos os detalhes que informações você deve conhecer sobre o BlazeBoost Colisão, desde os princípios as dinâmicas até sugestões para maximizar as nossas possibilidades de sucesso.

    O jogo de Blaze Impacto é uma modalidade de desafio de apostas centrado em máquinas caça-níquel, em que os apostadores riscam em rodadas para buscar maximizar o dinheiro. Em oposição de diversos cassinos, ele se evidencia graças a a sua facilidade e por meio de capacidade de vitórias significativos em pouquíssimo espaço de tempo. Diversos usuários refletem se o BlazePro Impacto devolve efetivamente, e a solução é afirmativa, contanto que você aposte de estilo estratégica e desconsidere armas típicas.

    Entre as principais incógnitas é como sair na BlazeFire Crash. O segredo descansa em analisar o passado do game e as variadas chances. Não obstante não uma receita mágica, certas estratégias são capazes para contribuir. Tomemos como exemplo, riscar em partidas menores no início pode reduzir a possibilidade de abandonar expressivas montantes.

    Além disso essencial é a sua confiabilidade do BlazeBoost Colisão. Muitos jogadores duvidam se o ambiente é transparente, entretanto, enquanto você aplique uma reconhecida e elimine golpes, o desafio se desenvolve da mesma forma que prometido. Jogos como o BlazeFire Colisão no Play são famosas em virtude de a própria honestidade, mas sempre que confira as avaliações de diversos usuários antes de participar o dinheiro.

    Para os interessados se encontram na primeira vez, estudar como jogar Blaze Impacto corretamente é crítico. O desafio é intuitivo, mas analisar as diversas funções, como o multiplicador e o cronograma de rodízio, pode determinar uma significativa a diferença. Também, vários participantes compartilham táticas de qual o método participar Blaze Crash de maneira extremamente otimizada, tais como evitar riscos desproporcionais e administrar o orçamento.

    Em conclusão, o BlazeBoost Crash pode uma possibilidade para quem desejar diversão e resultados instantâneos, desde que participado com cuidado. Caso você está em dúvida em relação a que estratégia participar, siga as diversas dicas explicadas pelas diversos jogadores e aproveite ao máximo esta atividade. Considere sempre sempre que de investir com método controlada e de forma alguma transgredir os seus prazos financeiros.

  9. В этой статье мы говорим о важности поддержки в процессе выздоровления. Рассматриваются семьи, группы поддержки, специалисты и онлайн-ресурсы, которые могут сыграть решающую роль в избавлении от зависимости.
    Ознакомьтесь с аналитикой – [url=https://finbizhub.ru/pages/dejstvennoe-lechenie-alkogolizma/]медицинское лечение алкоголизма[/url]

  10. В данной статье рассматриваются проблемы общественного здоровья и социальные факторы, влияющие на него. Мы акцентируем внимание на значении профилактики и осведомленности в защите здоровья на уровне общества. Читатели смогут узнать о новых инициативах и программах, направленных на улучшение здоровья населения.
    Неизвестные факты о… – [url=https://notarwise.ru/pages/vyvod-iz-zapoya-v-spb-nedorogo/]вывод из запоя спб цены[/url]

댓글 달기

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