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”의 75,410개의 댓글

  1. Sofern Sie auf der Webprasenz spino-gambinobonus.ch unterwegs sind, erweist es sich als wichtig, die gesetzlichen Richtlinien zu erfassen, die deinen Abstecher komfortabler und risikofreier kreieren [url=https://spino-gambinobonus.ch/cookie-richtlinie]spino gambino[/url] . Ein zentraler Bestandteil in diesem Kontext ist die Cookie-Richtlinie, welche transparent erlautert, wie das Online-Angebot von spinogambino mit Ihren Informationen verfahrensweise agiert. Cookies sind kleine Textdateien, die wahrend deines Besuchs auf eurem Gerat gespeichert landen, um die Funktionalitat der Webseite zu verbessern. Bei spino gambino werden diese Daten genutzt, um funktionale Vorgange zu sicherstellen inklusive ma?geschneiderte Angebote anzubieten, die exakt auf Ihre Anspruche zugeschnitten sind.

    Die Webseite legt gro?en Wert auf Datensicherheit samt Offenheit. Die Cookie-Richtlinie belehrt Sie umfassend daruber, welche Formen von Cookies eingesetzt werden, startend bei essenziellen Cookies, die fur den Lauf der Seite unerlasslich sind, bis hin zu funktionalen sowie statistischen Cookies. Letztere assistieren dem Team von spinogambino dabei, das User-Erlebnis kontinuierlich zu verbessern plus sicherzustellen, dass Sie sich auf der Plattform hervorragend bewegen. Falls Sie die Webseite von spino gambino aufrufen, besitzen Sie stets die ganze Steuerung uber eure Cookie-Praferenzen. Sie durfen die Nutzung von nicht erforderlichen Cookies uber deinen Browser abschalten alternativ deine Einstellungen sofort durch die bereitgestellten Optionen auf der Webseite anpassen.

    Es ist das Ziel von spino gambino, eine geschutzte samt offene Umgebung zu etablieren. Anhand die klare Kommunikation in der Cookie-Richtlinie bekommen Sie genau, welche Informationen erhoben gelangen und zu welchem Intention sie beitragen. Diese Strategie erfullt den gangigen Normen fur Online-Plattformen sowie gewahrleistet, dass Sie bei jedem Besuch bei spinogambino ein Maximum an Privatsphare genie?en. Wir legen ans Herz euch daher, die Cookie-Richtlinie auf der hauptsachlichen Webseite periodisch zu studieren, fur den Fall dass euch technische Aktualisierungen oder gesetzliche Regeln modifizieren wurden. So bleiben Sie immer auf dem Laufenden sowie bewahren die volle Kontrolle uber Ihre digitalen Datenhinterlassenschaften bei spino gambino, wahrenddessen Sie das vielfaltige Angebot in hochsten Zugen erleben. Transparenz ist hierbei der Schlussel fur ein serioses Casino-Erlebnis im Netz. [url=http://radiostarparadisevalley.com/forum/viewthread.php?thread_id=3442]Alles zur Cookie-Richtlinie bei dem Casino: Privatsphare klar dargelegt[/url] [url=http://192.249.121.131/%7Erosedoll/forum1/index.php?topic=2095.new#new]Alles Wissenswerte zur Cookie-Richtlinie bei dem Casino: Sicherheit verstandlich erlautert[/url] 610d23f

  2. kingmaker-EdGeda

    Si estas buscando una vivencia de casino apasionante y fiable, Kingmaker Casino se ha posicionado como una de las plataformas mas interesantes del momento [url=https://kingmaker-casino-3.onrender.com]kingmaker casino review[/url] . En esta Kingmaker casino review, analizamos por que tantos jugadores estan escogiendo este sitio para sus partidas. Al acceder a Kingmaker online casino, los usuarios se topan con una interfaz moderna, intuitiva y optimizada para todo tipo de dispositivos, lo que facilita enormemente el proceso de Kingmaker casino login.

    La seleccion de titulos en Kingmaker es verdaderamente amplia, abarcando desde las tragaperras mas populares hasta alternativas de casino en vivo que te haran sentir como si estuvieras en una sala fisica. Muchos usuarios que escriben sus Kingmaker casino opiniones destacan la agilidad con la que se procesan los depositos y retiros, un factor clave para quienes buscan un servicio fiable y profesional. Al navegar por Kingmaker casino online, queda claro que la plataforma prioriza la satisfaccion del jugador, ofreciendo una estructura clara y promociones interesantes.

    Si eres nuevo en este mundo, completar tu Kingmaker login es el primer paso para entrar a un catalogo de titulos de alta calidad. La plataforma, conocida en el sector como kingmakercasino, ha logrado consolidarse gracias a su compromiso con la transparencia y el juego responsable. Casino kingmaker no solo destaca por su variedad, sino tambien por un sistema de navegacion fluido que permite encontrar tus juegos favoritos sin perder tiempo.

    En resumen, King maker se presenta como una opcion firme para los fanaticos del juego online. Si te preguntas si esta opcion es la adecuada para ti, basta con revisar las funciones que ofrece king maker casino para notar la diferencia. La calidad visual y la rapidez del sitio hacen que el tiempo que pases aqui sea optimo. No es casualidad que el nombre kingmaker tenga tanto peso en los foros especializados; su apuesta por la calidad lo convierte en una parada necesaria si buscas adrenalina y diversion en un entorno protegido y bien estructurado.

  3. trusted digital gaming platform has earned significant attention among English enthusiasts pursuing for a exciting wagering session [url=https://chicken-road-uk-69.zidnizikry8.workers.dev]Chicken Road Casino United Kingdom[/url] . Whether you’re intrigued about its authenticity, gameplay, or if it it accepts genuine cash, this analysis delivers a detailed look to support you assess if this gaming hub is the suitable choice for you.

    A of the frequent concerns gamblers pose is, *”Does this gaming hub reputable?”* Although digital gaming sites function in a governed environment, it’s essential to verify their licensing and safeguards. This gaming hub promises to offer a extensive selection of options, including slots, traditional options, and live hosted features, all engineered to offer an captivating experience. Still, as like every web-based casino, it’s crucial to explore alone to verify fairness and openness. Numerous enthusiasts in the UK have exchanged their impressions, with a few acclaiming the array of the platform’s titles on offer, whereas others hold skeptical about its legitimacy.

    Are you questioning if you are able to wager in this site’s games for live cash in the home nation, the response depends on the hub’s licensing and transaction methods. Licensed betting platforms usually provide protected payments, fair playing dynamics, and safe entertainment features. This gaming hub British need inspect for valid accreditation, such as the British Gaming Authority or other trusted institutions, to confirm a safe and fair playing framework. Several players claim efficient transactions, whereas others suggest that withdrawal delays often shift, so it’s sensible to analyze latest Chicken Road Casino evaluations ahead of participating.

    For players searching to sample this gaming hub’s entertainment, the site offers a array of titles, including slots, poker, and wheel games. A number of enthusiasts appreciate the thrill of Chicken Road Casino playing experience, significantly when trying latest tools or promotions. That said, it’s critical to understand that not every games might exist provided in every area, so checking the UK-specific offerings is essential. Several punters have noted that the platform’s analyses frequently highlight the platform’s intuitive system, ensuring it open for nearly all novices and experienced punters.

    Before engaging, it’s also beneficial to review a this gaming hub’s guide from reliable institutions to grasp its pros and weaknesses. Several players appreciate the variety of entertainment, although others might feel worried about payment delays or restricted deposit choices. Safe entertainment is perpetually a goal, so establishing funding caps and observing intervals when essential is recommended.

    In summary, Chicken Road Casino offers itself as an thrilling selection for UK players, but its reputation and playing dynamics standard ought to be diligently studied. When you’re hunting for a exciting pastime or genuine funds gaming, recognising the platform’s standing and tools will support you take an well-researched decision. Forever prioritise security and equity during choosing an web-based gaming site.

  4. Wybór optymalnego serwisu do gry online to postanowienie, który wymaga sprawdzenia licznych kluczowych aspektów [url=https://ivy-bet-82.pages.dev]ivybet kasyno[/url] . Wybraną stron, która coraz częściej pojawia się w opiniach użytkowników, jest ivybet. Jeśli potrzebujesz informacji na kwestię tego, co zapewnia ivy bet, opłaca się zbadać bliżej tej wartości oraz możliwościom. Użytkownicy, które wpisują w narzędzie wyszukujące frazę ivybet opinie, standardowo szukają danych odnośnie ochrony, tempa wypłat oraz zasobności widocznych gier.

    Serwis ivybet polska dąży sprostać oczekiwaniom rodzimych użytkowników, proponując klarowny interfejs oraz wsparcie techniczną. Dla wielu osób kluczowym elementem selekcji serwisu jest głównie zakładka hazardowa. W tym obszarze ivybet kasyno pokazuje obszerną paletę slotów, gier karcianych oraz wariantów z dealerem na żywo. Nic niezwykłego, że kasyno ivybet przyciąga równie dobrze nowicjuszy, jak i wprawionych entuzjastów gier online. Jasny projekt strony ivybet pl wspomaga przemieszczanie pomiędzy poszczególnymi kategoriami, co jest dużym atutem dla właścicieli urządzeń mobilnych.

    Postawiając na casino ivybet, warto również przejrzeć aktualne promocje, które często uświetniają startowi. Ivybet casino stawia na bogactwo, regularnie uzupełniając spis oferowanych twórców oprogramowania. Gdy zajmuje Cię obszerny świat typów, ivybet bet spaja w sobie cechy starego bukmachera oraz innowacyjnego centrum gier, co kreuje to witrynę wszechstronnym rozwiązaniem. Strona ivy bet pl jest opracowywana w sposób intuicyjny, aby dowolny gracz mógł poczuć się swobodnie od razu po początkowej wizyty. Kończąc, jeżeli myślisz nad selekcją punktu do zabawy, trzeba we własnym zakresie wypróbować możliwości, jakie udostępnia ten podmiot. Miej na uwadze jednak, żeby zawsze grać rozsądnie i weryfikować regulaminy wszystkich platformy, z której korzystasz, by Twoje doświadczenia z zabawą online pozostały w całkowicie pozytywne i bezpieczne. Wybór właściwego operatora to wstępny punkt do przyjemnej rozrywki, a strona ta jest ciekawą alternatywę na branży.

  5. Услуги на дому могут использоваться при плановой инфузионной терапии, восстановлении после болезни, обезвоживании и других состояниях, при которых врач ранее назначил внутривенное введение. Подбор схемы проходит индивидуально. Капельница на дому имеет ограничения, поэтому перед ее проведением требуется медицинский прием и оценка текущих показателей.
    Изучить вопрос подробнее – https://nadomu1.kapelnica-ot-zapoya-v-moskve14-1.ru/

  6. Эта публикация посвящена актуальным вопросам современной медицины и здравоохранения. Мы обсудим новейшие технологии диагностики и лечения, а также их влияние на продолжительность и качество жизни. Читатель найдет здесь информацию о научных исследованиях и перспективных разработках, доступно изложенную для широкой аудитории.
    Прочесть всё о… – [url=https://shkatulkaesoteric.ru/narkologicheskie-stacionary/]наркологическая клиника москва платная[/url]

  7. В этой медицинской статье мы погрузимся в актуальные вопросы здравоохранения и лечения заболеваний. Читатели узнают о современных подходах, методах диагностики и новых открытий в научных исследованиях. Наша цель — донести важную информацию и повысить уровень осведомленности о здоровье.
    Дополнительно читайте здесь – [url=https://tokzamer.ru/zdorove/kruglosutochnyj-vyvod-iz-zapoya-v-moskve]нарколог вывод из запоя в стационаре[/url]

  8. В этой статье рассматриваются актуальные вопросы, связанные с развитием медицинской науки и её внедрением в повседневную практику. Особое внимание уделено вопросам профилактики, ранней диагностики и использованию технологий для улучшения здоровья человека.
    Получить полную информацию – [url=https://brandnewday.ru/zdorove/centr-lecheniya-zavisimostej/]наркоклиника москва[/url]

  9. В клинике проводится вывод из запоя, детоксикация организма, снятие ломки, медикаментозное лечение алкоголизма и наркомании, кодирование, психотерапия и реабилитация зависимых. Врач оценивает клинический статус человека и составляет план лечения, включающий необходимые процедуры, препараты, психологическую поддержку и контроль динамики. Наркологическая помощь может быть оказана амбулаторно, на дому или в стационаре. При тяжелом течении зависимости предпочтительным является лечение в клинике, где медицинский персонал круглосуточно наблюдает за состоянием больного.
    Узнать больше – [url=https://2narkologicheskaya-klinika-balashiha.ru/]http://2narkologicheskaya-klinika-balashiha.ru/[/url]

  10. chicken-Aerolla

    An online entertainment venue called The Chicken Road Gambling Den has drawn significant interest among English enthusiasts due to its wide array of entertainment titles and user-friendly interface [url=https://chicken-road-uk-70.onrender.com]Is Chicken Road Casino Legit[/url] .

    As ever more players venture into digital entertainment den, frequent queries surface regarding reliability, selection diversity, and live performance. This evaluation intends to clarify on whether Chicken Road Casino qualifies as a trustworthy option for English punters.

    To begin with, when assessing whether Chicken Road Casino is legitimate, it’s vital to examine its licensing and protection. Licensed web-based gambling sites in the UK are required overseen by governing organisations such as the UKGC. While this site seems to include a varied variety of activities, including wheel games, game games, and live host experiences, confirming its certification rank is pivotal before transferring funds. Enthusiasts should also assess for protected transaction channels, such as debit wallets, charge wallets, or digital accounts, to verify that withdrawals are secured.

    For those inquisitive about the categories of activities featured, Chicken Road Casino provides a range of titles. From timeless wheel options like Gonzo’s Quest to table activities such as roulette, the site suits to wide-ranging tastes. Live dealer options bring an further aspect of interactivity, making it appealing for gamblers who appreciate engaging moments. Still, the quality and equity of these games have to be validated through third-party reviews or assessment by trusted sources.

    Another key element is whether The Chicken Road Gambling Den supports real-money play. Many digital casinos den offer test versions for evaluating, but actual betting demands meticulous evaluation. Gamblers need search transparent agreements, equitable chances, and ethical wagering mechanisms. Bonus perks, such as sign-up rewards or free rounds, can enhance the gaming but should examined for equity and restrictions.

    When scouring The Chicken Road Gambling Den feedback, it’s useful to compile opinions from various websites. Independent feedback websites often offer detailed insights on activity variety, disbursement rates, and customer service. Positive feedback may emphasise effortless gameplay and prompt assistance, while critical feedback could trigger warnings about withdrawal slows or unfair game features.

    Ultimately, The Chicken Road Gambling Den presents itself as a feasible option for English gamblers looking for web-based gaming activities. That said, validating its legitimacy, activity fairness, and transaction protection is indispensable before involving in actual betting. Prioritise den that are regulated, transparent, and focused to safe gambling standards. Whether you’re playing Chicken Road Casino activities for enjoyment or live money, rigorous investigation guarantees a less risky and more enjoyable session.

댓글 달기

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