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”의 79,810개의 댓글

  1. When you engage with the digital world of online gaming, knowing how your personal data is handled is of the utmost importance [url=https://needfor-slots-appbonus.com/privacy-policy]needforslots[/url] . At needfor-slots-appbonus.com, we value the security of your private information above all else. Our data protection guide is created to be transparent, ensuring that every user who enjoys the excitement of need for slots has full peace of mind while browsing our site. When you decide to game at needforslots, you are relying on us with your data, and we take that responsibility seriously.

    Our policy details precisely what data we gather, how we utilize it, and the security measures we have in place to keep your details safe. We collect only the data required to offer a smooth play session, including web metrics and account preferences. This helps us improve the performance of needforslots, making sure that your favorite games load quickly and run efficiently. We never sell your private data to external entities, as your privacy is a pillar of our brand integrity.

    We also use advanced security standards to protect your transactions and user accounts. Regardless of whether you are exploring the newest games or maximizing your gaming potential, need for slots stays dedicated to a safe space. We encourage all gamers to read our complete data terms periodically to keep updated about our information procedures and any updates we might implement to enhance your protection. By choosing our services, you confirm that we are dedicated to upholding the highest standards of online security. Our aim is to build a network where fun and security go hand in hand. If you ever have questions regarding your privacy rights or how we manage your profile details, our customer service is available to help. We appreciate you for choosing us for your entertainment needs; we are proud to provide a safe destination where you can enjoy your passion for slots without worry.

  2. spinogambinocasino-atowly

    Se procura uma maneira util e rapida de aproveitar os seus jogos de casino de eleicao a partir de qualquer lugar, a solucao ideal e usar a plataforma dedicada [url=https://spinogambinocasino.com.pt/app]spino gambino app download[/url] . O aplicativo spinogambino oferece aos apostadores em Portugal uma vivencia melhorada, permitindo entrada veloz a muitas maquinas de jogo, jogos de casino classicos e bonus especiais diretamente na seu telemovel. Com uma navegacao simples e visual atrativo, o spino gambino app garante que a utilizacao seja suave, sem interrupcoes e com tempos de carregamento reduzidos, ideal para quem nao quer perder nenhuma chance de vitoria.

    Para iniciar a diversao desta aventura, o processo de spinogambino app download e bastante facil e rapido. Os utilizadores podem entrar ao site oficial para encontrar o link seguro para o baixar a app spino gambino, garantindo sempre a versao mais recente e estavel da ferramenta. Se utiliza um dispositivo Android, o ficheiro spinogambino apk permite uma instalacao rapida, sendo preciso apenas autorizar a instalacao de fontes desconhecidas nas definicoes do seu smartphone. O processo e identico ao procurar pelo ficheiro apk spino gambino, que assegura o pleno funcionamento de todas as funcionalidades da perfil, desde carregamentos ate levantamentos.

    A versatilidade da spinogambino casino app sobressai pela sua seguranca e adaptacao com varios dispositivos moveis. Ao optar pelo spino gambino download, obtem a conveniencia de levar o seu casino de eleicao sempre consigo. A resolucao visual dos jogos permanece alta, oferecendo momentos de entretenimento de alta qualidade. Varios utilizadores ja mudaram para a spinogambinos app devido a agilidade de acesso e as notificacoes personalizadas sobre bonus e torneios. Aproveite agora e assegure ja o seu spino gambinos apk para transformar a sua maneira de apostar. Seja para jogadas imediatas ou sessoes mais longas, a utilizacao da aplicacao oficial eleva o nivel da sua experiencia no mundo dos jogos online em Portugal, proporcionando um espaco protegido, estavel e perfeitamente ajustado as necessidades do apostador atual.

  3. gtbet170-Abraky

    GT Casino constituye un entorno virtual y casino digital que ha alcanzado considerable aceptación entre los apostadores nacionales, especialmente por su accesibilidad y diseño elegantemente organizado [url=https://gt-bet-170.onrender.com]Gt Bet[/url] .

    En este estudio, analizamos sus aspectos destacadas, su legalidad en España y las experiencias de los clientes para orientarte a determinar si es una opción fiable para usted.

    GT Apuestas, también conocido como GTbet, proporciona una amplia variedad de diversiones que van desde ruletas y blackjack y llegando a slots y eventos sportivos. Su interfaz se diseña con amigable lo que facilita la exploración aunque novatos de los juegos.

    No obstante, al representar un entorno bastante poco establecido, es importante evaluar su reputación y transparencia previo a realizar un pago con ella.

    Uno de los elementos clave para los apostadores en el mercado español resulta su regulación de GT Bet. En el escenario español, exclusivamente se acepta los casinos y casas de apuestas bajo regulación de la Dirección General de Ordenación del Juego (DGOJ). GT Apuestas no aparece en la lista oficial de plataformas legalmente aprobados, esto genera cuestionamientos sobre su validez y seguridad.

    Aunque algunos usuarios afirman experimentar situaciones positivas, es fundamental considerar los riesgos implicados a operadores fuera del marco legal, como la falta la ausencia de garantías o la eventual alteración de los juegos.

    En cuanto a las reseñas de los usuarios, GT Apuestas obtiene reseñas variadas. Algunos entusiastas destacan su amplia oferta de juegos y la velocidad en los pagos, en cambio otros denuncian dificultades al momento de sacar fondos o la ausencia de atención al cliente. Es recomendable verificar plataformas como webs de reseñas previo a crear una cuenta, ya que las situaciones resultan variar de manera considerable.

    Si buscas alternativas más seguras, aconsejamos evaluar plataformas autorizados en los que tus depósitos estarán protegidos y te permitirá de una experiencia más transparente. En conclusión, GT Bet constituye una opción entretenida, pero su ausencia de licencia en España lo convierte una opción con posibles complicaciones. Siempre prioriza la seguridad y optar por plataformas legalmente aprobados para minimizar riesgos jurídicos o financieros.

    Para quienes aún así anhelen probar GT Bet, conviene empezar realizando pagos mínimos y revisar las normativas antes de asumir responsabilidades. La fiabilidad de un operador depende en gran medida en su transparencia y adherencia a las reglas, elementos que, en el caso de GT Apuestas, no se aseguran de manera fidedigna.

  4. spinmamareviewbonus-tagrEe

    When seeking for a novel and exciting gaming destination, many players are turning their focus onto the Spinmama casino platform [url=https://spinmamareviewbonus.org]spin mama[/url] . This thorough Spinmama review intends to shed light on what makes this venue a prime selection for those who enjoy high-quality slots together with live dealer games. When browsing the Spinmama official site, you will quickly notice a simple design built to ensure smooth browsing for both newcomers and seasoned veterans. Reaching your favorite titles is simple, assuming you utilize the valid Spinmama login details to reach your custom user account.

    If you are new to the sphere of online gambling, the Spinmama online journey presents a protected plus trusted atmosphere. Be it termed casino Spinmama or choose the abbreviated title Mama Spin, the webpage consistently delivers an extensive portfolio of titles from premier development studios. Many users look up the Spin mama casino login procedure specifically because they are eager to claim the rewarding perks frequently showcased within the portal. A complete Spin mama review proves that the offers are definitely not merely advertising talk; they yield genuine worth to individuals who regularly play at that casino Spin mama.

    Visiting the Spin mama login gateway serves as the primary stage toward unlocking high-end fun. After reaching the main hall, you will find that the Mama Spin casino platform is tailored for smartphone gaming, allowing you to take your gaming on the go with no loss of quality. The site maintains a strict level of safety, making sure that all Spinmama login attempt keeps guarded plus shielded. By deciding to wager at that reputable establishment, you are picking a dependable betting associate that prioritizes user satisfaction alongside equitable standards. Regardless of if you are rotating the slots of a traditional machine or engaging in a premium dealer table, this company offers all requirements for a elite online journey. Visit the domain today to discover why so many players deem it their go-to destination for gambling excitement.

  5. Лечение запоя на дому выбирают, когда требуется выездная помощь. Нарколог приезжает домой, врач проводит оценку, а лечение выполняется в рамках доступной услуги. Вывод на дому позволяет организовать помощь без посещения клиники, но формат дома и формат клиники различаются. Наркологическая помощь на дому может включать капельницу, терапию и дальнейшие рекомендации.
    Дополнительная информация – [url=https://vyvod-iz-zapoya-krasnoyarsk70.ru/]вывод из запоя вызов Красноярск[/url]

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

  7. needfor-Fensund

    At needfor-slots-appbonus.com, we believe that the excitement of gaming should always be balanced with a dedication to security [url=https://needfor-slots-appbonus.com/responsible-gambling]need for slots[/url] . Exploring the world of online gaming demands a solid grasp of the potential dangers, which is why we stress the importance of safe play for every user. Our platform, referred to by fans as need for slots, is dedicated to providing an atmosphere where entertainment remains the main objective while guaranteeing that users maintain control over their habits.

    The experience of gaming at needforslots should be enjoyable and relaxing. However, we recognize that for some individuals, gaming can turn into an issue. To address this, we have created comprehensive resources designed for encouraging healthy play. We encourage all users of our community to set personal limits before they start. This includes establishing a strict budget for your gaming sessions and deciding how much time you are willing to devote on the site. By treating your time at need for slots as a form of leisure instead of a way to generate income, you safeguard your mental and monetary health.

    If you ever feel that your behaviors are moving past enjoyment toward something more problematic, please take advantage of our restrictive features and support information. At needforslots, we offer straightforward advice on how to identify the early warning signs of gambling issues. Recognizing these signs is the initial phase to reclaiming balance. Whether it is taking a scheduled break or getting external professional advice, put your health above the activity.

    Our dedication to safe gaming is woven through every facet of our platform. We want every player to have a good time, but we also want you to exit our platform feeling secure and educated. Remember that need for slots is here to offer premium fun, provided it is approached with mindfulness and balance. By staying informed and using the resources available on our site, you ensure that your gaming journey stays a safe and rewarding hobby. Play with caution and concentrate on the enjoyment of the game.

  8. GT Bet es una web de entretenimiento en línea que ha logrado relevancia entre los apostadores españoles, especialmente por su facilidad de acceso [url=https://gt-bet-171.vercel.app]Gt Bet[/url] .

    En este artículo, exploramos qué es GT Casino, sus características destacados y si constituye una alternativa confiable para entretenerse en España.

    GT Bet, también denominado como GTbet, es un portal de entretenimiento y deportes que existe desde hace algunos períodos, aunque su disponibilidad en España puede despertar preocupaciones sobre su legalidad y protección.

    A contrario de casinos autorizados por organismos como la DGOJ (Oficina de Ordenación del Entretenimiento), GT Apuestas no cuenta con algún entidad español, lo que genera cuestionamientos sobre su transparencia y adherencia a las normas.

    En las opiniones sobre GT Apuestas, muchos jugadores enfatizan su plataforma intuitiva y la amplia oferta de juegos, que abarcan slots, ruleta clásica, juegos de cartas y deportes. No obstante, las comentarios también advierten que, al falta de supervisado en España, podría incumplir los protocolos de bienestar al usuario que proporcionan las webs legales. Esto abarca aspectos como la responsabilidad en el entretenimiento, la protección de los datos personales y la claridad en los retiros.

    Si necesitas un casino en internet protegido y legal en España, es esencial favorecer alternativas supervisadas por la DGOJ o la UKGC. GT Apuestas, aunque puede representar una solución para algunos entusiastas, no asegura la misma seguridad que un sitio autorizado. Antes de crear una cuenta, lee las comentarios de otros jugadores y analiza con webs con autorización válida para minimizar problemas innecesarios.

    En conclusión, GT Bet puede constituir una opción para quienes buscan entretenimiento en el juego, pero su ausencia de supervisión en el país lo hace en una alternativa poco adecuada para quienes valoran la seguridad y la validez. Totalmente es mejor entretenerse en sitios con autorización oficial y reseñas confiables para vivir una aventura libre de dudas.

  9. spinmamaspielcasino-isomia

    Falls Sie auf der Suche nach einer hervorragenden Plattform fur Glucksspiele sind, sollten Sie unbedingt ein Auge auf das Spinmama Casino riskieren [url=https://spinmamaspielcasino.co.at]spinmama casino[/url] . Als routinierte Spieler auf dem osterreichischen Markt verstehen wir, dass Zuverlassigkeit und Game-Portfolio die wichtigsten Kriterien fur eine gelungene Erfahrung sind. Auf der Spinmama official site entdecken Besucher eine gro?artige Vielfalt an Slots und Live-Dealer-Spielen, die exklusiv fur den Geschmack der Spieler in Spinmama Osterreich optimiert wurden. Wer nach einer ausfuhrlichen Spinmama Bewertung sucht, wird schnell feststellen, dass dieses Portal durch eine benutzerfreundliche Oberflache und fixe Auszahlungsmodalitaten besticht.

    Viele Nutzer ergrunden zu Recht: Ist Spinmama serios? Unsere grundlichen Spinmama Erfahrungen demonstrieren, dass der Herausgeber viel Fokus auf Regulierung und transparente Spielbedingungen richtet. Auch unter dem Namen Spin Mama gelaufig, hat sich die Plattform in der Szene einen Ruf gemacht. Wenn Sie Spin Mama Erfahrungen vergleichen, begeistern primar die lukrativen Bonusangebote ins Visier, die sowohl Anfanger als auch treue Bestandskunden fesseln. Die Spin Mama Bewertung fallt in Branchenvergleichen konsequent positiv aus, da das Portfolio genau auf die Wunsche der Zielgruppe in Spin Mama Osterreich abgestimmt ist.

    Das Spinmama Casino enthalt zudem einen tollen Kundensupport, der bei Problemen schnell und fachkundig beisteht. Egal ob Sie Spinmama casino Erfahrungen gewinnen oder die Spin Mama casino Erfahrungen auf mobilen Endgeraten ausprobieren mochten, die Plattform lauft stabil und garantiert ein flussiges Spielerlebnis. Kurz gesagt lasst sich sagen, dass Spinmama AT eine der top Anlaufstellen fur leidenschaftliche Glucksspiel-Fans ist, die Fokus auf Seriositat und Vielfalt legen. Auch das oft gesuchte Mama Spin Casino uberzeugt durch eine hervorragende Auswahl an Titeln von namhaften Entwicklern. Wenn Sie also nach einem vertrauenswurdigen Ort fur Ihr Hobby suchen, ist die offizielle Webseite sicherlich einen Abstecher wert. Erfahren Sie die Welt von Spin Mama und gonnen Sie sich von den Auszahlungsquoten und der atmospharischen Atmosphare mitrei?en. Ihre Reise zu einem erstklassigen Casino-Erlebnis startet exakt an dieser Stelle.

댓글 달기

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