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”의 19,905개의 댓글

  1. chickenroad-Fausa

    Assuming you searching for the newest thrill within the realm of virtual entertainment, the chicken road game is presently generating waves between Filipino users. Open via the legitimate site at [url=https://chickenroad-ph-6.vercel.app]chicken road[/url] , this alluring platform offers a novel twist regarding current gaming. Supposing you label it chickenroad or simply the road chicken game, the aim continues the equivalent: maneuver your way past obstacles to gain a win.

    Many individuals searching for a intense adventure are flocking to this chicken road gambling game due to its rapid style alongside simple mechanics. In contrast to a traditional chicken road slot that relies solely upon turning reels, this engaging format allows participants to execute strategic decisions that immediately affect their victory. It is hardly any wonder that the chicken road game gambling scene has expanded swiftly inside the Philippines, attracting those who enjoy a smidgen of excitement paired with fast decision-making.

    The site supplies a seamless experience intended for those curious in the chicken road casino style of play. Given the victory of the first version, followers are already anticipating elements seen inside chicken road 2, which seeks to enhance the graphics along with betting options toward a significantly more engaging session. Assuming you desire to plunge within the gameplay, the chicken road game online is tailored geared toward portable devices, ensuring that you can play at any moment plus wherever you are.

    For novice gamers enthusiastic to test the road chicken experience, the design is designed to be intuitive, removing all digital hurdles to entry. While you participate in the chicken road journey, bear in mind to play ethically along with relish the adrenaline that arrives alongside every winning step. Head across to the designated portal to witness just why a lot of Filipinos deem this their top approach to pass the time. Given its fusion of strategy and chance, the chickenroad platform is undeniably one of the highly compelling updates to the local virtual gaming landscape nowadays.

  2. Dans du gigantesque univers des mini-jeux de casino en ligne, le logiciel Chicken Road s’est rapidement affirmé en tant que un pilier incontournable pour les fans d’intenses sensations fortes [url=https://chicken-road-fr-33.vercel.app]chicken road game[/url] . Disponible via la plateforme chicken road fr 33, ce titre captivant séduit beaucoup de utilisateurs grâce à son concept basique mais addictif qui rappelle les jeux de hasard rythmés. Dans le cas où vous recherchez un divertissement instantané et potentiellement lucratif, le chicken road game réclame pleinement votre attention.

    Le principe du chicken road casino s’avère intuitif: vous menez un gallinacé à travers un itinéraire semé d’embûches. L’objectif est franchir les difficultés pour accumuler des profits en même temps qu’ contourner les pièges qui clore votre session. En examinant un avis chicken road, vous constaterez le fait que ce qui charme le plus les joueurs est la poussée d’adrénaline durant chaque niveau franchi. Contrairement à une chicken road slot habituelle, ce divertissement demande une action active, ce qui augmente le réalisme.

    Concernant les joueurs découvrant cet espace, le chicken road jeu propose un écran lisible. Il est habituel de trouver des stratégies ou des astuces pour maximiser ses probabilités sur les jeux chicken road, et les avis des joueurs sont globalement très positifs. Une fois épluché plusieurs chicken road avis, il ressort que la clarté des consignes est le point fort inhérent à ce titre. Peu importe que vous soyez un professionnel ou un novice, la prise en main est très courte.

    Suite à le succès croissant de cette première version, les joueurs espèrent actuellement impatiemment des évolutions, et plusieurs se demandent déjà sur l’arrivée potentielle d’un éventuel chicken road 2. D’ici là, l’édition actuelle du chicken road game casino persiste dans le fait de faire vibrer les adeptes. Si vous désirez tester votre chance, gardez toujours en mémoire que le jeu doit rester un plaisir. Pour finir, si vous cherchez une expérience ludique unique, le chicken road est une option de référence afin de agrémenter vos sessions de casino en ligne.

  3. Вывод из запоя — это управляемая медицинская процедура с предсказуемыми шагами, а не «сильная капельница, которая помогает всем». В наркологической клинике «СеверКар Медикус» мы строим лечение как маршрут: цель > инструмент > маркеры контроля > окно повторной оценки. Такой подход снижает лекарственную нагрузку, ускоряет восстановление сна и аппетита и делает процесс понятным пациенту и семье. Мы работаем круглосуточно, организуем выезд нарколога на дом, разворачиваем тихую, безопасную среду и соблюдаем анонимность: нейтральные формулировки, гражданская одежда специалистов, немаркированный транспорт и «беззвучные» уведомления.
    Подробнее тут – http://vyvod-iz-zapoya-petrozavodsk15.ru/skoryj-narkolog-vyvod-iz-zapoya-petrozavodsk/

  4. excellent online entertainment platform celebrated as Betandplay has won significant fame in Australia for its varied selection of playing choices and user-friendly adventure [url=https://bet-and-play-55.pages.dev]Bet And Play[/url] .

    If you’re scouting for a reliable Bet And Play Casino Australia, this platform provides a library of slot titles, classic options, and virtual hosted games to cater various choices.

    Whether you’re a longtime enthusiast or brand-new to virtual gambling, Betandplay builds an exciting atmosphere with generous deals.

    One of the defining qualities that makes Bet And Play’s Virtual Casino excel is its commitment on delivering a smooth gaming adventure. The space is engineered with an easy-to-use system, promising that users can smoothly navigate through the choices without any difficulties.

    With a impressive collection of games from top-tier game creators, Bet And Play Feedback frequently note the outstanding levels and breadth of the games provided. From iconic slot machines like Mega Moolah to big-money keno, there’s a title for different preferences.

    For those enthusiastic in Betandplay’s Digital Playground, the venue also offers real-time hosted play, which include an supplemental touch of energy by mimicking real-world playing environments. The live assistance team assures that entertainers can promptly handle any problems, making the full venture less stressful.

    Many Bet And Play Insights praise the platform’s priority to transparent play and protected settlements, which is vital for Australian visitors.

    If you’re weighing experiencing Betandplay, it’s undoubtedly to investigate the up-to-date Bet And Play Evaluation to see what present entertainers are commenting. The hub often revitalizes its deals, including first-time perks and regular offers, which can improve your entertainment adventure. Whether you’re hunting for relaxation or the opting to claim substantial, Betandplay delivers a dependable and exciting way to partake virtual gaming avenues in Australia.

    Before registering, always guarantee you’re participating judiciously and respecting your budget. Betandplay Down Under highlights safe gambling practices, promoting users to impose limits and take intervals when appropriate. With its combination of thrills, diversity, and security, Betandplay is a powerful champion in the Australian online playing space.

  5. Наркологическая клиника «СтавропольМедСервис» объединяет современную медицину и чуткое отношение к человеку: круглосуточный приём, точные диагностические алгоритмы, адресная инфузионная терапия, телемедицинские включения и грамотная работа с тревогой и сном. Мы используем принцип «минимально достаточной фармакотерапии»: каждый препарат должен быть оправдан текущими измерениями и клинической картиной, а не привычкой «усилить». Такой подход уменьшает риски дневной заторможенности, помогает быстрее восстановить ясность и делает ночь предсказуемой — без тяжёлой седации. Все действия прозрачны: пациент знает цель шага, окно оценки, критерии перехода и признаки, при которых нужно эскалировать наблюдение. Конфиденциальность встроена в процесс: гражданская одежда персонала, нейтральные формулировки в документах, «беззвучные» уведомления и закрытый контур медицинских карт — не «сервисная опция», а клинический фактор, снижающий реактивность и повышающий приверженность плану.
    Получить больше информации – [url=https://narkologicheskaya-klinika-v-stavropole15.ru/]вывод наркологическая клиника[/url]

  6. spinmachologin-quelry

    Realizing how your personal data is managed is a vital aspect of your online journey, especially when dealing with gambling platforms [url=https://spinmachologin.com/privacy-policy]spinmacho[/url] . The privacy policy located on spinmachologin.com is intended to provide full clarity concerning the user tracking and protection measures deployed by the interface. When you browse spinmacho, you are engaging with a site that values the protection of your sensitive records, guaranteeing that all interaction stays protected and confidential.

    The document clearly details that spin macho harvests specific input to improve user experience and maintain profile security. This incorporates information provided throughout the onboarding flow, as plus background logs gathered mechanically through trackers and comparable methods. These elements are employed mostly for identity checks, service optimization, and to ensure that all gaming activities adhere to industry regulations. The domain is committed to using this content responsibly and only for the purposes directly defined in their data policies.

    Security is at the core of the spinmacho working framework. By utilizing powerful security codes, the web-destination defends your personal and monetary data away from unauthorized access or disclosure. Moreover, spin macho does not peddle or lease your sensitive information to external entities for advertising reasons, reinforcing a environment of reliance and dependability. Users are urged to review the legal document from time to time, as updates may occur to adjust to shifting law requirements or site upgrades.

    If you at any point have doubts concerning how your data is processed or if you wish to assert your prerogatives about your data, the privacy policy provides the required pathways for assistance. By maintaining a clear and easy-to-find text, the team confirms that each player of the site can experience their playtime with complete peace of mind. Your anonymity is a priority, and the safeguards listed at spinmachologin.com act as a testament to the portal’s devotion to maintaining a protected and clear online space for all member.

  7. chickenroad-Queloto

    Si vous êtes un adepte des jeux en ligne, vous avez probablement déjà entendu parler du concept chicken road [url=https://chickenroad-fr-34.clydeemoryd763.workers.dev]chicken road game[/url] . Ce jeu de casino digital est apparu comme une totale référence pour les pratiquants de sensations fortes en quête de une expérience ludique inédite. En explorant la plateforme accessible, vous apprendrez pourquoi le chicken road casino occupe une place de choix dans le cœur des parieurs français. Le fonctionnement du chicken road game est aisé mais incroyablement fascinant: vous êtes tenu de guider un poulet à travers une route remplie d’obstacles tout en engrangeant des gains espérés. Cette dynamique rappelle meilleurs jeux chicken road qui favorisent la réactivité rapide.

    Lorsqu’on étudie un chicken road avis sur les plateformes dédiés, on observe directement que la facilité d utilisation est le point fort régulièrement mis en avant. Le chicken road jeu ne nécessite pas de aptitudes ardues, ce qui le établit ouvert aussi bien aux novices qu aux experts des portails de jeux d argent. Si vous vous demandez quel est l avis chicken road général de la communauté, notez qu il est majoritairement positif, insistant sur la netteté des visuels et la rapidité du chicken road slot.

    Plusieurs guettent en outre avec enthousiasme des évolutions, et si vous avez apprécié la originelle version, le chicken road 2 garantit d dévoiler des épreuves encore plus corsés avec des options enrichies. Le chicken road game casino séduit notamment ceux qui adorent combiner stratégie et hasard. En optant pour les jeux chicken road sur cette structure, vous jouissez d un espace fiable et amélioré pour le plaisir de jeu. Que vous fouliez là pour le amusement pur ou pour chercher de remporter des gains, ce titre essentiel justifie largement sa image. N craignez pas à éprouver par vous-même pour vous construire votre propre avis sur ce jeu qui ne arrête de faire débattre de lui dans l univers du gaming en ligne.

  8. Considering you are looking for an exhilarating approach to evaluate your fortune and tactics, the chicken road game has become a massive trend amidst Filipino players [url=https://chicken-road-ph-7.pages.dev]chicken road gambling game[/url] . This distinctive title, often found on websites including chicken-road-ph-7.pages.dev, delivers a novel spin to the sphere of virtual fun. Regardless you call it chickenroad or the road chicken game, the premise remains straightforward however incredibly intense: guide your winged friend through a dangerous track as you avoiding barriers to reach the goal.

    The notoriety of the chicken road gambling game is mostly because of its rapid style and high participation degrees. Gamers are attracted to the chicken road casino experience because it gives a break away from traditional slots and table options. While you navigate the way, each choice matters. Contrary to a normal chicken road slot in which conclusions are wholly mechanical, this play needs quick reactions and a dash of courage, making the chicken road game online journey appear far more personal and rewarding.

    Numerous aficionados who enjoy the primary edition are at present hunting for refinements or continuations, commonly browsing for chicken road 2 to witness how the action has evolved. The controls of the chicken road game gambling genre enable different betting methods, which is why it has maintained such a faithful following in the Philippines. By keeping your attention on the road chicken, you can calculate your dangers and decide when to cash out your payouts.

    In the event you are a beginner to the industry, remember that operating the chicken road game ought to always be performed carefully. It is created for thrill-seekers who relish modern tech tasks. The basic nature of the interface integrated with the anticipation of the following action renders it one of the most addictive games now accessible. Visit the site to observe why so plenty of native players are making chickenroad their go-to choice for quick, intense excitement. Feel the energy of the road today and observe if you have what it needs to lead your chicken to protection and obtain those huge prizes.

  9. chickenroadgamebonusapp-Stevoda

    If you opt to engage with the Chicken Road gaming platform, securing your sensitive information stands as our main priority [url=https://chickenroadgamebonusapp.net/privacy-policy]Chicken Road[/url] . The Privacy Policy at chickenroadgamebonusapp.net outlines how we acquire, use, and shield your data to establish a safe environment for various user. Whether you are navigating the ChickenRoad interface or joining in our latest challenges, comprehending our record management practices is vital for a open and entertaining gaming adventure.

    We collect certain information once you communicate with the Chicken Road application, essentially to improve your gameplay journey and deliver customized content. This could incorporate standard registration data, device markers, and operational usage stats that helps us improve site performance. We remain committed to employing this information only for providing services, processing bonuses, and preserving the security of the platform. We do not barter your individual data to external advertisers. Your privacy rests totally within the ChickenRoad ecosystem, utilized only to verify that our functions run correctly and that your user identity remains shielded blocking forbidden access.

    Security acts as the foundation of our activities. We apply professional encryption rules to defend your confidential details preventing illegal disclosure. By using the tools provided on our website, you agree to the obtaining and application of information as described in our comprehensive policy. We urge that every players examine this text frequently, as we might revise our protocols to conform with modern security protocols or added features introduced to the Chicken Road app.

    Provided that you ever have questions about how your data is handled, our support team is standing by to aid you. Our target is to maintain your belief while providing the very exciting gaming session viable. By prioritizing privacy, we guarantee that you can focus entirely on relishing your time on ChickenRoad. Thanks for acting as a esteemed user of our group and for opting for us for your gaming fun. Your data is our obligation, and we take that pledge diligently each single day.

  10. Wer, der auf der Jagd nach erstklassiger Unterhaltung und lukrativen Gewinnchancen ist, wird jetzt jenes Portfolio bei spino-gambino-login.de/bonuses detailliert ansehen [url=https://spino-gambino-login.de/bonuses]spinogambino bonus[/url] . Das Casino hat sich langst einen Bekanntheitsgrad wie bevorzugte Anlaufstelle fur Glucksspielbegeisterte erarbeitet, die mittels attraktiven Aktionen Vorteile erlangen mochten. Bemerkenswert ware in diesem Kontext das Bonusprogramm, der neuen Usern diesen optimalen Einstieg ins Spielvergnugen gewahrt. Jeder der wahrend der Account-Erstellung einen gultigen spinogambino bonus code nutzt, darf sich haufig einzigartige Vorteile holen, die ein Startguthaben merklich steigern.

    Dieser besonderes Highlight fur viele Nutzer ist diesen begehrte No-Deposit-Bonus. Der Gratis-Startbonus ermoglicht neuen Spielern, die Webseite ohne eigenes finanzielles Verlustrisiko anzuchecken. Oft genugt das Nutzen eines gultigen Bonus-Key vollig, um direkt durch kostenlosem Startkapital sowie Free-Spins anzufangen. Ebenso unter User, die auf der Jagd nach spino gambino bonus codes schauen, prasentiert die Webseite regelma?ig aktualisierte Promos vor, um dieses Zocker-Vergnugen derart angenehm perfekt zu formen. Falls man diesen spino gambino bonus in Anspruch nehmen wollen, durfen man stets jene momentan aktiven Bonus-Codes prufen, damit keine Gelegenheit zu verpassen.

    Abgesehen von solchen vielfaltigen Bonusangeboten liefert jener Anbieter auch technische Flexibilitat. Wer eher via Smartphone spielt, kann jenen spino gambino download verwenden, damit direkten Zugriff auf alle die Slots plus Promos zu bekommen. Ebenso jene Option bezuglich den Software-Download steht parat, sodass jene Anwendung unmittelbar auf das Gerat zu laden und dadurch jederzeit dieses ruckelfreies Spielerlebnis zu genie?en. Bitte achten Sie bei der Registrierung immer auf den Gebrauch Ihres eigenen Gutscheincodes, sodass solche optimale Unterstutzung einzustreichen. Das Spielportal punktet lediglich kraft die gro?e Ansammlung von Slots, jedoch eben auch mit jene faire Aktionsstruktur. Nutzen Sie diese Domain stetig, sodass uber neue Boni auf dem Laufenden zu sein plus den kommenden Bonus-Key direkt wahrend der Account-Erstellung zu verwenden. Der personliche Trip zum gro?en Erfolg durfte genau hier beginnen. [url=http://evsagro.com/bbs/board.php?bo_table=inquiry&wr_id=127]Der ultimative Guide fur Spino Gambino Aktionen 2024: Hol dir den besten Startbonus auf spino-gambino-login.de/bonuses![/url] [url=https://19bamalba.com/bbs/board.php?bo_table=aaaaa&wr_id=5174]Der ultimative Spin[/url] 610d23f

댓글 달기

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