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”의 62,696개의 댓글

  1. spingranny-urirm

    Wybor odpowiedniego miejsca do rozrywki online to istotna decyzja dla każdego fana gier, a platforma spingranny cechuje się na tle konkurencji jako nowoczesne i przyjazne dla użytkownika rozwiązanie [url=https://spingranny-52.vercel.app]spingranny[/url] . Jeśli szukasz emocji na najwyższym poziomie, spingranny casino proponuje szeroki wachlarz gier, ktore usatysfakcjonują zarowno początkujących graczy, jak i doświadczonych weteranow. Od momentu wejścia na spingranny pl użytkownicy mogą cieszyć się prostą obsługą, ktory sprawia, że nawigacja po serwisie jest bardzo intuicyjna.

    Dla osob zastanawiających się, czy warto założyć konto, spingranny online gwarantuje bezpieczne środowisko oraz dostęp do najpopularniejszych tytułow w branży. Proces, jakim jest spingranny registration, został szybko zaprojektowany, co pozwala na błyskawiczne dołączenie do społeczności. Jako renomowane casino spingranny, platforma ta kładzie ogromny nacisk na jakość oprawy graficznej oraz stabilność działania gier, dzięki czemu spingranny polska staje się popularnym miejscem w sieci. Jeśli interesuje Cię spingranny online casino, z pewnością docenisz regularne promocje oraz okazje, ktore zwiększają szanse na wygraną.

    Wiele osob wpisujących w wyszukiwarkę hasło spin granny, odkrywa świat pełen rożnorodnych automatow i gier stołowych. Jako wiodące spingranny kasyno, serwis stale aktualizuje swoją ofertę, aby sprostać wymaganiom dynamicznego rynku. Niezależnie od tego, czy preferujesz klasyczne rozwiązania, czy nowoczesne gry z krupierem na żywo, kasyno spingranny dostarcza rozrywkę na najwyższym poziomie. Użytkownicy z całego kraju, w tym ci poszukujący opcji spingranny poland, doceniają przejrzyste zasady oraz profesjonalną obsługę klienta. Każdy, kto planuje postawić swoj pierwszy spingranny bet, może liczyć na wsparcie i przejrzyste warunki gry. Jeśli Twoim celem jest znalezienie stabilnego i uczciwego miejsca do zabawy, spin granny casino stanowi doskonały wybor. Dołącz do tysięcy zadowolonych graczy i przekonaj się sam, jak wiele emocji może dostarczyć nowoczesne podejście do hazardu online na tej wyjątkowej platformie. To świetny punkt startowy na rozpoczęcie swojej przygody z grami w sieci.

  2. In case you are looking for the exhilarating plus rapid interactive experience, the drop the boss game is swiftly emerging as a top product inside the digital world [url=https://drop-the-boss-10.vercel.app]drop the boss slot[/url] . Available on drop-the-boss-10.vercel.app, this captivating addition has grabbed the interest of users who love unique mechanics and simple gameplay. Whether you happen to be hunting for the latest drop the boss casino game or simply want to try your fortune with a novel notion, this site supplies a refined setting for enthusiasts.

    The drop the boss slot genre of gaming provides a contemporary spin on standard gaming, establishing it a favourite option for individuals interested to the drop the boss online scene. With its user-friendly dashboard plus highly adaptable structure, users throughout the UK stay flocking to the platform to discover what the hype centres around. As you engage using the drop the boss stake choices, you shall observe that the title is engineered to be user-friendly, catering to each leisurely users plus ones wanting a far more demanding task. It comes as no shock that droptheboss has gathered speed as a primary spot for digital amusement.

    For gamers scouring for a top-tier drop the boss casino experience, the webpage delivers a safe with productive method to enjoy your top activities. The growth of drop the boss games persists to grow as extra players uncover the rush of the systems used. Through selecting a reputable venue, you ensure that your hours invested using the drop the boss UK setup remains equally fun and reliable. Whether you are fresh to the realm of the casino drop the boss version otherwise an seasoned professional wanting a variation of pace, the features served at this address delivers a refined execution. Jump into the realm of drop the boss today to see why many users keep designating it their main selection for virtual entertainment. Boasting its clean structure plus enticing features, it stays a leading competitor in the existing market.

  3. vegasherobet-rocrews

    Offenheit und Glaubwurdigkeit nehmen bei samtlichen respektablen Online-Unterhaltungsangebot eine wichtige Stellung [url=https://vegasherobet.ch/cookie-richtlinie]vegas hero[/url] . Wenn Sie die Webseite vegasherobet.ch aufrufen, konnen Sie feststellen, dass der Betreiber hohen Wert auf den Schutz Ihrer Geheimhaltung und die Wahrung geltender Datenschutzbestimmungen fokussiert. Ein grundlegender Bestandteil dieser Bemuhungen ist die umfassende Cookie-Richtlinie, die Sie umgehend auf der entsprechenden Unterseite nachlesen mogen. Diese Bestimmung dient dazu, Ihnen nachvollziehbar darzulegen, welche Informationen aufgezeichnet werden und wie diese zur Optimierung Ihres Spielvergnugens mitwirken.

    Bei der Verwendung von vegas hero werden typische Cookies angewandt. Hierbei geht es sich um winzige Textdateien, die beim Betrachten der Domain auf Ihrem Endgerat abgelegt werden. Diese Daten gestatten es dem Dienst unter anderem, Ihre gewahlten Einstellungen zu speichern oder die Webseite technisch an Ihre Bedurfnisse auszurichten. Die Cookie-Richtlinie von vegashero erklart hierbei exakt, zwischen welchen Typen von Cookies unterschieden wird. Hierbei gibt es essenzieller Cookies, die fur den Ablauf der Seite notwendig sind, sowie freiwillige Analyse- oder Marketing-Cookies, denen Sie in der Regel bewusst beipflichten konnen.

    Das Vorhaben von vegas hero ist es immer, den Besuch fur die Nutzer so positiv und flussig wie erreichbar zu formen. Durch die erhobenen Daten kann die Geschwindigkeit der Webseite permanent optimiert werden, was zu kurzeren Ladezeiten und einer benutzerfreundlichen Navigation beitragt. Sollten Sie als Kunde Vorbehalte hinsichtlich der Speicherung von Cookies vorweisen, stellt Ihnen die Regelung zudem klare Hilfestellungen, wie Sie Ihre Browserkonfiguration modifizieren bzw Cookies jederzeit verwalten konnen.

    Es lohnt sich, die Cookie-Richtlinie von vegashero gelegentlich zu durchsehen, um uber etwaige Aktualisierungen auf dem Laufenden zu bleiben. Hierdurch unterstreicht die Webseite ihren Wunsch, ein geschutztes und transparentes Umfeld zu schaffen. Wenn Sie auf vegasherobet.ch zocken, konnen Sie sich aufgrund dieser ausfuhrlichen Informationen gut aufgehoben fuhlen, da Sie permanent die volle Kontrolle uber Ihre digitalen Spuren und die Verarbeitung Ihrer Daten behalten. Ein bewusster Umgang mit Cookies ist ein entscheidender Baustein fur ein glaubhaftes Spielangebot. [url=https://chillforum.pl/viewtopic.php?t=41903]Transparenz bei VegasHero: Alles Wissenswerte zur offiziellen Cookie-Richtlinie und zum Datenschutz auf vegasherobet.ch[/url] [url=http://all4one.phorum.pl/viewtopic.php?f=2&t=47216&p=307264#p307264]Offenheit bei VegasHero: Ein tiefer Einblick zur gultigen Cookie-Richtlinie bzw. zum Datenschutz auf vegasherobet.ch[/url] fec9800

  4. spinmamalogin-breer

    I chrisi ton cookies einai mia vasiki parametro gia tin prostasia kai tin axiopistia kathe modernou istotopou paichnidion [url=https://spinmamalogin-bonus.gr/cookie-policy]spin mama[/url] . Stin istoselida spinmamalogin-bonus.gr, dinoume idiaiteri emfasi stin prostasia ton prosopikon dedomenon ton christon mas, exasfalizodas oti i periigisi sas stin platforma spin mama diatireitai mia evcharisti kai asfalis ebeiria. Ta cookies einai mikra archeia keimenou pou katagrafodai sti syskevi sas kata tin episkepsi sas ston istotopo, dievkolynodas mas na katanoisoume tis protimiseis sas kai na veltiosoume tis ypiresies mas stis apaitiseis sas.

    I leitourgia ton cookies sto spinmama epitrepei tin kalyteri apodosi tis selidas, exasfalizodas oti oi selides fortonoun tachytera kai oti oi rythmiseis sas apothikevodai me akriveia. Chrisimopoioume toso anagaia archeia, pou einai aparaitita gia tin kali leitourgia tis platformas, oso kai cookies analysis kai apodosis, ta opoia mas voithoun na veltionoume synechos to periechomeno pou prosferoume. Meso tis analytikis politikis cookies pou boreite na vreite ston istotopo mas, prosferoume analytiki enimerosi gia to poia dedomena syllegodai kai gia poio skopo.

    Os christis tou spin mama, echete ton apolyto elegcho ton prosopikon sas rythmiseon. Boreite opotedipote na diacheiristeite i na akyrosete ta cookies meso ton epilogon tou browser sas, an kai avto pithanon na allaxei tin ebeiria ploigisis. Emeis sto spinmama desmevomaste na sevomaste tin idiotikotita sas, akolouthodas apareglita tous nomous gia ta prosopika dedomena. I diafaneia apotelei ton akrogoniaio litho tis schesis mas mazi sas. Sas parotrynoume na diavasete prosektika ti selida tis politikis cookies ston istotopo mas gia na eiste pliros enimeromenoi schetika me ton tropo pou diacheirizomaste tis plirofories sas. I ebistosyni sas apotelei tin proteraiotita mas kathos synechizoume na anaptyssoume tin platforma mas gia na sas prosferoume tin kalyteri dynati ebeiria gaming kai pliroforisis ston choro ton online ypiresion.

  5. blazecrash-Tholete

    Jogo de azar Explosão Instantânea é uma das modalidades mais populares nos últimos anos, notavelmente entre fãs nacionais que desejam excitação e a chance de obter lucros de maneira ágil [url=https://blazecrash-br.vercel.app]Como Ganhar No Jogo Blaze Crash[/url] .

    Com um processo fácil de entender, o experiência tem atrapalhado a admiração de numerosos, mas ainda despertam incógnitas sobre como de fato opera, se cumpre pagamentos e como aumentar as chances de sucesso. Aqui neste texto, vamos explicar os fundamentos de Crash Explosivo, desde seus aspectos até recomendações cruciais para quem busca dominar a apostar e aumentar suas chances.

    O Crash Explosivo é um divertimento de apostas fundamentado em um modelo de apostas automáticas, onde os jogadores aplicam recursos em um pico que acelera até atingir um nível crítico. Quando o indicador se aproxima do pico, o divertimento determina se o investidor vence ou falha, com de acordo com um algoritmo de sorte. Embora seja básico, numerosos apostadores questionam se o Crash Explosivo devolve valores. A resolução é positiva, desde que o plataforma seja credível e licenciado, o que é o quadro do plataforma em análise, que opera de forma transparente e garante as liberações aos ganhadores.

    Uma das perguntas frequentes é como obter lucro no Crash Explosivo. A segredo está em analisar o processo do jogo e implementar algumas dicas essenciais. Antes de tudo, é fundamental definir um valor seguro e não ultrapassar o recurso que o participante pode perder sem riscos. Além disso, apostar em instantes críticos, como durante o auge do progresso, está próximo do máximo, pode potencializar as opções de sucesso. Uma abordagem complementar é maximizar os benefícios disponibilizados pelo site, que frequentemente elevam em dobro ou aumentam em 200% o montante das jogadas iniciais.

    Para quem ainda dúvida sobre como experimentar o Crash Explosivo, o passo a passo é bastante intuitivo. Logo após registro e investir recursos, é suficiente definir o valor da aposta, configurar o quantidade de rodadas e selecionar a opção “Crash”. O experiência então se intensifica, e o desfecho é apresentado quando o relógio atinge do topo. Quem busca entender detalhes a respeito o experiência, pode acessar o relatório de resultados, que detalha os históricos de jogos e contribui para a análise como o mecanismo opera.

    Um detalhe importante é a confiabilidade do Fogo Controlado. Numerosos investidores discutem se o divertimento é garantido e se os pagamentos são cumpridos sem erros. O site em foco inclui comentários elogiosos de investidores confirmados, sem contar um mecanismo de liberação claro, garantindo que os ganhos sejam devolvidos de modo eficiente e sem problemas. Adicionalmente é que o divertimento é regulamentado e emprega algoritmos de sorte aleatória, o que valida que todas as possibilidades de vitória sejam oferecidas de modo igualitário.

    Em resumo, o Fogo Controlado é uma possibilidade promissora para quem busca excitação e a possibilidade de obter lucros investindo na rede. Com as recomendações precisas e um grandeza de planejamento, é viável potencializar as probabilidades de ganho. Contudo, é fundamental recordar que o experiência inclui incerteza e que os ganhos não estão assegurados. Assim, consistentemente invista de processo prudente e no escopo seus recursos disponíveis. Se você ainda ainda não conheceu, é interessante dar uma chance ao Fogo Controlado e experimentar por você mesmo como age esse divertimento tão buscado.

  6. В этой статье рассматриваются способы преодоления зависимости и успешные истории людей, которые справились с этой проблемой. Мы обсудим важность поддержки со стороны близких и профессионалов, а также стратегии, которые могут помочь в процессе выздоровления. Научитесь первоочередным шагам к новой жизни.
    Секреты успеха внутри – [url=https://drivefun.ru/pages/narkolog-na-dom/]вызвать нарколога на дом спб[/url]

  7. Throughout the quickly developing sphere of digital amusement, many players are constantly hunting for novel and absorbing adventures [url=https://drop-the-boss-11.onrender.com]drop the boss[/url] . If you have remained investigating the most recent trends in the betting industry, you likely come across the buzz encircling drop the boss. This production certainly rapidly become a prominent alternative for individuals who relish high-octane play and rewarding features. As you navigate to the site located at drop-the-boss-11.onrender.com, you are saluted by an user-friendly interface crafted to offer smooth access to the drop the boss game.

    For enthusiasts based in the territory, the drop the boss uk community is widening as more users uncover the unique features that distinguish this release apart from classic choices. Whether you are a veteran gamer or a newcomer curious about the functionality, the drop the boss slot provides a mix of thrill and potential winnings that encourage patrons coming back for further rounds. It is not just about the artistry; the core mathematics of the drop the boss casino game guarantees that all round feels original and unpredictable.

    Numerous patrons seeking a reliable drop the boss casino session admire the ease of use offered by this web hub. When you decide to wager a drop the boss stake, you are engaging with a current dashboard that prioritises integrity and speed. The rise of droptheboss as a favoured keyword shows a movement in the direction of further thematic and interactive encounters in the digital betting environment. In contrast to past, unchanging releases, the drop the boss online space is adjusted for quick booting and fluid transitions, creating it a top choice for mobile and PC users alike.

    If you feel enthusiastic to study why casino drop the boss has secured much interest, the portal serves as an ideal launchpad. By emphasising high-end throughout all drop the boss games, the creators have ensured that amusement continues as the primary point. Browse the domain currently to comprehend why numerous gamers are selecting this their primary location for excitement, strategy, and fun in the constantly-growing sphere of web-based slots.

  8. Этот текст посвящён сложным аспектам зависимости и её влиянию на жизнь человека. Мы обсудим психологические, физические и социальные последствия зависимого поведения, а также важность своевременного обращения за помощью.
    Желаете узнать подробности? – [url=https://flatrenthq.ru/pages/lechenie-narkomanii-samara/]лечение наркотической зависимости в Самаре[/url]

  9. spingranny-Acouck

    W obecnym świecie hazardu online gracze nieustannie szukają platform, ktore łączą nowoczesność z łatwością użytkowania [url=https://spingranny-51.pages.dev]spingranny casino[/url] . Jednym z miejsc, ktore zdobywa coraz większą renomę wśrod polskich użytkownikow, jest spingranny. Ta platforma proponuje unikalne podejście do gier hazardowych, zapewniając dostęp do bogatej biblioteki automatow oraz gier stołowych. Jeśli zastanawiasz się, dlaczego spingranny kasyno przyciąga tak wielu fanow, odpowiedź kryje się w dbałości o jakość wizualną stronę gier oraz płynność działania na urządzeniach mobilnych.

    Dostęp do serwisu jest niezwykle prosty, a spingranny registration odbywa się błyskawicznie, co pozwala nowym użytkownikom niemal od razu rozpocząć przygodę z ulubionymi tytułami. Dla osob szukających sprawdzonych rozwiązań, spingranny pl stanowi atrakcyjną alternatywę, oferując stabilne miejsce do gry. Warto zauważyć, że casino spingranny kieruje się przejrzystość zasad oraz bezpieczeństwo danych osobowych graczy, co jest kluczowym elementem zaufania w branży online.

    Dla polskich graczy kluczowe jest to, że spingranny polska zapewnia dostęp do obsługi klienta oraz interfejsu dostosowanego dla lokalnego użytkownika. Niezależnie od tego, czy interesuje Cię spingranny online, czy wolisz klasyczne rozwiązania, jakie oferuje spin granny casino, platforma ta jest w stanie spełnić zrożnicowane potrzeby. Wielu użytkownikow docenia fakt, że kasyno spingranny nieustannie aktualizuje swoją ofertę o najnowsze produkcje od renomowanych dostawcow oprogramowania.

    Wybierając spingranny online casino, zyskujesz pewność, że stawiasz na rozrywkę na wysokim poziomie. Spingranny bet to opcja dla tych, ktorzy lubią adrenalinę podczas obstawiania, natomiast szeroki wybor slotow zapewnia godziny doskonałej zabawy. Jeśli Twoim celem jest znalezienie miejsca, w ktorym spin granny staje się gwarancją jakości, warto sprawdzić możliwości, jakie daje to kasyno. Spingranny poland to coraz silniejsza marka, ktora z każdym miesiącem buduje grono wiernych fanow, doceniających prostotę rejestracji oraz rożnorodność dostępnych gier. Jeśli szukasz nowoczesnego miejsca w sieci do bezpiecznej rozrywki, spingranny jest rozwiązaniem, ktore zdecydowanie warto wziąć pod uwagę w swoich codziennych poszukiwaniach.

  10. Эта информационная публикация освещает широкий спектр тем из мира медицины. Мы предлагаем читателям ясные и понятные объяснения современных заболеваний, методов профилактики и лечения. Информация будет полезна как пациентам, так и медицинским работникам, желающим поддержать уровень своих знаний.
    Исследовать вопрос подробнее – [url=https://flatfinders.ru/pages/vyvod-iz-zapoya-nedorogo-sankt-peterburg/]вывод из запоя на дому спб[/url]

댓글 달기

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