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”의 18,741개의 댓글

  1. Αν ψάχνετε για τον απόλυτο προορισμό στον κόσμο των ψηφιακών στοιχηματικών δραστηριοτήτων, το need for slots είναι εδώ ώστε να σας χαρίσει μια ξεχωριστή εμπειρία [url=https://need-for-slots-51.web.app]need for slots[/url] . Το need for slots casino έχει καταφέρει να κερδίσει την εκτίμηση των μελών, παρέχοντας μια μεγάλη ποικιλία από τα φρουτάκια και live παιχνίδια που ικανοποιούν όλα τα γούστο. Για τους παίκτες που αναζητούν το καλύτερο casino need for slots, η εφαρμογή αυτή θεωρείται κορυφαία επιλογή, παντρεύοντας την προστασία με το παιχνίδι.

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

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

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

  2. spinogambino-biofe

    While connecting with online gaming portals, comprehending the manner in which user data is processed is vital for a safe journey. Inside spinogambino, our team value your privacy plus security regarding our players above all else. Our specialized privacy policy page, located at [url=https://spinogambino-casinobet.com/privacy-policy]spino gambino[/url] , details these extensive actions we utilize in order to protect private information also guarantee clarity in daily activities.

    As a trusted operator, spino gambino collects only the essential information demanded so as to ease profile registration, process monetary payments, and improve the overall play session. The team employ sophisticated coding technologies in order to guarantee where all private information sent between the device with our systems remains hidden. Whether you are adding money or cashing out your profits, the user could remain assured where your monetary records remain safeguarded from third-party intrusion.

    The policy plainly defines how the firm use this content we collect. This includes enhancing web performance, customizing bonus packages towards your tastes, plus keeping regulatory compliance. Our group definitely never distribute your private data to third groups, making certain that your anonymity is never compromised due to commercial benefit. By accessing this spinogambino privacy policy section, the member obtain full insight regarding your entitlements being a member, such as the method for ask for the removal alternatively change of your user info.

    Upholding confidence stays at the heart of our spino gambino philosophy. Our team maintain where members ought to remain certain during playing their preferred titles. Our commitment towards data protection proves continuous, and the company constantly improve the rules in order to handle changing web safety norms. Our staff urge every user to take a time in order to examine the privacy documentation thoroughly. Through staying informed regarding the way the details is processed, you can experience the protected plus more transparent journey on our portal. Should the user have any specific doubts concerning data safety, our help team is always available to provide clarification. Pick the platform which values the data the same well as you would additionally witness the difference that expert, safe gambling standards could bring to your tranquility regarding spirit .

  3. El juego la aplicación El Pollo en la Carretera ha despertado gran interés entre los usuarios, en particular por su sistema única y su forma de entretenimiento centrado alrededor de elecciones instantáneas y consecuencias casuales [url=https://chicken-road-demo-50.vercel.app]El Chicken Road Es Real[/url] . Muchos se cuestionan si Chicken Road es real, y si el entretenimiento reúne las expectativas. En este reporte, examinaremos si La Carrera del Riesgo no es un engaño, a partir de su operativa y en las experiencias de los usuarios.

    La Carrera del Riesgo es un juego de aleatoriedad y estrategia, donde los usuarios necesitan ejecutar elecciones en instantáneo, como acelerar, para minimizar accidentes o ganar recompensas. Aunque su diseño recuerda a plataformas de maniobras, su enfoque en el comportamiento del riesgo y la aleatoriedad lo separa. Muchos jugadores comentan que el juego no es falso en el aspecto de que se ejecuta como una herramienta dinámica, pero su carácter se basa en la visión de cada usuario.

    Algunos se preguntan si Chicken Road no es falso, relacionándolo con otros juegos parecidos. La solución no es fácil, ya que no se trata de un juego tradicional con propósitos fijos, sino una sensación basada en la presión y la suerte. Lo que muchos consideran como auténtico es la experiencia de excitación y el proceso de premio por decisiones arriesgadas, aunque no se obtienen ingresos monetarias, sino puntos simulados.

    El diálogo sobre si La Carrera del Riesgo es real se genera porque algunos participantes esperan un beneficio financiero, algo que el juego no proporciona. Sin embargo, su atractivo está en el entretenimiento de entretenimiento y en el obstáculo que presenta. Si necesitas un juego divertido, La Carrera del Riesgo puede ser una alternativa atractiva, con la condición de que no funciona como un simulador de dinero verdadero, sino una representación de elecciones en situaciones críticas.

    En conclusión, El Pollo en la Carretera existe en el concepto de que se encuentra como plataforma de simulación, pero no funciona como una estafa si se experimenta con las percepciones correctas. Su popularidad depende de la emoción que produce y en cómo analiza la capacidad de acción de los participantes. Si te preguntas si La Carrera del Riesgo existe, la solución depende de cómo lo percibas: como un simulador de suerte o como una experiencia de emoción pura.

  4. И сам себе уже не рад. Тут важно не паниковать. Круглосуточная наркологическая помощь — Специалисты приедут и разберутся на месте. Днём и ночью, без выходных. Главное, чтоб человеку помогли. Советую глянуть источник: неотложная наркологическая помощь наркология [url=https://narkolog.narkologicheskaya-pomoshh-nnovgorod-ftx.ru]https://narkolog.narkologicheskaya-pomoshh-nnovgorod-ftx.ru[/url] И про то, как вызвать нарколога для области. Иногда один звонок решает всё.

  5. spingrannycasinologin-alemi

    Inside Spingranny, the management believe that entertainment must consistently continue as a constructive along with controlled encounter for any gamer [url=https://spingrannycasinologin.net/responsible-gambling]spingranny[/url] . Exploring the sphere of virtual betting calls for a balanced approach, plus our Spin granny site strives toward promoting a safe setting where enjoyment not once comes at the cost of private well-being. The vow regarding safe betting anchors the tasks, since our crew strive to guarantee that our community stays knowledgeable plus safeguarded.

    The administration advise each and every members to regard betting in the light of a form of pastime rather than a method to produce income. To sustain this perspective, one finds it crucial to establish strong limits ahead of the user initiate. Inside Spingranny, we supply tools that permit you to regulate the conduct effectively, such as payment restraints plus time reminders. Through establishing a budget together with adhering to it, the user might relish the excitement of the activity as you maintaining the finances secure. Remember that the aim of Spin granny is to provide excellent fun, plus staying balanced serves as the ideal method to preserve that experience fun over the long term.

    Should the user someday perceive the fact that your wagering behaviors have become turning into challenging to handle, please take advantage of the support tools available within our portal. Noticing the signals of possible difficulty early is a hallmark of resilience and maturity. Whether it entails taking a short break alternatively utilizing blocking options, Spingranny endorses your decision to place importance on your internal as well as fiscal health above anything otherwise. The administration furthermore supply counsel on methods to recognize hazardous behaviors as well as present paths to expert organizations that focus on wagering compulsion aid.

    Inside Spin granny, the management keep ourselves at the greatest standards of safety together with clarity. By fostering a setting of responsibility, the staff strive to ensure the fact that all participant senses protected during the process of navigating the features. The well-being is our top focus, and the management exist to assist a lasting play habit. We ask that you play carefully, stay under the private limits, together with constantly emphasize your complete serenity over the consequence of every game.

  6. Whenever you decide to participate with an internet betting portal, understanding how your personal information is processed is essential for a secure encounter [url=https://spino-gambino-casinologin.net/privacy-policy]spino gambino[/url] . The confidentiality policy available at the spino gambino site is crafted to provide total openness about the accumulation, utilization, and safeguarding of your private data. By highlighting player safety, spinogambino guarantees that every gamer can relish their favorite activities with full peace of mind, realizing that their digital presence is handled with the highest degrees of honesty.

    The rules outlines exactly what info is gathered as you enroll for an account or engage with the platform. This usually comprises basic contact details, personal data, and technological data including IP addresses, that are utilized to enhance web functionality and tailor your playing rounds. At spino gambino, the leadership crew is committed to strictly curtailing info reach. Your data is hardly disclosed with unauthorized entities without your express approval, and it is solely applied to supply you with a customized and productive service.

    Protection protocols are a major basis of the spinogambino operational approach. The site employs sophisticated encryption protocols to safeguard your banking transactions and individual details against potential web risks. This digital dedication to secrecy reflects the company standing of spino gambino as a trustworthy site in the competitive sphere of online gaming. Furthermore, the guidelines clarifies your user rights as a visitor, including the capacity to inspect, modify, or demand the removal of your sensitive info held inside their servers.

    We encourage each visitors to regularly examine the main privacy statement to stay current regarding any changes to our processing systems. By following worldwide data security laws, spinogambino shows its loyalty to creating a safe platform. If you at any time possess questions regarding the way your confidentiality is maintained, the customer staff at spino gambino is constantly prepared to support you. Remaining informed is the best way to enjoy a safe and rewarding internet playing journey. [url=https://www.challenger4g.com/forum/threads/very-insightful-thoughts.36294/page-341#post-434822]Grasping the Data Guidelines at the Spino Gambino Portal for a Secure Gaming Journey[/url] [url=http://192.249.121.131/%7Erosedoll/forum1/index.php?topic=2095.new#new]Grasping the Privacy Statement at Spinogambino for a Protected Betting Journey[/url] 7_3e45b

  7. Knowing the management of your data is essential when you engage with online gaming websites [url=https://spinmama-slots.com/cookie-policy]spin mama[/url] . At the spin mama platform, we value transparency and user trust above all else. Our specific cookie policy serves as a clear guide on how we utilize cookies to enhance your browsing experience. When you visit the spin mama site, cookies are saved on your device to ensure that our platform works properly, remembers your preferences, and offers a more tailored gaming environment.

    These files help us analyze traffic patterns and metrics, enabling our technical team to optimize the platform for better speed and smoother navigation. By engaging with spinmama, you consent to our utilization of cookies in compliance with this policy. We differentiate between essential cookies, which are crucial for basic site features like secure logins, and performance or functional cookies that track your behavior to improve future sessions. We also collaborate with external service providers who may store cookies on your device to help with promotions and data reporting.

    If you choose not to have these files saved on your computer, you retain complete authority over your privacy settings. You can adjust your settings at any time to block or delete existing cookies. However, please be aware that disabling these files may affect the performance of the spinmama website, potentially restricting your entry to certain functions or customized gaming rewards. We strive to find a middle ground between providing a seamless user experience and safeguarding your personal data.

    We encourage all users to check our cookie policy regularly, as we may modify our practices to comply with changing digital regulations and platform upgrades. By continuing to use our site, you consent to our data gathering practices as outlined in our service agreements. Your privacy is our main focus, and we are dedicated to maintaining a secure and enjoyable environment for every user. Should you have any specific questions regarding our data policies, our support staff is ready to provide additional clarification.

  8. chickenroad-Addede

    La clarte constitue un principe majeur pour nos utilisateurs, voila pourquoi nous pretons un interet primordial au suivi de vos informations privees au sein de notre interface [url=https://chickenroad-gamereview.fr/politique-de-cookies]Chicken Road[/url] . Lors de votre navigation ce site web, vous nous portez votre confiance, et nous tenons a vous notifier clairement sur le procede dont nous manipulons les methodes de pistage grace a notre onglet dediee a la politique de cookies. Ces elements informatiques demeurent cruciaux pour assurer l’operabilite de notre portail, ChickenRoad, en vous assurant une navigation optimisee et unique.

    Effectivement, les temoins que nous integrons dans nos services cumulent plusieurs utilites majeures. En premier lieu, ils offrent la possibilite de memoriser vos parametres de visite, evitant ainsi de redefinir vos choix a chaque nouvelle visite sur le site. De plus, ces composants nous assistent a etudier la frequentation totale de notre interface. En comprenant mieux quels dossiers, bilans ou retours de titres seduisent davantage notre audience, nous parvenons de perfectionner continuellement la valeur de nos ecrits. Cette analyse statistique est realisee sans identification pour assurer la sauvegarde complete de votre intimite.

    Nous employons egalement des traceurs externes, specifiquement pour l’administration des reclames et le partage sur les reseaux sociaux. Ces fonctionnalites donnent la possibilite a ce site de continuer a proposer gratuitement des informations de valeur et des tests pousses sur le monde des jeux. Notez bien que vous possedez une gestion totale sur ces elements. Des que vous le souhaitez, grace aux configurations de votre outil de consultation, il est possible de bloquer, de reduire ou d’effacer les cookies deposes par ChickenRoad. Neanmoins, sachez que le blocage systematique de plusieurs elements pourrait nuire a certaines fonctionnalites interactives de cette plateforme. En maintenant votre consultation sur notre interface, vous approuvez la mise en ?uvre de ces cookies selon notre charte presente. Nous sommes a votre entiere disposition pour toute question supplementaire a propos de la defense de vos donnees sur cet espace.

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

  10. Αν ψάχνετε τη εντυπωσιακή διαδρομή μέσα στον χώρο του online gaming, το need for slots συνιστά έναν από τους πιο αρκετά δημοφιλείς σταθμούς σχετικά με κάποιους παίκτες στην Ελλάδα [url=https://need-for-slots-52.onrender.com]need for slots[/url] . Το need for slots casino διαθέτει κερδίσει κάθε προτίμηση του πλήθους προσφέροντας τη πλούσια γκάμα μέσα από εφαρμογές τα οποία ικανοποιούν όλο το γούστο, ξεκινώντας από παλιά slots μέχρι σύγχρονους τίτλους με εντυπωσιακά εφέ. Όσοι επιλέγουν το casino need for slots απολαμβάνουν τη περιβάλλον που παραμένει σχεδιασμένη για ευκολία στη χρήση, προσφέροντας ασφάλεια μαζί με αμεσότητα στις μεταφορές τους αυτές.

    Διαβάζοντας πολλές need for slots κριτικες, φαίνεται άμεσα σαφές ότι αυτή η πλατφόρμα ξεχωρίζει ως προς την ποιότητα των υπηρεσιών της ίδιας. Το needforslots έχει ήδη δώσει βάρος στην ουσιαστική κατασκευή του χώρου όπου το στοίχημα γίνεται απόλαυση, ανεξάρτητα με το εάν είσαστε επαγγελματίας παίκτης ή πρωτάρης. Το needforslots casino δίνει έμφαση στη μέγιστη πληθώρα των διαθέσιμων λογισμικών, συνεργάζοντας με τους σπουδαιότερους κατασκευαστές στον χώρο, ώστε για να εγγυάται αυτό το αξιόπιστο και έγκυρο παιχνίδι.

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

    Εφόσον προτίθεστε να δοκιμάσετε κάθε τύχη σας στο need for slots gr, σίγουρα θα διαπιστώσετε πως η διαδρομή εγγραφής είναι ταχεία και απλή. Η εφαρμογή παρουσιάζεται έτοιμη για χρήση από PCs, αλλά επίσης μέσω φορητές phones, δίνοντάς σας να χαίρεστε όλα τα αγαπημένα δικα σας slots από οποιοδήποτε μέρος. Κλείνοντας, το need for slots αποτελεί τη ολοκληρωμένη πρόταση στον τομέα των στοιχημάτων παιχνιδιών. Με επαγγελματική υποστήριξη μαζί με την ευρεία συλλογή εναλλακτικών, το need for slots casino είναι η καλύτερη επιλογή προς εκείνους που θέλουν για να βιώσουν τη μοναδική στιγμή στοιχηματισμού σήμερα. Εξερευνήστε τις προοπτικές που σας παρέχει καθώς και μάθετε για ποιο λόγο λογίζεται σπουδαίος σταθμός προς τους φίλους του συγκεκριμένου είδους στην Ελλάδα.

댓글 달기

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