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

  1. купить скорости спб сайт закладок наркотики Мефедрон купить, кокаин купить флер наркотик купить купить наркотики онлайн лирика 300 мг купить
    можно купить наркотики шишка бошка купить купить экстази бошки гашиш в турцииhttps://armavirkupit.xyz сайт заказать наркотик купить гашиш бошки

  2. baxterbet-optiorb

    Βρείτε την απόλυτη εμπειρία διασκέδασης στο πεδίο του iGaming χάρη στο baxterbet, έναν ιστότοπο που κατακτά την αγορά έλκοντας χρήστες που απαιτούν εμπιστοσύνη και πληθώρα [url=https://baxterbet-casino-42.vercel.app]baxterbet casino greece[/url] . Το baxter bet έχει δημιουργηθεί με γνώμονα τον παίκτη, προσφέροντας εύκολη λειτουργικότητα και ελκυστική όψη που αιχμαλωτίζει άμεσα τα ενδιαφέροντα.

    Αναφορικά με την ψυχαγωγία, το baxterbet casino διαθέτει μια τεράστια συλλογή από δημοφιλείς κουλοχέρηδες, επιτραπέζια παιχνίδια και εντυπωσιακές επιλογές ζωντανό καζίνο με ζωντανούς ντίλερ. Όλη η επίσκεψη στο baxter bet casino συμπληρώνεται από ανταγωνιστικές αποδόσεις και απρόσκοπτη ροή παιχνιδιού, χωρίς τεχνικά κολλήματα, γεγονός που το καθιστά εξαιρετικό τόσο για αρχάριους αλλά και για παλαιότερους παίκτες.

    Οι φίλοι των τυχερών παιχνιδιών στην Ελλάδα δείχνουν ήδη τεράστιο ενδιαφέρον, στοιχείο που φαίνεται από τις καλές baxterbet κριτικες που κυκλοφορούν στο ίντερνετ. Το κοινό προτιμά κυρίως την ταχύτητα στις συναλλαγές, την επαγγελματική εξυπηρέτηση πελατών και τις ελκυστικές προσφορές που ανανεώνονται συνεχώς. Το baxterbet casino greece φέρει μεγάλα πρότυπα ποιότητας στην τοπική αγορά, εξασφαλίζοντας ένα προστατευμένο και αξιόπιστο περιβάλλον παιχνιδιού.

    Επιλέγοντας το baxterbet καζίνο, οι παίκτες χαίρονται σύγχρονα μέτρα ασφαλείας και κρυπτογράφησης δεδομένων, κάτι που χαρίζει βαθιά ηρεμία καθ’ όλη την περίοδο των στοιχημάτων. Το καζίνο baxterbet παντρεύει την αξιοπιστία με την μοναδική ψυχαγωγία, κάνοντας κάθε συνεδρία ξεχωριστή. Για εκείνους που ψάχνουν μια πλήρη εμπειρία στο διαδίκτυο, το baxterbet gr αντιπροσωπεύει μια από τις πιο σύγχρονες και αξιόπιστες προτάσεις της εποχής. Εξερευνήστε την πλατφόρμα και απολαύστε τη δράση σήμερα.

  3. O site 9bet8dev é uma ambiente virtual que fornece uma abundância de possibilidades de atividades na web, notavelmente voltada para atividades de risco e paris de esportes [url=https://9bet-8.pages.dev]9bet Games Casino[/url] .

    Se você busca por em uma solução recomendada para experimentar de experiências como atividade 9bet, bets em casa de apostas 9bet Bet ou desvendar os casino 9bet, é essencial analisar como funciona e quais são suas características mais relevantes.

    A rede 9bet Bet é notável por colocar à disposição uma grande quantidade de 9bet Games, abrangendo slots, atividades de mesa e jogadas esportivas. Isso transforma o 9bet Casino uma escolha apetecível para quem procura por abundância em diversão virtuais. Por outro lado, muitos clientes buscam dados sobre a credibilidade da rede, notavelmente quando discutem sobre se o 9bet Online é recomendado.

    Para quem se encontra no Brasil, o 9bet Br é uma alternativa desejável, pois oferece suporte em português e agiliza o acesso a depositos e atividades. A ambiente também é destacada como 9bet Bet Brasil, sendo uma das mais procuradas para quem tem interesse fazer apostas em partidas ou participar mesas de jogos virtuais. A ferramenta 9bet é criada para ser fácil, facilitando o acesso que os clientes acessem sem esforço entre as diferentes escolhas colocadas à disposição.

    Uma das chave preocupações dos jogadores é avaliar se a plataforma é confiável. A reputação da 9bet tem sido comentada em vários ambientes, e muitos jogadores pontuam a relevância de avaliar a licença e legislação antes de investir capital. Além disso, a plataforma disponibiliza benefícios de boas-vindas e benefícios especiais, o que pode um estímulo para novos visitantes usuários.

    Se você está em uma plataforma testada para experiências e paris, é fundamental estudar as análises e históricos de outros membros. A 9bet Casa De Aposta é uma das entre as principais no espaço, mas sempre deve ser recomendado verificar se a rede satisfaz às suas expectativas detalhadas antes de se iniciar uma cadastro.

    Em análise, o 9bet-8.pages.dev pode representar uma ideal escolha para quem busca em lazer e experiências remotos, contanto que sejam adotados os devidos passos em relação à segurança e normatização. Ao explorar os jogos 9bet Casino e diferentes funcionalidades, é fácil encontrar uma experiência desejada, enquanto a rede seja analisada com cuidado.

  4. chickenroad-Whozy

    Should you are scouting for an enthralling and rapid-fire gaming journey, the chicken road game is currently going viral among thrill-seekers all over Pakistan [url=https://chickenroad-game-253.auroraserverorchidtbrft909.workers.dev]chicken road game[/url] . As a sought-after selection for people who relish instant choices and high-pressure entertainment, the chicken road online game offers a special way to examine your reaction times and fortune. Participants frequently search for the finest platforms to savor this title, and the site at chickenroad-game-253.auroraserverorchidtbrft909.workers.dev delivers a fluid experience for devotees of this niche.

    When you immerse yourself into the world of chicken road, you meet a basic yet captivating premise. The game chicken road tests you to guide your figure securely past a crowded route stuffed with obstacles. Owing to its popularity, plenty of gamers refer to it as the real chicken road game, stressing the real thrill that stems with all successful move. Whether you are enjoying the primary version or looking for the improved features of chicken road 2, the gameplay stay slick and captivating.

    For those keen on the chicken road game casino mode of action, this interface presents a virtual surrounding that replicates the fervor found in old-school betting games. The chicken road casino group has broadened tremendously, luring players who relish the rush of risk and reward. By joining a chickenroad round, players can savor a intuitive layout that functions well on both mobile devices and desktops.

    It is crucial to recall that the chicken road game online is designed for recreation. As you browse the different stages, focus on constructing your plan and grasping the layouts to elevate your outcomes. Numerous buffs recommend the chicken road experience for its short, action-packed turns that match well into a packed timetable. If you desire to enter the community of users relishing this viral electronic hurdle, visit the site stated to commence your journey. Be sure to gamble wisely and savor the fast-paced intensity that has rendered the game a standout pick in the present gaming market.

  5. Sofern Sie wahlen fur das kurzweilige plus faszinierende Vergnugen von Chicken Road entschlie?en, bleibt es unerlasslich, jene juristischen Rahmenbedingungen zu durchschauen, welche auf der Plattform gelten. Die Internetprasenz [url=https://chicken-road-game.at/nutzungsbedingungen]Chicken Road[/url] verschafft allen Spielern den ubersichtlichen Einblick in die geltenden Regeln sowie Verpflichtungen. Als begeisterter Spieler von ChickenRoad durften Sie sich mit solchen Informationen vertraut machen, um ein gerechtes ebenso geschutztes Spielumfeld zu sichern. Jene AGBs regeln abgesehen von sonstigem den korrekten Gebrauch von einem User-Konto, sowie Jugendschutzbestimmungen plus jene grundsatzlichen Verhaltensregeln, die beim der Verwendung von Chicken Road greifen. Nachdem Sicherheit und Offenheit fur das Personal von ChickenRoad maximale Prioritat genie?en, bleiben diese Bestimmungen derma?en verfasst, sodass sie bei jeden einzelnen Spieler problemlos nachvollziehbar bleiben. Mittels jener Inanspruchnahme der Services erklaren Sie ihr Einverstandnis hinsichtlich jenen Vertragen konform. Sollten Sie Anliegen zu den Details vorbringen oder Unterstutzung beim jener Verstandnis jener Klauseln erfordern, entdecken Sie bei der passenden Webprasenz oft zudem Tipps bezuglich Kontaktmoglichkeiten. Ein bedachter Gebrauch von der Gaming-Umgebung Chicken Road tragt entscheidend dazu bei, dass das Spielerlebnis fur die ganze Spielerschaft gut bleibt. Denken Sie daruber, dass die Einhaltung jener Nutzungsbedingungen niemals lediglich jenen Betreiber absichert, vielmehr zudem Ihr personliches Benutzerkonto bewahrt. Die Betreiber raten, deshalb, sich zuvor Auftakt einer ausgedehnteren Sitzung schnell die Mu?e zu investieren, jene jungsten Regeln zu lesen. Auf diese Weise sind Sie immer auf dem neuesten Wissenslevel bezuglich digitaler Voraussetzungen und gesetzlicher Infos. Zelebrieren Sie jenes abwechslungsreiche Gameplay von ChickenRoad und setzen Sie hierbei immer auf Ehrlichkeit und Fairness. Mit einem eindeutigen Durchblick der Regelwerke bleiben Sie optimal gewappnet, um jene Aufgaben in Chicken Road erfolgreich und eben gelassen dafur bewaltigen. Vertrauen Sie bei jene Seite, welche dank eindeutige Regeln Klarheit erzeugt sowie dadurch jenen Spielspa? bei jegliche Nutzer in Fokus ruckt. Besuchen Sie jene autorisierte Plattform, um damit immer hinsichtlich Updates up-to-date zu sein und Euer Abenteuer optimal zu entwickeln.

  6. Помощь можно получить анонимно, с аккуратным оформлением и внимательным отношением к личным данным.
    Изучить вопрос подробнее – [url=https://vyvod-iz-zapoya-balashiha15.ru/]vyvod-iz-zapoya-na-domu[/url]

  7. spinmacho-Skydrok

    Once you browse the official Spinmacho platform, securing a open and safe browsing experience is our top goal [url=https://spinmacho-login.net/cookie-policy]spinmacho[/url] . Our webpage leverages cookies to improve your member journey, offering you smooth reach to your beloved games and customized tools. The Spinmacho cookie policy details precisely how these little data files are utilized to support our domain operate smoothly whilst defending your sensitive data. Using spin macho, you consent to our use of cookies in conformance with this guideline, which is built to boost page output and store your personal choices.

    Cookies are vital for multiple reasons while interacting with online systems. Inside the Spinmacho site, they help us grasp how visitors traverse our links, which permits us to identify spots for enhancement and supply a highly intuitive journey. For instance, cookies enable our software to remember your dialect configurations, access condition, and specific choices, guaranteeing that every time you come back to spin macho, the site appears tailored to your unique needs. We group our cookies into vitally necessary, useful, and statistical categories, every serving a separate goal in upholding the top benchmarks you expect from our betting space.

    We take your data security earnestly and function following tough rules to guarantee that any information gathered is managed carefully. You have full sway regarding your cookie settings and might manage or block them via your web tools at any point. Regardless, please be aware that disabling some cookies could restrict your ability to reach various features of the spinmacho website, potentially affecting your total satisfaction of the site. We advise maintaining cookies turned on to get the best out of your time with us. For additional data concerning our data practices and how we secure your confidential data, kindly review our complete terms on the page. Thanks you for choosing Spinmacho for your play entertainment; we are devoted to providing you with a protected, efficient, and fun online experience each day.

  8. Вывод из запоя в Реутове в наркологической клинике «Детокс» — медицинская помощь человеку, который не может самостоятельно прекратить длительное употребление алкоголя или тяжело переносит похмелье. Лечение подбирается индивидуально с учетом возраста, количества выпитого, длительности запоя, хронических заболеваний и текущего самочувствия. Врач-нарколог проводит осмотр, оценивает физическое и психическое состояние пациента, измеряет пульс и артериальное давление, уточняет анамнез и только после диагностики определяет безопасный формат помощи: вывод из запоя на дому, амбулаторное лечение или госпитализацию в стационар.
    Подробнее – [url=https://vyvod-iz-zapoya-reutov15-1.ru/]www.vyvod-iz-zapoya-reutov15-1.ru[/url]

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

댓글 달기

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