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”의 78,436개의 댓글

  1. goplay365-Evick

    un spazio tra giocatori virtuale viene soprattutto i molto valutati nel scenario delle varie servizi per giocata telematici, specialmente fra i utenti locali che alternative trasparenti.

    Tuttavia, prima valutare questo sito tra le alternativa sicura, è necessario studiare **Goplay365 valutazioni** e verificare se si tratta di si tratta un tipo di piattaforma sicuro oppure meno.

    Molti giocatori si pongono spesso: *Goplay365 diviene autorizzato?* e *Goplay365 appare affidabile?*, chiarimenti i quali un’ analisi, principalmente nel il mercato dove protezione e anche la regolarità sono essenziali.

    Il servizio che si riferisce, disponibile tramite l’URL * [url=https://goplay365-casino-8.onrender.com]Goplay365 È Legale[/url] *, non formalmente validato come il giocata conforme in Italia o in altri nazioni UE.

    Le **Goplay365 bonus** e le promozioni annunciate molto catturano la curiosità, però risulta importante analizzare se appare questa piattaforma agisce in forma autorizzato e inoltre risponde i requisiti concernenti protezione necessari.

    Molti utenti abbiano segnalato dubbi legati agli bonifici non corretti o agli termini dei vari giocatori non trasparenti, che solleva perplessità in merito alla la loro stessa sicurezza.

    Se cerchi di ricercando **Goplay365 scelte**, potresti valutare strutture conformi fra cui 888 Casino, oppure servizi online che presentano validazione dell’Europa, che offrono elevata trasparenza.

    Le **recensioni di Goplay365** disponibili su web appaiono estremamente diverse: alcuni utenti riportano racconti soddisfacenti, invece altri clienti denunciano ostacoli nel dei soldi oppure dissonanze di sistema. Ciò implica necessario un metodo prudente, in particolare se spese significativi.

    Un aspetto che richiede esaminare diventa **Goplay365 promozioni**: molteplici incentivi sembrano eccessivamente allettanti di vere, il potrebbe essere un indizio di attenzione. Prima di partecipare, diventa fondamentale studiare attentamente le varie generali e verificare se il il portale dispone di **Goplay365 piattaforma autorizzato**, che include validazioni conforme e pareri esterne. Nel caso di perplessità, è sempre preferire piattaforme con una consolidata immagine e che sono regolamentate dalle competenti autorità di riferimento.

    Alla fine valutazione, se stai pensando di analizzare questa piattaforma come alternativa di giocatori, valuta di adeguatamente sulle presenti e di esaminarla con opzioni molto sicure. La protezione protezione dei propri documenti e anche dei denaro dovrebbero sempre la massima necessità.

  2. В этой медицинской статье мы погрузимся в актуальные вопросы здравоохранения и лечения заболеваний. Читатели узнают о современных подходах, методах диагностики и новых открытий в научных исследованиях. Наша цель — донести важную информацию и повысить уровень осведомленности о здоровье.
    Проследить причинно-следственные связи – [url=https://boilervdom.ru/zdorove/lechenie-zapoya-v-stacionare.html]выведение из запоя стационар[/url]

  3. Securing your personal information is a core commitment at spinogambino, and our security rules serves as a clear guide to the manner we manage your info [url=https://spino-gambinobonus.com/privacy-policy]spinogambino[/url] . As you visit our site, we value your security and guarantee that your experience remains equally safe and fun. Grasping the measures we utilize to defend your privacy is an crucial part of staying a registered user of the spino gambino network.

    Our information gathering procedures are strictly governed by globally-accepted standards. We collect data mostly to enhance your user experience, oversee your profile securely, and offer tailored features adapted to your betting tastes. This encompasses basic details given while registration and system metrics obtained using trackers to guarantee the website works smoothly over various platforms. We are fully dedicated to the principle that your information should never be disclosed with unauthorized third parties for promotional intents lacking your explicit permission.

    Safety is at the heart of the spino gambino infrastructure. We apply advanced coding methods to guard your confidential banking and personal records from external entry or unintentional exposure. By opting to interact with our service, you are consenting to the rules specified in our data policy, which is designed to adhere to international data protection laws. We consistently review and revise our standards to reflect advancing online safety norms and to maintain the trust you give to us.

    Should you possess particular worries concerning the storage of your data or if you wish to assert your rights to retrieve or erase your personal data, our customer service is readily prepared to help you. At spinogambino, we maintain that knowledgeable users are capable gamers. We urge all users to read our complete data documentation paperwork to keep track of how we manage your details. Your tranquility is our aim as we persist in offering a top-tier setting for virtual gaming. By following these high benchmarks, we guarantee that spino gambino remains a secure destination for your gaming pursuits. [url=https://boimoe.com/index.php?blogger_id=2&route=information%2Fblogger]Safeguarding Your Sensitive Details: A Transparent Look at the Spino Gambino Privacy Policy[/url] [url=http://119dongwon.com/bbs/board.php?bo_table=sub0501&wr_id=35494]Protecting Your Pri[/url] fec9800

  4. jackpot-occance

    Should you are hunting for an captivating online gaming adventure, Jackpot Raider is swiftly emerging as a brand to monitor in the market [url=https://jackpot-raider-19.vercel.app]Jackpot Raider login[/url] . For players scouting for a new platform, the Jackpot Raider casino provides a diverse array of slots and casino games tailored to cater to both relaxed players and professional whales. With a modern design that emphasises navigation, Jackpot Raider UK customers are finding it quicker than ever to explore via a vast catalogue of titles straight from their PC or handheld devices.

    When assessing a novel environment, many players often query is Jackpot Raider casino legit? The site concentrates on upholding top standards of protection and openness, verifying that players stay secure while enjoying their top titles. To commence, the Jackpot Raider login method is straightforward and rapid, enabling you to enter your account dashboard and commence betting within minutes. After you are set up, you can investigate each aspect that the casino Jackpot Raider ecosystem has to supply, from exciting bonuses to special marketing events.

    A of the key factors for any player is the efficiency of monetary deals. The JackpotRaider withdrawal time is planned to be highly efficient, seeking to complete your winnings as promptly as practical so you can relish your winnings minus unnecessary halts. Prior to you register, studying a detailed Jackpot Raider casino review can grant useful details into the play variety, customer helpfulness, and general system performance.

    Numerous Jackpot Raider reviews underscore the intuitive style and the strong support network ready to all players. Whether you are interested about the JackpotRaider casino library or you are attracted to the specific bonus schemes, the domain is built to provide a fluid virtual journey. By merging a fresh style with dependable gameplay, Jackpot Raider is creating out a key niche for itself. If you are ready to explore a dynamic gaming world, accessing the hub presently is the best approach to see how it fits your personal needs and play habit.

  5. В этой статье рассматриваются различные аспекты избавления от зависимости, включая физические и психологические методы. Мы обсудим поддержку, мотивацию и стратегии, которые помогут в процессе выздоровления. Читатели узнают, как преодолеть трудности и двигаться к новой жизни без зависимости.
    Связаться за уточнением – [url=https://boilervdom.ru/zdorove/lechenie-zapoya-v-stacionare.html]детоксикация от алкоголя в клинике[/url]

  6. khelakorocasino-orido

    Provided you seek a premium betting experience using your mobile device, the khelakoro app is the perfect remedy for players who relish action and ease [url=https://khelakorocasino-casino.com/app]khelakoro app[/url] . Designed to offer smooth navigation and sharp imagery, this platform guarantees that you can open your top games anytime and anywhere. Whether you stay at your residence or on the go, the casino khelakoro app presents a universe of amusement right to your fingertips.

    To begin, the khelakoro app download procedure is straightforward and easy to navigate. By checking the official portal, you can quickly start the download and set up the application on your mobile. Once installed, you might observe that the design stays refined for equally velocity and performance, making it more effortless than ever to submit wagers or participate in active play games. Numerous users favor this method as the khela koro app gives a stable network, lowering lag during hectic rounds of action.

    Protection represents a major concern for the creators. When you finish the khela koro app login, your private information and financial transactions become guarded by advanced security protocols. This fosters a protected setting in which you are able to center completely on your gameplay. If you are a fresh member, you are going to find that the registration flow stays simple, allowing you to reach the full array of tools in moments. Regardless of if you identify it to be the khela koro casino app or simply the app khela koro, the platform stands regularly rated for its dependability and vast selection of titles.

    For individuals keen to start, the khela koro app download is the first stage toward gaining special gifts and deals geared for portable players. Handling your dashboard, viewing your credit, and doing the khelakoro login app task stay entirely optimized for mobile displays. Do not skip the fun; download the khelakoro casino app today and discover why countless gamers are executing the shift to this phone-focused betting solution. Experience the coming era of digital amusement with a service that genuinely grasps the requirements of current users.

  7. Эта информационная публикация освещает широкий спектр тем из мира медицины. Мы предлагаем читателям ясные и понятные объяснения современных заболеваний, методов профилактики и лечения. Информация будет полезна как пациентам, так и медицинским работникам, желающим поддержать уровень своих знаний.
    Получить профессиональную консультацию – [url=https://9610085.ru/zdorove/vyvod-iz-zapoya-na-domu-cena]вывод из запоя за один день[/url]

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

  9. goplay365-Skync

    un piattaforma concernente giocata virtuale tra gli i giocata online e slot machine risulta un importante tra più osservati negli passati periodi [url=https://goplay365-casino-9.vercel.app]Goplay365[/url] .

    Con il sito hosted su una soluzione digitale, il sito si posiziona una spazio digitale che offre una selezione di attività accompagnati da offerte interessanti e un’interfaccia innovativa. Pertanto, come di frequente accade all’interno dell’universo dei giocate online online, nascono domande sulla la sua affidabilità, regolarità e correttezza. Con questo, esamineremo le chiave particolarità di questo portale, esaminando le numerose feedback pubblicate, le valide proposte e la all’interno del nazionale italiano.

    Le offerte inerenti alle Goplay365 Incentivi sono un elemento fra forza che attirano molti giocatori. La piattaforma propone bonus relativi al registrazione, cashback e eventi che offrono premi apprezzabili, che potrebbero rendere l’esperienza di più appezzante. Nonostante ciò, diviene importante analizzare se questi bonus proposte risultano essere realmente trasparenti e se il sito adempia le pubblicizzate condizioni pubblicizzate. Molti Valutazioni su la piattaforma virtuale evidenziano sui tempi di e sulla accessibilità dei vari promozioni, avvertendo di leggere con precisione le clausole di partecipazione prima di di effettuare iscrizione.

    Un aspetto importante da esaminare risulta la questione della legittimità di nel il contesto locale. Pur il portale funziona, la conformità alle normative del paese rimane un punto un dubbio interrogativo. Secondo le vigenti normative, i casinò virtuali hanno l’obbligo di essere regolamentati da autorità di controllo tra gli altri l’ente Nazionale per le scommesse Sportive (CIS) e la Malta Regolamentazione A. Numerose Valutazioni su questo portale mettono in luce che la soluzione non risulta possedere una valida autorizzazione, il che potrebbe comportare problemi per gli utenti riguardo a affidabilità dei propri e fairness dei diversi giochi.

    In caso di gli utenti che ricerca soluzioni certificate, esistono vari ambienti regolamentati tra i quali Goplay365 Scelte, tra gli altri Betway, PartyPoker Casino, e 888 Divertimento, i quali propongono autorizzazioni affidabili e un’esperienza più chiaro. Qualora si opta prova tuttavia di sperimentare la piattaforma, diviene importante analizzare l’affidabilità di un ufficiale il sito Ufficiale e analizzare le valutazioni degli su ambienti terze.

    Alla fine di questo approfondimento, sebbene la piattaforma potrebbe apparire un’opzione vantaggiosa grazie alle sue queste Promozioni, diviene importante esaminare con precisione la questione della affidabilità e conformità normativa. I feedback Valutazioni Riguardo a questo portale diffuse virtuale non di solito chiare, quindi è sempre meglio informarsi a prima di di immettendo denaro. Dato che si un metodo ancora più trasparente, decidere per piattaforme di gioco autorizzati diviene la ancora più affidabile.

댓글 달기

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