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

  1. zabavno hracie automati ako hrat blackjack
    vip lounge casino best online blackjack predam vyherne hracie automaty Automaty za peniaze hracie automaty zdarma sizzling nove online casino sk
    ruleta online real casino vstupnГЅ bonus bez vkladu

  2. betandplay-earnedY

    Eine Untersuchung der Feedback und Seriosität des Online-Casinos BetAndPlay

    Dieses Spielanbieter Bet&Play hat sich in den letzten Zeiträumen als ein gefragter Online-Casino-Plattform etabliert, die sich besonders durch vielfältige Angebote an Gaming-Titeln und eine benutzerfreundliche Plattform auszeichnet [url=https://betandplay-76.edotivoc232.workers.dev]Bet And Play[/url] . Bevor man sich fällt man sich für eine Einschreibung, lohnt es sich, die Feedback zu Bet&Play zu überprüfen, um sicherzustellen, dass das Casino seriös und aufrichtig ist.

    In diesem Bericht werden wir uns genauer mit den entscheidenden Faktoren von Betandplay aufmerksam machen, von den verfügbaren Casino-Titeln bis hin zu den Bezahloptionen und den Eindrücken verschiedener Nutzer.

    Die Bewertungen zu Betandplay sind überwiegend zufriedenstellend, da viele Besucher die effiziente Zahlung und die breite Palette an Live-Gaming-Angeboten bewundern. Besonders populär sind die Automaten, Texas-Poker- und Blackjack-Varianten, die in spitzenmäßiger Verarbeitung und mit authentischen Grafiken gestellt werden. Die Plattform-Oberfläche ist sowohl auf Bürogeräten als auch auf mobilen Geräten gut nutzbar, was für viele Spieler ein entscheidender Vorteil darstellt. Allerdings gibt es selten Kritik an den Bonusbedingungen, insbesondere an den anspruchsvollen Freispiel-Regeln für kostenlose Spiele und Einzahlungsprämien.

    Ein weiterer entscheidender Aspekt, der bei der Untersuchung der Feedback von BetAndPlay mit einbezogen werden sollte, ist die Vertrauenswürdigkeit der Seite. Bet And Play unterliegt der Zertifizierung durch bekannte Aufsichtsbehörden wie die MGA, was auf eine bestimmte Kontrolle zeigt. Trotzdem sollten Gamer immer darauf vergewissern, dass ihre Informationen sicher sind und dass die Rückerstattungen zeitnah und problemlos erfolgen. Viele Gamer berichten, dass die Auszahlungszeiten in den meisten Fällen nicht übersteigen 24 Stunden liegen, sofern alle Anforderungen eingehaltten sind.

    Die Feedback von BetAndPlay zeigen auch, dass das Casino eine gute Auswahl an Zahlungsmethoden zur Verfügung stellt, darunter Debitkarten, elektronische Zahlungsmittel wie Skrill und PayPal sowie klassische Zahlungsarten wie SEPA-Überweisungen. Dies erhöht die Möglichkeiten für Nutzer, die verschiedene Optionen wünschen. Dennoch sollten Nutzer wissen, dass einige Transaktionsarten Gebühren oder Obergrenzen aufweisen, was bei größeren Ein- und Auszahlungen relevant sein kann.

    Fazit lässt sich sagen, dass Betandplay eine empfehlenswerte Alternative für Nutzer ist, die Wert auf eine große Spielauswahl und eine einfache Seite legen. Die Feedback von BetAndPlay sind überwiegend positiv, insbesondere in Fokus auf die Gaming-Ausführung und die schnellen Auszahlungen. Trotzdem sollten Gamer immer die AGB genau prüfen und sicherstellen, dass sie die Angebotsvorgaben verstehen, um unbequeme Folgen zu vermeiden. Wer auf der Suche nach einem vertrauenswürdigen und unterhaltsamen Gaming-Anbieter ist, kann Bet&Play definitiv in Überlegung ziehen.

  3. chickenroad-keymn

    En tant qu’ adepte de loisirs en ligne en quête d une aventure divertissante ou immersive, vous avez sans doute entendu parler du fameux chicken road [url=https://chickenroad-game-262.vercel.app]chicken road game casino[/url] . Ce opus addictif est devenu une réelle norme vis-à-vis des utilisateurs qui apprécient les rouages limpides tout en étant très prenantes. Proposé sur le site chickenroad-game-262.vercel.app, ce programme offre un environnement rapide et facile qui séduit immédiatement les novices utilisateurs ainsi que les vétérans du monde des jeux d argent.

    La logique du chicken road game se fonde sur une aventure lors de laquelle votre intuition est votre meilleur allié. À la différence d une machine à sous traditionnelle s appuyant seulement sur des symboles, cette version vous plonge dans le trajet là où toute initiative est cruciale. La popularité fulgurant de cette production chicken road a conduit de nombreux concepteurs à offrir des déclinaisons, menant ainsi à la création du très attendu chicken road 2. Ces versions enrichissent le vécu complète en intégrant de nouveaux obstacles visuels et des possibilités de configuration uniques pour les utilisateurs.

    Lorsqu on veut trouver un espace de jeu chicken road, il s avère crucial de sélectionner des sites assurant une expérience exemplaire. La page cité se différencie grâce à sa vitesse de chargement et par son aspect clair, permettant une imprégnation complète dans l univers chicken road jeu. Que vous soyez charmé par la dimension stratégique ou simplement la joie de risquer votre chance, le chicken road casino propose une prestation de qualité singulière. La dimension sociale liée au chickenroad continue de croître, avec des joueurs partageant leurs plus efficaces méthodes pour avancer dans le chemin escarpé de l application.

    En résumé, si vous souhaitez découvrir la raison pour laquelle ce jeu suscite un tel bruit, tester le jeu chicken road sur cette plateforme constitue une très bonne démarche. Mêlant tension et divertissement pur, le jeu chicken road est la preuve qu une simple idée simple, parfaitement mise en œuvre, suffit à séduire une audience sélective. Plongez sans attendre dans le vif de cette expérience et observez jusqu où votre flair peut vous transporter à travers le chicken road.

  4. spinmama-Teadly

    Bezpečnost informaci o uzivatelich a transparentnost při vyuzivani pokročilych nastrojů jsou pro nas hlavni prioritou [url=https://spinmama-aplikace.cz/cookie-zasady]spin mama[/url] . Na webu spinmama-aplikace.cz stavime zasadni důraz na to, aby kazdy z nasi uzivatele detailně věděli, jakym způsobem pracujeme s daty, ktera jsou shromazďovana prostřednictvim souborů cookie. Pokud prohlizite portal spin mama, je důlezite seznamit se s nasimi zasadami pouzivani těchto souborů, ktere nam dovoluji neustale zlepsovat kvalitu sluzeb a nabizet vam řeseni přimo na miru.

    Soubory cookie jsou mensi textove soubory, ktere se ukladaji do vaseho internetoveho prohlizeče při kazde navstěvě nasich stranek. Diky nim si spinmama zvladne zapamatovat vase volby, jako je kupřikladu vybrany jazyk nebo konfigurace zobrazeni. Mimo technickych cookies, ktere jsou kličove pro bezchybny chod webu, vyuzivame rovněz analyticke nastroje. Tyto nastroje nam anonymně pomahaji sledovat navstěvnost a porozumět, ktery text je pro vas nejatraktivnějsi. Diky tomu dokazeme na platformě spin mama trvale vylepsovat prochazeni a nabizet vam relevantnějsi informace.

    V ramci nasich pravidel mate vy jako uzivatele plnou kontrolu nad tim, ktere soubory cookie akceptujete. Vsechna nastaveni lze pokazde změnit aktualně ve svem softwaru, kde můzete cookies zakazovat nebo mazat. Varujeme vsak, ze vypnuti některych souborů můze narusit provoz danych časti webu spinmama. Nase organizace se připojuje k přisnemu respektovani učinnych pravnich předpisů o bezpečnosti dat, a proto průbězně kontrolujeme nase metody, aby byly trvale v jednotě s platnou legislativou.

    Pokud mate jakekoli otazky vztahujici se k toho, jak spin mama zachazi s vasimi udaji, lze nahlednout do kompletnich cookie zasad ihned na nasem webu. Nasim zaměrem je zachovavat otevřeny a rovny kontakt s kazdym člověkem, ktery aplikuje nasi aplikaci. Děkujeme, ze nam věřite a ze jste současti nasi komunity, kde je vase digitalni soukromi stale na prvnim mistě.

  5. Το Neon54 θεωρείται ένας δημοφιλέστερους ιστότοπους για τους παίκτες στη χώρα μας, προσφέροντας μια μοναδική και σύγχρονη εμπειρία στο online [url=https://neon-54-19.vercel.app]neon54 σύνδεση[/url] . Αν ψάχνετε για το κορυφαίο neon54 καζίνο, η ιστοσελίδα διακρίνεται για τον μοντέρνο σχεδιασμό της και την μεγάλη γκάμα παιχνιδιών που διαθέτει. Οι παίκτες που προτιμούν το neon54 στην Ελλάδα απολαμβάνουν ένα αξιόπιστο περιβάλλον, το οποίο είναι σχεδιασμένο στις απαιτήσεις του σύγχρονου χρήστη.

    Μία από τις βασικές προτεραιότητες για κάθε παίκτη είναι η ευκολία πρόσβασης, και το neon54 σύνδεση είναι μια διαδρομή πολύ άμεση και απλή. Μετά την ολοκλήρωση το neon 54 login, θα συναντήσετε μια μεγάλη λίστα από neon54 slot, που ικανοποιούν κάθε προτίμηση, από κλασικά φρουτάκια μέχρι τα πιο σύγχρονα βιντεοπαιχνίδια με εξαιρετικά γραφικά και ενδιαφέροντα σενάρια. Η ιστοσελίδα συνεργάζεται με τους καλύτερους providers του κλάδου, εγγυώμενη ότι κάθε neon54 casino εμπειρία θα είναι γεμάτη δράση και πιθανότητες για μεγάλα κέρδη.

    Πέρα από τα πολλά παιχνίδια, οι παίκτες εκτιμούν ιδιαίτερα τα μπόνους που παρέχονται, όπως τα δημοφιλή neon 54 free spins, τα οποία δίνουν τη δυνατότητα για επιπλέον γύρους χωρίς ρίσκο. Επιπλέον, το θέμα των αναλήψεων είναι απόλυτα διαφανές, με το neon 54 απόσυρση να γίνεται με ταχύτητα και ασφάλεια, διασφαλίζοντας ότι τα κέρδη σας θα φτάσουν στον λογαριασμό σας χωρίς καθυστερήσεις. Συνολικά, το neon 54 συνδυάζει άψογα την διασκέδαση με την επαγγελματική εξυπηρέτηση. Είτε είστε έμπειρος παίκτης είτε νέος παίκτης, η πλατφόρμα αυτή προσφέρει όλα τα εργαλεία για να παίξετε υπεύθυνα. Μην χάνετε την ευκαιρία να ανακαλύψετε τις δυνατότητες που προσφέρει το καζίνο, προτιμώντας μια πλατφόρμα που έχει κερδίσει την εμπιστοσύνη της κοινότητας των παικτών στην Ελλάδα, χάρη στην αξιοπιστία και την ποιοτική της προσέγγιση στον τομέα των online τυχερών παιχνιδιών.

  6. gambling platform recognized among local gamblers looking for a secure and thrilling betting journey [url=https://bet-and-play-77.onrender.com]Bet And Play Casino[/url] . As one of the emerging names in the Australian betting arena, this platform offers a varied array of options and betting avenues designed for both casual gamers and experienced wagerers. Whether you’re seeking for Betandplay Evaluations or a comprehensive Betandplay Casino Review, grasping its elements, protection, and player experience is vital before committing your time or capital.

    The Betandplay Online website is renowned for its user-friendly design, making it accessible for those novice to digital betting. With a commitment on delivering a effortless experience, the casino highlights a extensive collection of activities, including from poker machines, table options, and interactive dealer options. Many punters enjoy the range, as it enables them to explore with multiple wagering styles without switching sites. However, as with any digital gambling platform, it’s crucial to review Bet And Play Reviews to judge real player experiences and spot any potential flaws.

    One of the major considerations when assessing Bet And Play Casino Australia is its regulation and security. Trusted digital gambling venues function under strict regulatory structures to assure honest play and guard player capital. While Bet And Play seems to be a legitimate platform, it’s always advisable to check its licensing information and examine for any potential flags in Betandplay Feedback before finalizing funds. Honesty in payouts, responsible playing features, and customer assistance are all essential elements that contribute to a trustworthy wagering experience.

    For those yearning to attempt their luck, the Australian Betting site offers rewards and specialties that can boost the gaming session. Whether it’s greeting deals, no-cost turns, or reward perks, these perks can provide further worth. Nevertheless, it’s important to examine the rules and terms carefully, as some deals may include wagering demands or restrictions. Many Betandplay Feedback point out the cruciality of appreciating these terms to avoid of regret.

    In finality, Betandplay is a notable option in the Australian Betting landscape, providing a blend of entertainment and wagering avenues. While it boasts its strengths, such as a diverse activity library and easy-to-navigate design, future players should undertake thorough analysis through Australian Casino Insights and ensure the casino fulfills their standards in aspects of fairness, safeguards, and client support. Essentially wager wisely and inside your means.

  7. Provided you are seeking for an addictive and energetic gaming adventure that keeps you on the brink of excitement, look no further than the chicken road platform [url=https://chicken-road-us-7.andycummingsqzz330.workers.dev]chicken road game download[/url] . This famous release has snagged the attention of portable gamers globally with its basic but tricky mechanics. Players navigating the chicken road game are proving their responses as they direct their avatars over packed thoroughfares filled with obstacles. The goal is clear however difficult to perfect, making it a ideal selection for quick entertainment periods during a commute or pause.

    For those who have already relished the original journey, the chicken road 2 addition brings added excitement to the mix. This sequel features improved imagery, fresh tiers, and fresh mechanical variations that maintain the challenge ongoing. Followers of the series often search for a trusted chicken road game download to ensure they have the newest options instantly. If you are desiring the traditional edition or the refreshed chicken road 2 game, the ease of the platform renders it straightforward to leap return to the play.

    Plenty of users query about the chicken road app to savor a fluid interface on their cellular devices. Installing the authorized edition ensures that your advancement is retained and that you can open your chicken road game login without any software hitches. Should you are a beginner to the collection, you could want to test the chicken road demo to grasp the controls prior to starting the complete play. The group associated with chickenroad persists in increasing, with participants always sharing hints on how to achieve higher scores. Provided you are set to challenge your skills, finding a protected chicken road download is the first action leading to turning into a expert of the track. Connect with the masses of fans today and discover how deep you can progress in this exciting gameplay event.

댓글 달기

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