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”의 20,496개의 댓글

  1. betandplay-hompigH

    standout casino emerged one of the most sought-after digital betting platform in the country of the kangaroo [url=https://betandplay-casino-33.pages.dev]Betandplay[/url] .

    For regular player or, this digital gaming haven delivers an effortless session with an array perks to enhance your wagering experience.

    In this thorough analysis of Bet And Play, we’ll dive deep into what makes it special—its key features and why a must-consider for Down Under gamblers.

    The Bet And Play platform has been crafted with both ease and entertainment in mind. The platform facilitates varied payment methods, including bank transfers, providing quick and protected funding. This range ensures that it so much for bettors to load while also access funds while eliminating bureaucratic delays.

    Additionally, the casino offers a substantial welcome bonus for newcomers, that significantly enhance your funds the moment you begin playing.

    A standout of this casino is its diverse selection of titles. From timeless slot machines while also featuring real-time titles along with traditional betting such as 21, the numbered wheel, there’s something for any variety of bettor. The gaming venue furthermore introduces fresh its selection, providing that gamblers have the latest and most exciting choices.

    If you’re into real-time gaming play, Bet And Play provides immersive transmissions with real-time dialogue, turning the moment come alive stepping into a real-world gaming lounge.

    In terms of the digital hub player opinions, gamblers frequently note the site’s equity. The platform operates with tight regulatory standards, delivering that both options remain equitable. Additionally, the customer support group stays on standby 24/7 to support concerning any questions, delivering confidence for customers. Whether support about withdrawals or troubleshooting glitches, the service squad is responsive.

    Those new to virtual casinos, Bet And Play provides tutorials and guides to assist you enter. From mastering betting math to studying techniques, these tools will elevate your full time while also raise your likelihood of victory. The casino what’s more adapts for wide-ranging player abilities, delivering it straightforward for all beginners and seasoned punters.

    Putting it all together, this digital betting hub earns its reputation as a top-notch virtual casino venue which unites a hassle-free layout, a varied array of choices, and excellent help.

    Whether high-energy video slots, virtual games, or maybe match predictions, the digital venue guarantees a hassle-free while also enjoyable experience.

    Should you be a well-reviewed guide to the site, or maybe trying the virtual casino, the venue absolutely a valuable pick for your upcoming online experience.

  2. cricketroad-amofe

    A increasing fame of virtual play within the nation brought forward several fresh sites, plus cricket road is presently creating ripples among players individuals that enjoy athletic-style participatory games [url=https://cricketroad-24.pages.dev]cricket road game money[/url] . While gamers seek captivating methods to challenge their luck and expertise, this cricket road game has surfaced as a topic of attention for those looking for a combination of entertainment and online rivalry. Assuming the user are investigating the sphere of that cricket road online game, it proves crucial to grasp the way the platform operates plus what it provides to the users.

    Numerous players looking for this cricket road game money factor are often interested in the method to browse the layout well. To commence, gamers typically need to finalize that cricket road login steps to reach their personalized profiles. After users have triumphantly entered your cricket road game login, you can explore the multiple features accessible on the portal. It is vital to remember the fact that while engaging with every cricket road casino style platform, players ought to prioritize safe playing habits also ensure the users are accessing the cricket road game original version to uphold login protection.

    For users questioning in case they have discovered this real cricket road game, it remains perpetually a good habit to verify the domain one is accessing. The portal at cricketroad-24.pages.dev is a single of such sites in which players seek to play that cricket road online game. Regardless of whether the person is a hobbyist player or a veteran participant, understanding the workings of the cricketroad website is vital to a trouble-free experience. Constantly store the access codes secure following finishing that cricket road login and verify that one is aware of the policies associated with playing any cricket road game online. Since the user enter the activities, remember that being knowledgeable is truly the best method to appreciate this session on this site during investigating the fun which this special site brings to your monitor. Constantly gamble within your constraints also enjoy the online experience cautiously.

  3. Wenn Sie individuell fur das Web- Programm von spinogambino interessieren, ist es unerlasslich, sich mit den formellen Rahmenbedingungen vertraut zu machen. Die AGB auf der Seite [url=https://spino-gambinospiel.de/agb]spino gambino[/url] bilden das Grundgerust fur ein serioses und durchsichtiges Casino-Erlebnis. Ein tiefgreifendes Wissen dieser Geschaftsbedingungen bewahrt sowohl den Spieler als auch den Betreiber und schafft die erforderliche Klarheit bei der Verwendung der Webseite.

    Wer sich bei spino gambino anmeldet, billigt direkt eine Reihe von Vorgaben, die den Umgang mit dem Spielerkonto, Zahlungsvorgangen sowie den Pramienregeln festlegen. In den AGB erfahren Sie etwa exakt, welche Kriterien erledigt sein mussen, um ein Konto zu registrieren. Auch der verantwortungsvolle Umgang mit dem Glucksspiel wird hier behandelt. Die Seite betont damit ihr Einsatzbereitschaft fur Pravention und Sicherheit, was ein zentrales Gutesiegel fur jeglichen Gamer darstellt.

    Au?erdem bestimmen die Vorgaben bei spinogambino die Vorgehensweisen bei technischen Defekten oder bei Fragen zum Datenschutz. Sollte es zu Missverstandnissen bei der Anwendung von Pramien oder bei der Verifizierung Ihrer Identitat erscheinen, sind die AGB die wichtigste Quelle fur gultige Auskunfte. Es ist daher dringend zu raten, diese Dokumente nicht nur zu durchzublattern, sondern die Aspekte sorgfaltig zu prufen.

    Die Provider von spino gambino legen Wert darauf, dass die Spielregeln fur jedwede Besucher transparent einsehbar sind. Dies unterstutzt ein gerechtes Zusammenspiel. Sollten Sie Ruckfragen zu den einzelnen Paragrafen haben, ist der Helpdesk von spinogambino zudem eine nutzliche Kontaktadresse, um die juristische Fundament Ihres Spielspa?es effektiver zu verstehen. Indem Sie sich initiativ mit den Vertragsregeln auseinandersetzen, gewahrleisten Sie, dass Sie die gesamten Benefits der Domain voll nutzen konnen, ohne dadurch regulatorische Punkte zu ignorieren. Zusammenfassend lasst sich konstatieren, dass die Lekture der AGB ein wesentlicher Vorgang fur jeden Kunden ist, der ein vertrauenswurdiges und sorgenfreies Spielvergnugen bei spino gambino anstrebt. Transparenz ist hier der Schlussel zu dauerhafter Zufriedenheit und Geborgenheit in der Online- Sphare des Casinospiels.

  4. betandplay-Weilia

    high-quality online gambling platform BetAndPlayCasinoAU has stirred fresh focus among Aussie gamblers seeking for a legitimate and engaging gaming venture [url=https://betandplay-casino-34.vercel.app]Betandplay Casino[/url] . As one of the breakout names in the Aussie BetAndPlay landscape, this portal delivers a varied range of activities, rewards, and benefits designed for both occasional players and veteran bettors. Whether you’re scouting for a honest BetAndPlay breakdown or simply craving alternative avenues, understanding what this hub contributes to the picture is vital before you place a deposit.

    One of the key highlights of Betandplay is its easy-to-navigate design, which ensures seamless navigation for players. The site looks to be optimised for both mobile and laptop users, ensuring usability across screens. This is notably significant for Australian players who favour to gamble on the go.

    The casino also highlights a varied range of options, spanning roulette titles, traditional games, and interactive dealer experiences, delivering choices for distinct preferences.

    For those researching a honest BetAndPlay assessment, user reviews and clarity are critical aspects. While exact details about regulation, security, and equity may shift, trusted platforms typically emphasise these aspects to build faith. BetAndPlay reports to execute under responsible betting standards, providing options like spending restrictions and voluntary withdrawal options to promote safe gambling practices.

    When comparing BetAndPlay’s digital platform with other local betting platforms, bonuses and deals hold a significant part. Many gamblers seek for launch deals, no-cost revolutions, or loyalty schemes to enhance their betting session. Betandplay’s promotional package should be examined meticulously to ensure transparency and value, as some platforms may conceal rules or play-through demands.

    Another factor for those reading BetAndPlay critiques is the payment options available. Reliable betting platforms in Aussie typically support domestic banking options like PayPal, guaranteeing quick and safe payments. Assessing the processing times and withdrawal limits can guide gamblers to avoid unplanned setbacks.

    In the end, whether you’re new to digital gambling or an skilled player exploring a Bet And Play Casino Review, it’s vital to consider the advantages and disadvantages. Responsible betting should consistently be prioritised, and gamblers should verify the casino’s trustworthiness before registering. With the correct strategy, Betandplay could be a beneficial contribution to the flourishing catalogue of Bet And Play Casino Australia available to Australian players.

  5. Should you exist as a fanatic of sports-themed betting and virtual entertainment, you have likely heard of the rising fame of cricket road [url=https://cricket-road-25.pages.dev]cricket road game money[/url] . This portal has carved a spot for the site by blending the excitement of the activity with dynamic digital elements. For individuals wanting to engage with the gameplay, the cricket road game provides a special interface that caters to fans who relish competitive gaming and tactical decision-making.

    Entering the webpage is simple once you hold your login details. Players can smoothly initiate a cricket road login to open their individual profile area and begin exploring the various features available. If you are looking for the cricket road game online to evaluate your talents or just desire to sample the platform features, it is vital to guarantee you are visiting the legitimate source. Engaging with the cricket road game original version is suggested to ensure security, fair play, and the superior customer journey.

    Many players often ponder the cricket road game money aspect. Although the hub offers an engaging avenue to interact with cricket-themed mechanics, it is vital to bet wisely and understand the rules associated with any cricket road casino elements that could be integrated. The cricket road online game has gained traction since it combines familiar athletic motifs with current e-gaming styles.

    When hunting for the portal, plenty of visitors look for cricketroad to discover the official entry point. The cricket road game login system is created to be rapid and streamlined, enabling members to spend more effort on the site. If you are specifically hunting for the real cricket road game, consistently verify the URL to bypass external domains that may not offer the identical level of reliability. By prioritizing the official environment, you can savor all the rivalry-based fun that this venue yields. Keep in mind to emphasize data safety and relish the tactical amusement offered by this special cricket-themed betting landscape as you navigate all its features.

  6. Selekcja odpowiedniego portalu do obstawiania sportu oraz zabawy w kasynie online jest kluczową decyzją dla każdego gracza [url=https://ivybet-73.onrender.com]ivybet opinie[/url] . W ostatnim czasie na rynku pojawia się coraz więcej platform, a jedną z nich jest Ivybet, ktora przyciąga uwagę graczy swoją nowoczesną ofertą. Serwis to miejsce, pod ktorym wielu obstawiających szuka rozrywki na wysokim poziomie. Jeśli zastanawiasz się, co wyrożnia ten portal, warto dokładnie sprawdzić jego możliwościom.

    Platforma Ivybet oferuje funkcje tradycyjnego operatora zakładow oraz bogatego kasyna internetowego. Dzięki temu gracze z Polski mają możliwość korzystania do szerokiej gamy sportow oraz mnostwa automatow i gier stołowych. Ivybet Polska stawia na intuicyjny interfejs, ktory pozwala szybko poruszać się po stronie, co jest istotne dla osob ceniących czas i komfort gry. Niezależnie od tego, czy interesuje Cię Ivybet bukmacher i typowanie zdarzeń sportowych, czy preferujesz Ivy bet casino, strona została stworzona tak, aby odpowiedzieć na potrzebom graczy.

    W sieci coraz częściej można spotkać pochlebne Ivybet opinie. Gracze doceniają jasne zasady, atrakcyjne bonusy powitalne oraz szeroki wybor opcji wpłat, ktore ułatwiają korzystanie z usług w ramach Ivybet pl. Gwarancja bezpieczeństwa i stabilność serwisu to fundamenty, na ktorych budowana jest marka Ivy bet w naszym kraju. Warto jednak pamiętać, aby przed rozpoczęciem gry przeczytać z regulaminem dostępnym na stronie.

    Podsumowując, jeśli szukasz nowego portalu do obstawiania lub probowania swoich sił w kasynie, Ivy bet Polska zasługuje na uwagę. Szybki rozwoj serwisu, jakim jest Ivybet casino, sprawia, że oferta ta staje się coraz bardziej atrakcyjna. Niezależnie od Twojego stażu, Ivybet stara się dostarczać rozrywki na wysokim poziomie, dbając jednocześnie o odpowiedzialną grę do hazardu. Sprawdź możliwości tej platformy już dziś i przekonaj się, dlaczego Ivybet opinie są tak często omawiane wśrod graczy.

  7. spinmama-flinuet

    Jeder, der auf der Jagd nach exzellentem Zeitvertreib im Web ist, umgeht nicht Spinmama momentan kaum vorbei [url=https://spinmama-app.co.at]spin mama[/url] . Durch eine neuartige Offerte fur Spieler aus Osterreich hat sich die Spielstatte unverzuglich einen Platz gesichert. Viele Nutzer suchen nach zuverlassige Spinmama Feedbacks, um sich ein Bild von der Qualitat sowie Sicherheit der Plattform zu erlangen. Diese digitale Spielhalle glanzt bei dieser Gelegenheit mittels einer gewaltigen Palette an Unterhaltung, angefangen bei alten Spielern bis hin zu modernen Live-Dealer-Tischen spielt. In diesem Fall burgt die Plattform fur Verlasslichkeit und ein benutzerfreundliches Design, was exakt auf die Erfordernisse der User in Osterreich ausgerichtet ist.

    Ein hervorzuhebendes Merkmal im Fall von Spinmama AT ist das leichte Steuerungssystem, die es auch Einsteigern ermoglicht, sich schnell zurechtzufinden. Wenn es um das Thema Spinmama Auszahlung geht, erweist sich der Anbieter mustergultig. Schnelle Bearbeitungszeiten und eine Vielzahl an Einzahlungsoptionen bewirken, dass Gewinne rasch an die Borse flie?en. Wer das Spinmama Casino Osterreich besucht, sieht zusatzlich lukrative Pramien, die den Einstieg versu?en. Ebenfalls bei Interesse an Spinmama Betting interessiert, wird bestens versorgt, weil das Sortiment an Wettmarkten die Palette gut abrundet.

    In zahlreichen Berichten wie etwa einem Spinmama Casino Review wird oft hervorgehoben, wie abwechslungsreich das Spielangebot ist. Der Provider Spin Mama setzt stark auf Ehrlichkeit und Offenheit, was derzeit ein zentraler Aspekt bei der Entscheidung des richtigen Anbieters ist. Wer dementsprechend diesen Anbieter als Lieblingsort fur den Zeitvertreib bevorzugt, gewinnt durch einer modernen Infrastruktur und einem erstklassigen Support. Abschlie?end kann man festhalten, dass Casino Spinmama eine exzellente Option fur jeden darstellt, die achten auf Vertrauen und Unterhaltung legen. Unabhangig davon, ob am Rechner oder mobil – das Angebot dieses Anbieters ist technisch ausgereift und bietet ein exzellentes Spielangebot, das die Wunsche der Zocker im Alpenland komplett befriedigt. Ein Besuch der Homepage lohnt sich definitiv fur jeden, der in einer sicheren Umgebung sein Schicksal herausfordern will.

  8. Буди себя Атмосфера места «Грани в Мезмае» способствует глубокой рефлексии и эмоциональному восстановлению. Подарите себе незабываемый опыт личностной трансформации в живописном уголке природы.

댓글 달기

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