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”의 63,868개의 댓글

  1. Потом резко бросает, и начинается ломка. Трясёт, давление скачет. Выведение из запоя на дому — это когда специалист приезжает. Человек засыпает. Выведение из запоя на дому круглосуточно — Без осуждения и лишних вопросов. Можете ознакомиться по ссылке: вывод из запоя цена на дому [url=https://lomka.vyvod-iz-zapoya-na-domu-samara-mct.ru]https://lomka.vyvod-iz-zapoya-na-domu-samara-mct.ru[/url] Там и про вывод из запоя на дому круглосуточно для области. Иногда промедление опасно.

  2. chickenroad-chaigma

    Des lors que vous explorez le domaine passionnant du jeu Chicken Road, il est vraiment indispensable de comprendre integralement les normes qui regissent son utilisation [url=https://chickenroad-game-review.fr/termes-et-conditions]ChickenRoad[/url] . La plateforme ChickenRoad s engage fermement a proposer un parcours limpide et fiable a chaque membre. L espace consacree aux termes et conditions est un pilier fondamental de ce lien de loyaute, exposant les accords communs entre la plateforme et les membres.

    Des votre connexion aux prestations fournies sur Chicken Road, tout membre valide tacitement la totalite des mesures juridiques presentees. Ces conditions traitent de nombreux domaines importants, notamment la preservation des droits d auteur, les principes de savoir-vivre parmi le groupe et les limites d engagement du gestionnaire. Nous conseillons vivement de verifier souvent cet espace du site ChickenRoad, car des mises a jour peuvent etre realisees afin de s ajuster aux evolutions technologiques ou aux recentes contraintes reglementaires.

    L honnetete est au c?ur de la vision de Chicken Road. En consultant les termes et conditions, vous comprendrez la facon dont vos renseignements sont manipulees, quelles sont les restrictions d usage liees a l age ou a la zone geographique, et la maniere dont les conflits eventuels sont tranches. Ce serieux administratif certifie que la periode consacre au divertissement demeure une parenthese de pur divertissement sans aucune ambiguite.

    N hesitez surtout pas a dedier un court moment pour parcourir avec soin ces textes officiels. Une saisie precise des regles vous permettra de profiter pleinement de l ensemble des outils mis a disposition par ChickenRoad avec une totale confiance. Peu importe que vous soyez un utilisateur recent ou un habitue, la connaissance de ces modalites est capitale pour naviguer sans risque dans l univers ludique que nous avons bati pour votre plaisir. En suivant ces lignes directrices, vous aidez grandement a conserver un environnement positif, equitable et agreable pour l ensemble de la communaute des passionnes de Chicken Road. Votre plaisir et votre protection sont nos priorites absolues a l interieur de notre ecosysteme de jeu.

  3. needforslots-Jicky

    Decyzja dotycząca właściwego serwisu do rozrywki online stanowi fundamentalny wybor przeznaczony dla wszystkich miłośnika automatow [url=https://needforslots-casino-12.vercel.app]need for slots pl[/url] . Jeśli poszukujesz nowoczesnej i prostej w obsłudze platformy, trzeba przetestować need for slots, co zyskuje coraz większą renomę wśrod hazardzistow w naszym kraju. Portal osiągalny pod adresem needforslots casino jest propozycja dla graczy ceniących sobie szybkość pracy, czytelny interfejs jak rownież dostęp do najciekawszych gier pochodzących od renomowanych tworcow oprogramowania.

    Z jakiego powodu warto skupić się przy kasyno need for slots? Przede wszystkim platforma niniejsza została zaprojektowana uwzględniając komforcie graczy, co sprawia, że nawigacja po stronie pozostaje bardzo płynna a także na laptopach, tak samo oraz smartfonach. Każdy, kto tylko postawi na need for slots polska, może liczyć na bogaty asortyment automatow, począwszy od tradycyjnych gier typu fruit, po nowoczesne gry wideo z rozbudowanymi opcjami bonusowymi. Need for slots pl stawia na kwestię rożnorodność, dzięki czemu użytkownik znajdzie coś odpowiedniego pod własnego stylu gry.

    Dla polskich graczy kluczowe jest poczucie pełnego bezpieczeństwa i szybki dostęp do świata rozrywki, co oferuje właśnie kasyno need for slots. Sporo użytkownikow zastanawia się, jaki czynnik charakteryzuje to miejsce na pośrod konkurencji. Przede wszystkim jest ta optymalizacja strony, dzięki niej needforslots online pracuje perfekcyjnie, zapewniając szybkie wczytywanie gier. Jeśli jesteś zainteresowany nowoczesnymi funkcjonalnościami, casino needforslots jest miejscem, ktore bez wątpienia należy sprawdzić.

    Poszukując miejsca, gdzie potrzebujesz emocji i doskonałej jakości rozrywki, need for slots kasyno oferuje precyzyjnie to, jakich oczekują dzisiejsi użytkownicy. Profesjonalne podejście do klienta do klienta oraz regularnie aktualizowana biblioteka gier sprawiają, iż casino need for slots zaczyna być popularniejszym wyborem. Jeśli doceniasz wysoką jakość i pragniesz wstąpić do prężnie powiększającej się społeczności, zobacz, co proponuje needforslots casino. To idealne mix innowacji oraz pasji do świata hazardu, ktore to zapewni Ci mnostwo chwil wspaniałej rozrywki w bezpiecznym środowisku, skrojonym do potrzeb graczy w Polsce. Nie przegap okazji i poznaj cały zakres możliwości, jaki oferuje ta zaawansowana platforma w tej chwili.

  4. Inside spino gambino, we highlight the openness alongside safety of your digital experience [url=https://spino-gambino-casinoreview.net/cookie-policy]spinogambino[/url] . Whenever you access our portal located at spino-gambino-casinoreview.net/cookie-policy, you shall find thorough guidance covering the ways we employ tracking files and related tracking technologies in order to boost your navigation session. Grasping our cookie policy remains crucial for all members who interact via our platform, as it details the manner in which we collect, archive, alongside handle facts to verify a seamless engagement concerning our features.

    Our main goal behind the cookies deployed by spinogambino exists aiming to maximize web usability. Via employing these tiny data elements, our environment is able to retain your choices, such for example linguistic configurations rather than user login status, retaining the user moments during later visits. Moreover, we leverage tracking bits in order to gain understanding into the way guests navigate our site. Such data enables our staff within spino gambino in order to spot popular areas, fix technical problems, alongside constantly refine our information in order to efficiently serve your requirements. Our group hold that the open strategy to privacy oversight constitutes the basis for reliability within our online gaming community.

    You consistently keep total authority over your confidentiality configurations. Many contemporary internet tools enable you in order to view, control, alongside clear tracking data by way of your options menu. By adjusting such parameters, you can opt in order to block all alternatively certain categories regarding files, even if executing this may restrict certain dynamic features of our website. We urge all members to regularly review our cookie policy to stay aware about any modifications that represent changes in our information protocols as well as regulatory standards.

    Our commitment regarding privacy appears constant. Via utilizing our tools given in our cookie policy, spino gambino guarantees that your individual information is managed with the greatest standard of diligence. The team invite you in order to explore these resources within spinogambino in order to understand the way we offset personalized customer experiences alongside demanding safety guidelines. Should you possess some inquiries regarding how we use cookies, feel free to not hesitate to connect out with our specialized assistance staff, who is always prepared in order to support the user. [url=https://bretonia.eu/forum/topic/83702-link-harbor-cracking-whisper-voyage/page/244/#comment-414795]Grasping the Tracking Disclosure at spino-gambino-casinoreview.net: Ensuring a Transparent alongside Secure Betting Environment[/url] [url=https://www.djshipping.co/hello-world/#comment-37987]Understanding the Tracking Disclosure at spino-gambino-casinoreview.net: Ensuring a Open plus Secure Online Journey[/url] dfec980

  5. В этой статье мы обсудим процесс восстановления после зависимостей, акцентируя внимание на различных методах и подходах к реабилитации. Читатели узнают, как создать план выздоровления и использовать полезные ресурсы для достижения устойчивых изменений.
    Выяснить больше – [url=https://narcolog-life.com/article/alkogol-i-psihotropnye-preparaty-smertelno-opasnaya-kombinacziya/]реабилитация алкоголиков[/url]

  6. spinogambino-Uploacy

    Navigating the vast realm of web-based wagering often seem daunting, but locating the ideal promotional incentives should not be a burden [url=https://spinogambino-casinobonus.com/tags]spinogambino casinobonus[/url] . Regarding users who are continuously searching for the top deals, monitoring latest incentives is vital. The website spinogambino-casinobonus.com serves as a central resource designed to simplify this process, notably by way of its custom categories segment. Through employing these particular tags, users can sift through a massive collection of rewards to find definitely what fits their unique wagering habit.

    The labels function on spinogambino-casinobonus.com is built for speed plus simplicity in utilization. Instead of clicking through countless irrelevant offers, visitors might select grouped labels to instantly access promotions adjusted for their unique interests. Whether you’re seeking no-deposit bonuses, free spins, reload offers, or exclusive VIP perks, the site sorts such offers inside accessible categories. This detailed strategy confirms that you spend minimal effort searching for keys plus extra moments playing the favorite gaming games.

    One among the key gains from navigating via spinogambino-casinobonus.com is the sheer array regarding selections categorized using these tags. The webpage regularly updates the listings to reflect the latest shifts within this betting sector, making sure the fact that players remain not stuck by old data. By frequently checking this categories screen, users can stay ahead of the curve and secure short-term deals that often concealed within less intuitive webpages. Moreover, this systematic approach makes the process effortless to compare different reward schemes, aiding you to form educated choices about where to spend your effort plus bankroll.

    In finish, provided users desire to enhance their betting journey, spinogambino-casinobonus.com provides all essential tools to manage your hunt for worth efficiently. By leveraging this extensive category framework, users obtain instant entry to the relevant deals accessible right now. Regardless if one is an relaxed gamer or perhaps a high player, this user-friendly interface promises the fact that their path to locating excellent casino rewards is equally effective plus pleasant. Check out the labels right away to boost your online gambling journey.

  7. spingrannycasino-busly

    Ochrana a serioznost klientů jsou pro tym na strance Spingranny absolutni prioritou [url=https://spingrannycasino.cz/zasady-ochrany-osobnich-udaju]spingranny[/url] . Kdyz otevřete online prezentaci Spin granny, můzete si moci byt jisti, ze s těmito osobnimi udaji pracujeme s striktni pečlivosti a v plnem souladu platnych zakonů na ochranu soukromi. Tyto zasady ochrany osobnich udajů, z nichz uvidite na url spingrannycasino.cz/zasady-ochrany-osobnich-udaju, jsou navrzeny proto, aby vam nabidly jasny obraz o tom, jake informace evidujeme a jakou cestou je chranime před neopravněnym přistupem.

    V momentě, kdy se přihlasite do Spingranny, předavate nam určite udaje, jez jsou nutne k bezproblemove fungovani vaseho osobniho hračskeho učtu a zajistěni bezpečnych transakci. Spin granny vyuziva vyspěle sifrovaci technologie, z nichz garantuji, ze tato osobni data, finančni detaily jakoz i herni historie jsou v bezpečnem prostředi i nejsou předavany s cizimi třetimi stranami bez vaseho vyslovneho vyslovneho souhlasu. Tyto vnitřni procesy jsou kontinualně auditovany, proto, abychom zajistili optimalni normy ochrany, z nichz od nas coby od poctiveho provozovatele očekavate.

    Vase bezpeči je pro nas podstatne, proto soustředime se na otevřenost. Přimo v časti zasad ochrany osobnich udajů jiz detailně přesvědčite, za jakym učelem vase data analyzujeme, jak dlouho dane udaje uchovavame a jaka mate moznosti v souvislosti s těchto dat administraci připadně vymazem. Pokud mate jakekoliv dalsi otazky v souvislosti se zabezpečeni vaseho uzivatelskeho profilu do Spingranny, nas tym zakaznicke podpory je vam vzdy plně přistupny. Jsme přesvědčeni, aby poučeny uzivatel je spokojeny zakaznik, a pravě proto jiz snazime, aby zůstalo prostředi Spin granny nejen zabavne, vsak zejmena maximalně bezpečne pro veskereho uzivatele. Vzajemna důvěra mezi nasim webem jakoz i nasimi uzivateli tvoři zakladem, o ktery stavime kazdy nas herni titul. Děkujeme, aby jste členy nasi platformy i aby nam důvěřujete svou přizeň při čerpani nasich vyhod.

  8. Un diversión totalmente popular que ha despertado mucha curiosidad entre los internautas de la web, particularmente en España, donde páginas como Hosting han permitido que direcciones como *chicken-road-es-30.onrender.com* se queden destacados [url=https://chicken-road-es-30.onrender.com]El Chicken Road Es Real[/url] . Pero, ¿de verdad es real solo un engaño? Muchos se plantean si este desafío, que garantiza premios por cumplir desafíos, es una estafa o una aventura auténtica. Analicemos la situación con extensión para aclarar las preocupaciones sobre *El Juego de Chicken Road Es Real* y si realmente vale la pena jugar.

    Este desafío en análisis se basaba en un concepto sencillo, sin embargo adictivo, donde el usuario debe lograr pruebas que reproducen momentos de la vida real, como cruzar una acera y eludir barreras, para avanzar. Aunque el origen se viene a un aplicación móvil, llamado *Chicken Run*, la versión web que se difunde en España ha generado juicios contradictorias. Algunos internautas comentan que es una opción entretenida de ocupar el momento, mientras algunos sospechan que se trata de una trampa camuflada de juego.

    Esta pregunta *Chicken Road Es Real O Falso* suele surgir porque varios internautas no perciben de qué manera se desarrolla el sistema de recompensas. En verdad, este entretenimiento no proporciona dinero de verdad, ni recompensas físicos, solo puntos en línea y méritos en el de la web. No obstante ello, esto no quiere decir que resulte en una trampa, más bien un juego alejado de objetivos ganancieros. Esta incertidumbre apareció porque determinados sitios similares ofrecen recompensas falsas, esto que lleva a creer que *El Juego Chicken Road Es Real* podría ser igual.

    Cuando te pregunta *Chicken Road Es Real?*, la solución es que sí, sin embargo en el concepto de que se encuentra como experiencia. No es un engaño para mismo, pero resulta importante desconfiar de engañarse con trampas parecidos que garantizan ganancias financieros. La secreta está en apreciar el desafío alejado de anticipar premios tangibles. Varios participantes disfrutan de *El Juego Del Chicken Road Es Real* como una opción de descansar y potenciar sus reflejos, alejado de otras aspiraciones.

    En síntesis, *Chicken Road Es Real* como entretenimiento, sin embargo no como sistema para obtener dinero. Cuando buscas diversión alejado de problemas, se convierte en una alternativa buena, siempre no no te fíes en adaptaciones modificadas que puedan ser engaños. La ideal manera de aprovecharlo es con la mentalidad adecuada: como un pasatiempo, no como una chance de ganancia rápido. De esta evitarás tropezar en el error de pensar que *El Juego Chicken Road Es Real O Falso* se trata de una engaño, mientras en realidad se convierte en tan juego entre en la web.

  9. spinmama-Fosoria

    Locating the right destination for online casino entertainment is often a challenge, which is why the team behind spinmama is committed to building a platform that focuses on user happiness and transparency [url=https://spinmama-slots.org/about-us]spinmama[/url] . When you visit the about us page at spinmama-slots.org, you get a transparent view of the principles that motivate this community. The mission of spin mama is simple yet ambitious: to provide a safe, engaging, and informative environment for fans of slots and online gambling experiences.

    At the heart of the spinmama vision is a strong dedication to quality. The platform was designed by veterans who know exactly what gamers are seeking in terms of selection, user interface, and overall reliability. By prioritizing quality over quantity, spin mama ensures that every recommendation and feature provided on the site adheres to strict criteria. This commitment assists players explore the vast world of internet casinos with confidence, knowing that they have a reliable guide in their corner.

    Integrity and responsible gaming are the foundations of the spinmama experience. The team acknowledges that while slots are meant to be a fun pastime, they must be played with caution. Through the about us page, users can discover how the platform promotes transparency and offers support tools for those who need support. This principled stance is what distinguishes spin mama apart in a crowded market. Whether you are a beginner just discovering the thrill of spinning reels or a seasoned player looking for new tips, the platform aims to offer resources that are both helpful and user-friendly.

    Ultimately, spinmama stands as a guide for those who appreciate clarity and connection in their gaming journey. By heading to their site and learning more about their vision, you will see why spin mama has become a go-to resource. Their dedication to improving the player experience daily shows that they are not just another site, but a dedicated advocate for the global gaming community.

  10. Этот медицинский обзор сосредоточен на последних достижениях, которые оказывают влияние на пациентов и медицинскую практику. Мы разбираем инновационные методы лечения и исследований, акцентируя внимание на их значимости для общественного здоровья. Читатели узнают о свежих данных и их возможном применении.
    Лови подробности – [url=https://narcolog-life.com/article/alkogol-i-psihotropnye-preparaty-smertelno-opasnaya-kombinacziya/]центр наркологии[/url]

댓글 달기

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