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

  1. uma plataformaque ganhando popularidade no espaço das apostas no Brasil [url=https://cbet-6.azizsetyonugroho98.workers.dev]Plataforma Cbet[/url] .

    Com o chamado **Cbet Jogo**, o serviço se apresenta como uma das para quem deseja desfrutar mesas de jogo, apostas esportivas e até mesmo jogos de cartas.

    No mais, antes de selecionar alguma plataforma, é essencial compreender como se comporta e se ela de fato atende com o que promete.

    A **Plataforma Cbet** é famoso por sua plataforma de jogo amigável e por colocar à disposição uma grande gama de diversões, desde máquinas caça-níquel até jogos de mesa.

    Para quem busca em desejando **Cbet Apostas**, é essencial verificar se a plataforma coloca à disposição benefícios, benefícios iniciais e termos justas de devolução.

    Muitos jogadores questionam se o **Cbet é confiável**, e embora não não sejam dados oficiais sobre sua regulamentação no Brasil, é recomendável analisar relatos de variados usuários antes de depositar recursos.

    O **Cbet Casino** se diferencia por sua ampla oferta de atividades, mas é fundamental permanecer cauteloso a eventuais perigos, como a carência de certificados claras ou desafios com pagamentos.

    No Brasil, onde o setor de diversões online apesar de enfrenta leis particulares, é recomendado selecionar serviços que operem de forma transparente.

    Além dessa questão, quem gosta de **Cbet Poker** pode descobrir escolhas diferenciadas, mas deve totalmente checar as diretrizes e teto antes de ingressar.

    Para quem procura uma protegida e divertida, é importante avaliar se a plataforma atende às expectativas em termos confiabilidade, grande seleção de entretenimentos e atendimento ao cliente.

    Apesar de o **Cbet Brasil** não seja muito quanto outras opções globais, muitos clientes relatam excelentes históricos com a plataforma. No contudo, é sempre ter em mente que o diversão seguro deve ser objetivo, evitando jogadas desnecessárias e recomenda-se estabelecendo teto.

    Se você se encontra sobre qual selecionar, analise sobre a reputação do **Cbet** e analise comentários de diversos clientes. Assim, você terá a chance analisar se compensa testar essa alternativa no mundo das apostas online.

  2. duospin-Empilky

    Whenever browsing for some top-tier betting hub, users all over the nation are increasingly exploring the virtual realm at duospin [url=https://duospin-casino-3.onrender.com]duospin[/url] . Assuming you seek a portal that blends entertainment plus reliability, a thorough duospin casino review uncovers the factors this brand is becoming a top pick among players in Canada. Serving as a modern hub for casino lovers, duospin canada provides a seamless interface built to accommodate each novice players plus pro big spenders aiming to improve their play.

    Exactly why the duospin online casino excel is its commitment to providing a broad library of games. Whether you enjoy high-stakes spin games nor the engaging rush associated with authentic table play, the casino duospin platform ensures that all play time feels new and engaging. The site layout at this venue is intuitive, enabling fast browsing to help you spend less time searching and greater focus making your upcoming duospin bet. With enhanced performance for handhelds and PCs, the digital adventure focuses on adaptability, guaranteeing you are able to enjoy your preferred slots from anywhere in the country.

    Aside from the variety of play, running a comprehensive duo spin casino review emphasizes the significance of user happiness. This business centers on establishing a safe space that makes players feel confident trying fresh options. Numerous individuals hunting for a reliable duo spin casino experience realize that the platform consistently hits great levels of speed and integrity. By focusing on a player-first philosophy, duospin has established itself to be a growing success among the rivalry. If you would like testing another option, the duospin review process often points toward the portal’s distinct play systems and bonus deals as primary causes for its growing popularity. When choosing your next gaming site, reflect on the reason thousands of players are choosing to play at this energetic virtual spot. Exploring the aspects of this portal could prove to be the advancement your play style requires, providing a rare combination of excitement, safety, plus range for each local user.

  3. В этой заметке мы представляем шаги, которые помогут в процессе преодоления зависимостей. Рассматриваются стратегии поддержки и чек-листы для тех, кто хочет сделать первый шаг к выздоровлению. Наша цель — вдохновить читателей на положительные изменения и поддержать их в трудных моментах.
    Получить профессиональную консультацию – [url=https://rentalz.ru/pages/platnoe-lechenie-alkogolizma/]действенное лечение алкоголизма[/url]

  4. chicken-buiniug

    Beleef de fenomenale spanning betreffende snelheid en wendbaarheid door middel van de bekende chickenroad app [url=https://chicken-roadgame.nl/app]chickenroad app[/url] . Dit verslavende tijdverdrijf is gecreeerd ten einde je zintuigen op de proef te stellen gedurende de tijd dat je poogt de weg over te steken samen met je kippenvriendje. Hetzij dat je onderweg bent of juist lekker thuis in de fauteuil vertoeft, de mobiele game garandeert talloze uren vermaak op eender welk moment. Door de logische bediening is deze mobiele beleving geschikt voor alle leeftijden, varierend van kinderen naar ouderen.

    Wil je ontdekken een manier om deze app op jouw toestel te installeren? De editie voor Apple is simpel te bemachtigen door middel van de erkende App Store, daarentegen kunnen gebruikers van de versie voor Google-toestellen kunnen uitwijken naar de digitale winkel. Ben je op zoek naar naar een directe chicken road apk teneinde deze software zelfstandig op te zetten? Verzeker jezelf er steeds van dat je de download via veilige bronnen doet. Het proces voor de chicken road install is zeer gebruiksvriendelijk, waardoor je in een mum van tijd paraat staat om te beginnen.

    Waarom zou men kiezen voor deze smartphoneversie? Dat is de beste mogelijkheid om even lekker tot rust te komen plus je highscore op te krikken. Door de download van dit spel beschik je constant over een vermakelijke app bij de hand dat vlekkeloos werkt op bijna elk hedendaags apparaat. Talrijke fans zijn reeds enthousiast omtrent de chicken road mobile play mogelijkheden, tijdens welke je wedijvert tegen medespelers om te bepalen wie de meeste vaardigheid bezit.

    Blijf niet langer wachten plus verneem om welke reden deze titel internationaal zo geliefd is. Bezoek het officiele webportaal om onmiddellijk aan de slag te gaan. Of je nu verlangt naar rust of juist competitie, deze game geeft je dit in een klein en vrolijk design. Installeer het direct, voltooi de vlugge opstart en demonstreer dat jij de koning van de weg bent in dit moeilijke avontuur. Jouw avontuur samen met het grappigste wezentje begint nu op jouw smartphone.

  5. В этой статье мы рассматриваем разрушительное влияние зависимости на жизнь человека. Обсуждаются аспекты, такие как здоровье, отношения и профессиональные достижения. Читатели узнают о необходимости обращения за помощью и о путях к восстановлению.
    Изучить вопрос глубже – [url=https://i-am-new.ru/stati/kak-vosstanovit-organizm-posle-upotrebleniya/]наркологический центр[/url]

  6. флер наркотик купить купить наркотики купить кокаин купить мефедрон купить бошки марихуаны купить метамфетамин
    купить экстази бошки гашиш в эмиратах купить марихуану соль бошки закладки соль меф купитьhttps://elektrostalkupit.xyz где можно купить трамадол трамадол где купить

  7. uma ambiente de entretenimento online que se tornou ganhando no ambiente nacional [url=https://cbet-7.pages.dev]Cbet Jogo[/url] .

    Se qualquer pessoa está em busca de uma solução recomendada para jogar nos esportes, jogar cassino, ou experimentar jogos de poker, compreender o mecanismo o Cbet pode ser para uma aventura confiável e divertida.

    A Ferramenta Cbet sobressai por a plataforma intuitiva e extensa seleção de modalidades oferecidos, abarcando máquinas de apostas, jogo de cartas, roda da fortuna, e ainda mais. Também, o Cbet Apostas oferece que os jogadores apostem em partidas ao vivo, com probabilidades justas e uma experiência de usuário enriquecida. Para esse público deseja experiências remotamente, o esse cassino se torna uma das melhores alternativas, com bônus especiais e promoções periódicas.

    Uma grande grandes perguntas de vários interessados é se esse ambiente se provou recomendável. A resposta definitiva é que sim, desde você faça uso esse sistema com segura e verifique se a plataforma está protegido. O esse ambiente nacional age de forma com regulamentação correta e proporciona suporte ao participante excelente, garantindo que os interessados tenham uma jornada sem preocupações. Dessa maneira, a Ferramenta esse portal oferece processos de pagamento sem complicações e confiáveis, facilitando depósitos e transações de saída.

    Para os apaixonados do poker, o esse sistema também disponibiliza opções de jogo, permitindo os jogadores joguem contra outros usuários. Essa ampla gama de opções transforma o Cbet uma das plataformas mais valorizadas do mercado, atraindo desde os principiantes quanto os veteranos.

    Se um interessado ainda não experimentou o Cbet, vale a pena investigar suas funcionalidades e analisar a causa pela qual vários desde o início apostam nessa plataforma. Com jogos superiores, benefícios atrativas e um ambiente protegido, o esse ambiente se consolida como uma excelente escolha para quem busca diversão e diversão online.

  8. myjackpot4-Stenue

    Soyez les bienvenus dans l’univers passionnant des jeux virtuels via la plateforme My Jackpot [url=https://my-jackpot-4.vercel.app]my jackpot[/url] . Si vous etes en quete active d’une experience ludique immersive et variee, le site my jackpot 4 vercel app constitue desormais un lieu indispensable pour les passionnes de sensations fortes. Independamment du fait que vous soyez un utilisateur ponctuel ou un expert confirme, visiter l’univers de my jackpot casino permet de parcourir une large selection de titres concus pour repondre a toutes les envies. L’eventail des machines my jackpot est concue pour assurer une fluidite maximale et une esthetique de haute qualite, assurant ainsi des sessions prenantes lors de chaque visite.

    Pour acceder rapidement a vos loisirs preferes, la procedure de my jackpot login est particulierement intuitive. Des lors que vous etes authentifie, vous accedez dans un espace sur ou le casino my jackpot s’efforce pour garantir une experience utilisateur agreable. Beaucoup de joueurs francophones sollicitent activement my jackpot fr pour profiter d’un outil ajustee et d’un support specifique. En choisissant casino myjackpot, vous privilegiez pour un univers qui favorise l’aisance de prise en main et l’amusement du jeu.

    Le groupe myjackpot persiste de croitre grace a une serie de titres frequemment rafraichis. Que vous preferiez les bandits manchots traditionnels, les jeux de cartes ou alors des titres plus recents, chaque element est accessible tres rapidement. Il faut de souligner que le divertissement doit toujours rester un amusement et que la plateforme est concue pour fournir un cadre recreatif sympathique. En visitant les differentes categories disponibles sur le site, vous verrez la raison pour laquelle ce portail s’est imposee comme un point de mire pour ceux qui souhaitent tenter leur reussite virtuellement. Saisissez votre chance pour rejoindre la communaute et decouvrir pourquoi tant d’utilisateurs se fient a ce site pour leurs instants de relaxation. Peu importe que vous soyez sur PC ou tablette, l’accessibilite se situe au centre de votre parcours, vous donnant la possibilite de beneficier de vos titres preferes ou que vous soyez. Immergez-vous des aujourd’hui au c?ur de de my jackpot et succombez par l’enthousiasme de l’action.

  9. Обзор посвящён процессу восстановления после зависимостей. Мы расскажем о различных этапах реабилитации, поддерживающих ресурсах и важности мотивации в достижении устойчивого выздоровления.
    Исследовать вопрос подробнее – [url=https://housefindr.ru/pages/lechenie-alkogolizma-v-nizhnem-novgorode-anonimno/]лечение алкоголизма[/url]

  10. Whenever searching for the elite gaming hub, enthusiasts nationwide in this nation remain increasingly focusing the interest toward these distinct offerings of duospin [url=https://duospin-casino-4.reinawhromagueieu57.workers.dev]duospin canada[/url] . If one might have are seeking a current portal that pairs fun plus interface quality, the duo spin casino review might showcase why the webpage is swiftly gaining momentum. Serving as the top destination for those seeking a duospin canada experience, the brand provides a thorough suite of games built aimed at serving for each casual gamblers plus big spenders alike.

    Picking a reliable platform is crucial for any player, and a thorough duospin casino review discloses that the platform values security, play variety, as well as smooth usability. Should one explore this duospin online casino, one shall find the extensive catalog featuring options that range starting at traditional cards to these freshest engaging pokies. This casino duospin design stays crafted with that player in mind, promising that if one remain gaming on a PC plus smartphone unit, this session stays fluid as well as responsive.

    A single among the key traits belonging to the duo spin casino represents the commitment to providing the honest as well as engaging atmosphere. Plenty of players hunting regarding the duospin review are often impressed with those rapid payout processes and that easy feel regarding this interface. If one happen to be making the duospin bet using your top game or testing your luck at a real-time game, the operator confirms so that every round stays backed through robust platform support.

    For those inquisitive about this reputation concerning that entity, the casino duo spin excels because of its commitment towards quality. By upholding some high standard regarding care, the duospin casino online service stays viable in a busy field. If you are located in the area and are seeking the new way to experience your top titles, these features supplied by this company remain worthy of investigating. Featuring a focus towards accessibility along with joy, this site remains setting the new bar to gamblers who want for elevate the play adventure. Browse the webpage today to find how countless players label the their preferred hub.

댓글 달기

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