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

  1. needforslots-Slugh

    Siempre que pretendes determinada experiencia de entretenimiento emocionante en el universo del apuestan digital, es instante de conocer la plataforma Need for Slots [url=https://needforslots-casino-17.onrender.com]needforslots[/url] . Este espacio se ha situado agilmente como cierta opcion relevante para los seguidores del area, proporcionando cierta extensa diversidad de titulos pensados para atrapar la vista de todo clase de jugadores. Al analizar Need for Slots casino, veras de inmediato cierta interfaz sencilla y activa, ideada para agilizar el ingreso a ciertos juegos mas populares.

    Gran cantidad de usuarios pretenden alternativas protegidas y alegres, y en Need for Slots online encontraras el catalogo amplio que no permite apatico a alguien. La propuesta de Needforslots espana se dirige en ofrecer prestigio, diversidad visual y la dinamica constante. Ya bien que elijas las tragaperras antiguas o las posibilidades mas actuales con graficos novedosos, el sitio dispone de una distinta para usted. La valoracion de Needforslots va creciendo gracias a su compromiso con la comodidad del jugador, estableciendose como un ejemplo tras el marca de casino Need for Slots.

    Si llevas a cabo una Needforslots resena, percibiras que los factores buenos del portal suman la optimizacion para dispositivos telefonos y una seleccion curada de juegos. Muchos jugadores llegan buscando Need for slot, no obstante se quedan por la aventura total que brinda casino Needforslots. La flexibilidad de Needforslots online facilita que cada ronda resulte diferente, manteniendo siempre que el animo elevado. Para aquellos que viven en el ambito nacional, Need for slots espana representa cierta eleccion solida y seria en el sector altamente competitivo.

    En consecuencia, si la pasion es el azar y requieres alguna plataforma que junte emocion con facilidad de uso, Needforslot es la alternativa que se encontraba buscando. La web Need for slots casino indica que la perfeccion logra caminar de la compania con la diversion. Nunca pierdas la posibilidad de involucrarte en el listado de Need for slots y descubrir por que bastantes apostadores juzgan a ese espacio como la espacio de preferencia para experimentar de la emocion de los mejores entretenimientos.

  2. spinmama-Agefrex

    Learning about the cookie rules at spinmama is an crucial step for any player who wants to experience a clear and protected gaming experience [url=https://spinmama-slots.org/cookie-policy]spinmama[/url] . When you access the spinmama site, we employ cookies to enhance your journey, ensuring that the platform operates smoothly while offering personalized content tailored to your interests. Our cookie terms is designed to detail precisely how these tiny text files work and what information we collect to uphold high levels of support.

    The key reason we use cookies on spin mama is to improve site speed and improve user browsing. By remembering your configurations and login information, these files enable you to move among various games and game areas without having to re-enter your details again and again. Moreover, cookies help us examine traffic trends, which is essential for our team to see which titles are popular and how we can improve the overall interface for a better gaming atmosphere. We value player privacy and strive to ensure that all information gathered is managed in complete accordance with market standards.

    On the spin mama website, you will encounter different types of cookies, such as temporary cookies that expire once you close your window and long-term cookies that remain for a longer duration to remember your settings. We also employ external cookies from trusted partners to collect statistical data that helps in enhancing our bonus offerings and technical systems. Transparency is at the core of our activities; consequently, we invite all our players to review our dedicated terms page frequently.

    If you prefer not to have cookies saved on your device, you have the complete right to change your browser preferences to block or remove them at any time. Nevertheless, please be advised that turning off these cookies might affect the performance of specific features on the website. By staying to use spin mama, you agree to our use of cookies as described in our detailed guidelines. We are committed to offering a fair and enjoyable environment for all our community members.

  3. Mastering the standards of all digital gambling site serves as a pivotal step for every player [url=https://spino-gambino-casinoreview.net/terms-and-conditions]spino gambino[/url] . Upon accessing spino gambino, users are advisedly suggested to acquaint users with the official policy documents to ensure a seamless and enjoyable experience. These instructions serve as the bedrock of the relationship connecting the provider and the patron, outlining obligations, user administration systems, and defense steps.

    The terms and conditions on the spino gambino website details vital areas like account demands, identity validation, and sensible betting standards. By entering the site, players consent to obey these rules, that are built to maintain a fair and clear space for each person. We must note that those terms likewise explain official constraints concerning regional entry and the limitations of accountability that govern the portal.

    One of the most essential sections for members regards reward rules and remittance procedures. When gamers play slots at spino gambino, knowing how rollover demands work and the way to attain reward promos stays crucial to managing your money efficiently. The text clarifies the technical details underlying payments, cashout speed, and the security procedures essential to maintain your membership shielded. If members at any time have inquiries about account freezing, confidentiality policies, or dispute settlement, this section acts as your key resource index.

    Being informed on all regulations helps avoid conflicts and secures your benefits as a member of the gaming circle. Prior to you begin playing the games or placing bets, dedicate a couple of minutes to peruse via the documentation provided on the site. Ensuring up to date about any modifications to those rules ensures that gamers remain always cognizant of your rights and tasks. Whether the reader are a first-time guest or a regular player, the spino gambino terms and conditions file is an crucial asset for a guarded and knowledgeable betting path. Prioritizing such facts serves as the indication of a sensible player who appreciates the combination of entertainment and honesty in their digital activities. [url=https://www.2shane.com/index.php?topic=12939.new#new]Learning the standards of every single online casino platform represents a vital stage for all player: The Detailed Guide to Spino Gambino’s Rules and Regulations.[/url] [url=https://aljasad.com/showthread.php?tid=183&pid=2986#pid2986]Mastering the regulations of any web-based gambling site serves as a critical phase for every gamer: Our Detailed Guide to Spino Gambino’s Service Agreements.[/url] 98001ef

  4. В этом исследовании рассмотрены методы лечения зависимостей и их эффективность. Мы проанализируем различные подходы, используемые в реабилитационных центрах, и представим данные о результативности программ. Читатели получат надежные и научно обоснованные сведения о данной проблеме.
    Читать дальше – [url=https://stop-alko.info/sovmestimost/vivitrol-chto-eto-za-preparat-i-kak-on-pomogaet-pri-zavisimosti.html]наркология клиника[/url]

  5. chickenroad-loclory

    Stai esplorando di una tecnica per testare le logiche di uno dei svaghi piu coinvolgenti del panorama attuale? Il domain chickenroad-gamereview.it propone la soluzione perfetta per ciascuno voglia comprendere le meccaniche di gioco senza correre rischi [url=https://chickenroad-gamereview.it/demo]demo chickenroad[/url] . Entrando la sezione riservata al demo chickenroad, avrai la chance di tuffarti in un’esperienza ludica moderna e fluida. Tale versione di prova e perfetta tanto per i principianti che intendono capire le norme, cosi come per i giocatori veterani che vogliono studiare tattiche sofisticate in un contesto sicuro.

    Adoperare la funzione demo chicken road e immediato e non esige alcun onere economico. Avrai modo di giocare con il chicken road free play direttamente dal tuo browser, beneficiando di una grafica accattivante e di un sistema di gioco semplice. La versione di prova ti permette di esplorare ogni elemento del software, testando le diverse funzionalita offerte e capendo perche questo software vada attrando l’interesse di moltissimi fan. Molti player scelgono di cominciare esattamente in questo modo, trovando il demo chicken road per prendere confidenza con il ritmo rapido e le prove che il gioco propone.

    Qualora ti stai domandando in che modo avviare a giocare, ti occorre comprendere che svagarsi e un processo rapido. La possibilita di usufruire di chicken road gratis e un beneficio notevole per tutti coloro che intende passare il proprio momento di relax dedicato del puro svago digitale. Nel momento in cui deciderai di transitare alla fase di gioco vero, tieni presente che la esperienza ottenuta tramite il gioco ti offrira una marcia in piu. Comincia subito la tua sfida su chickenroad-gamereview.it: tuffati nel cuore dell’azione, gioca chicken road e esplora tutte le funzioni di questo titolo coinvolgente. Per merito alla sua interfaccia migliorata, possiederai sempre a portata un modo sicuro e interessante per metterti alla prova, giocando senza limiti e senza alcuna ansia aggiuntiva. Non farti sfuggire l’chance di testare il gioco in assoluta tranquillita e organizzati a sperimentare un’sessione di svago davvero irripetibile.

  6. chicken-Gligoum

    Aves Calle fue un juego viral que ha generado enorme atención entre los internautas de la web, especialmente en la península ibérica, donde servidores como ServidorZ ofrecieron adaptaciones del entorno [url=https://chicken-road-es-34.onrender.com]El Chicken Road Es Real[/url] .

    Si buscas información sobre si *Chicken Road Es Real* o únicamente un juego, aquí te mostramos todo lo que debes descubrir para no caer en trampas o malentendidos.

    El diversión *¿Existe realmente Chicken Road?* constituye una reinterpretación del renombrado *Chicken Run*, pero con un notablemente participativo. En varios casos, ofrece partes de apuestas o premios. No obstante, debe aclararse que no corresponde de un juego de azar aprobado con ganancias tangibles, por el contrario de una experiencia de ocio centrada la azar. Distintos usuarios dudan: *”El Juego De Chicken Road Es Real O Falso”*, y la solución es que se basa en de la edición que estés accediendo. Ciertas páginas, como dicha mencionas, pueden demostraciones o ensayos de idea, no servicios certificados con recompensas efectivos.

    Si buscas *”¿Chicken Road es seguro o engañoso?”*, es necesario demostrar vigilancia. Aunque el entretenimiento en sí no es una estafa tradicional, determinadas páginas incluir anuncios falsos o procurar manipular a los distintos visitantes con falsas garantías de recompensas. Previo a acceder, verifica si ese juego se percibe como seguro y si cumple con las varias leyes regionales. Varios jugadores igualmente se preguntan la interrogación *”El Chicken Road Es Real?”*, y, aunque ese concepto es interesante, no garantiza beneficios efectivos.

    Otro aspecto relevante radica en comprender si *”¿Chicken Road tiene fundamento?”* alude a un entorno de suerte con beneficios reales. En la distintos ejemplos, en particular en variantes como la alojada en WebY, ese entretenimiento se presenta como antes bien una oportunidad de ocio con recompensas sin valor real o puntos no físicos. Si necesitas algo notablemente regulado, es mejor decidirse por por servicios legalizados.

    En punto final, aunque *”¿Es real el juego de Chicken Road?”* puede entretenido, no es una manera verificada de ganar dinero. Si te gustaría probarlolo, verifica que el servicio se considere fiable y no caigas en fraudes. La punto principal reside en aprovechar el entretenimiento sin depender de recompensas tangibles, ya que *”¿Chicken Road existe o es ficción?”* se basa mucho del escenario en el que lo accedas.

  7. spingrannyloginreview-occath

    Choosing the right web-based gaming portal might prove a challenging undertaking for gamers who are looking for a trustworthy and exciting destination [url=https://spingrannyloginreview.com]online casino[/url] . With so many variations accessible on the net, discovering a domain that delivers a balanced mix of security, selection, and interface quality is essential. This is exactly when the portal spingrannyloginreview.com proves to be an essential guide for users everywhere. If you are hunting for a complete online casino review, this domain supplies the specific information necessary to reach an informed verdict before adding your earned money.

    The analysts operating spin granny analyze all facet of the play session to ensure that gamers get reach to the best capabilities in the industry. Regardless if you are a devotee of classic slot machines or you prefer the intense environment of a live casino, the assessments located on this site detail anything you require to know. The platform emphasizes key areas including game selection, banking methods, customer availability, and reward layouts. By studying these reports, you can easily identify which providers offer the most attractive welcome bonuses and which companies feature the most just and open casino games.

    One of the notable perks of employing spingrannyloginreview.com is its dedication to honesty. In the domain of online gambling, protection is the number one concern. The site breaks down the authorization and safety standards of various companies, guiding you evade dodgy platforms. Moreover, the portal stays users current on the freshest fads, letting you to locate recent releases and popular selections that are currently dominating the industry.

    If you are attempting to upgrade your gambling session, spin granny delivers the logical framework needed to handle the busy market with total confidence. In place of random guessing, you can rely on expert direction to discover a web casino that aligns with your specific betting tastes. Explore the deep-dive assessment at this site today to confirm your future visit is not just entertaining but also conducted on a site that values customer satisfaction and security.

  8. spinogambinocasino-Treava

    In Spinogambino, our team highlight the protection and safeguarding of our players above all else [url=https://spinogambinocasino-bonus.net/privacy-policy]spinogambino[/url] . Understanding in which your individual details is managed represents a fundamental aspect of the gaming session, for this reason we have created a clear privacy policy. While accessing the spino gambino website, you are giving us with critical information, and we take that obligation thoughtfully. Our dedication to securing your virtual presence guarantees that you can zero in on using our wide selection of gaming options ignoring any anxiety about the soundness of your secret facts.

    The privacy policy outlined on our primary webpage explains exactly how we collect, process, and store customer data. Regardless of whether you are registering for an membership or claiming a special offer, Spinogambino uses industry-standard security systems to hold your content protected from unauthorized entry. We collect merely the necessary details mandatory to supply you with a fluid and personalized experience. This includes key account data and statistical metrics that assist us improve the general functionality of the spino gambino interface.

    Moreover, we are devoted to preserving absolute secrecy. We never trade or swap your private data to third parties for marketing goals barring your direct permission. Your data is employed solely to enhance your security, support protected transfers, and ensure adherence with regulatory standards inside the casino industry. By keeping these rigorous protections, we build a dependable space in which our users are at ease and safe.

    If you ever have questions concerning the method your information is overseen, our privacy policy offers concise instructions on the best way to reach our service staff. We encourage all users to examine these conditions often to keep updated about any updates to our data protection practices. At Spinogambino, we hold that openness is the key to establishing long-term trust. Your confidentiality is our goal, and we continue to invest in advanced technology to ensure that your time invested with spino gambino remains secure, confidential, and enjoyable daily .

  9. needforslots-Mineds

    Αναζητάτε τον ιδανικό χώρο για να διασκεδάσετε τα προτιμώμενα σας παιχνίδια τύχης στο διαδίκτυο; Το need for slots παρουσιάζεται άμεσα μια σε μια από τις πιο συζητημένες λύσεις για τους φίλους του online gaming [url=https://needforslots-casino-18.pages.dev]need for slots casino[/url] . Έχοντας μια πλούσια λίστα από παιχνίδια και παιχνίδια ζωντανού καζίνο, το need for slots casino προσφέρει μια άρτια εμπειρία χαλάρωσης που διαφέρει στην τοπική βιομηχανία.

    Εάν μελετήσετε τις επιθυμίες σας για ασφάλεια και επιλογές, το casino need for slots διαθέτει τα απαραίτητα απαραίτητα πλεονεκτήματα για να σας κρατήσει ενθουσιασμένους. Οι επισκέπτες που ανακαλύπτουν το needforslots βλέπουν αμέσως τη εύχρηστη προς τον πελάτη εφαρμογή του, η οποία θεωρείται καθολικά αναβαθμισμένη τόσο για desktops όσο και για smartphones. Παράλληλα, το needforslots casino έχει κερδίσει την πίστη του κόσμου ελέω στην φερεγγυότητα των μεταφορών και την φροντίδα που παρέχει στους παίκτες.

    Αναφορικά με τους παίκτες που σκέφτονται συγκεκριμένα για το need for slots casino greece, η επιχείρηση παρέχει κατάλληλες διευκολύνσεις που ανταποκρίνονται στις προδιαγραφές του εγχώριου κοινού. Πριν επιχειρήσετε το στοίχημα σας, είναι σταθερά χρήσιμο να ψάξετε τις need for slots κριτικες, όπου θα δείτε διεξοδικές αξιολογήσεις για την αξία των πλατφορμών, τις bonus και τα προνόμια. Είναι προφανές ότι το need for slots καζίνο έχει ξοδέψει αρκετά στη κατασκευή ενός χώρου που προωθεί το υπεύθυνο gaming.

    Προτιμώντας το καζίνο need for slots, έχετε πρόσβαση σε κορυφαίους slots από αναγνωρισμένους αναγνωρισμένους providers, εξασφαλίζοντας τίμια τυχαία νούμερα και σημαντικά RTP. Η καθημερινότητα που παρέχει το need for slots gr είναι σχεδιασμένη ώστε να αγκαλιάζει είτε τους νέους αλλά και τους προχωρημένους παίχτες που αναζητούν την ένταση των μεγάλων βραβείων. Πέρα από τις επιλογές σας, το εν λόγω καζίνο υπόσχεται λεπτά δράσης και ψυχαγωγίας σε κάθε κίνηση. Δοκιμάστε σήμερα τις ικανότητες που σας παρέχει και ανακαλύψτε γιατί πιστεύεται μια ανάμεσα στις καλύτερες λύσεις στον χώρο των online τυχερών παιχνιδιών. Η αρτιότητα και η πολυμορφία των titles αποτελούν την επιβεβαίωση για μια ιδιαίτερη εμπειρία που θα σας συναρπάσει από την αρχική φορά.

댓글 달기

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