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”의 67,724개의 댓글

  1. Стартовый осмотр должен быть быстрым и осмысленным. Мы исключаем «обязательные» исследования, которые не меняют тактику, и оставляем то, что прямо влияет на состав инфузии, темп, место ведения (дом/амбулатория/стационар) и объём поведенческих рекомендаций. Решения принимаются на свежих цифрах и клинической картине «здесь и сейчас», а повторные замеры назначаются не «по привычке», а по смыслу. Это экономит силы пациента и время команды, а главное — уменьшает фармакологическую нагрузку без потери безопасности.
    Получить дополнительную информацию – https://narkologicheskaya-klinika-stavropol15.ru/chastnaya-narkologicheskaya-klinika-stavropol/

  2. В этой публикации мы исследуем ключевые аспекты здоровья, включая влияние образа жизни на благополучие. Читатели узнают о важности правильного питания, физической активности и психического здоровья. Мы предоставим практические советы и рекомендации для поддержания здоровья и развития профилактических подходов.
    Жми сюда — получишь ответ – [url=https://narcologiya.info/pohmele/kak-vylechit-pokhmele-doma.html]анонимная наркологическая клиника[/url]

  3. spinogambino-Emivach

    When users are searching for a superior location regarding virtual betting entertainment, search none more than spinogambino [url=https://spinogambino-casinogame.com]spinogambino betting[/url] . That platform is fast built itself to be some prime center catering to players that appreciate diversity, safety, plus the seamless user session. If patrons visit the spinogambino official website, everyone are greeted with the intuitive interface that makes exploring through many in options highly simple to either beginners and expert players.

    The spinogambino casino rises out in the crowded market due for the dedication on top software and honest gaming. If you like classic slots, latest digital reels, plus board games, the site offers an broad library which speaks to any taste. Loads of players definitely select their spinogambino online casino because to the impressive mobile functionality, allowing one to experience your best picks at anywhere at all moment.

    For players who desire the authentic vibe, the spinogambino live casino area gives the thrilling experience. Live interaction alongside expert croupiers brings the thrill of the real venue directly onto your screen. Additionally, that addition featuring safe spinogambino betting choices ensures that all payments are managed using the top degree for security plus protection rules.

    Selecting a reliable site is essential in the field regarding web gaming, plus spino gambino has demonstrated itself as the loyal partner for thousands of members. By centering on user happiness and open betting methods, this spino gambino casino confirms which any session remains fun. When users log into their spinogambino casino online, they get not just enjoying games; members are part in a community which treasures entertainment and thrill. Should players been are looking to find a high spinogambino online experience, today is the best opportunity for discover all that platform has for provide. Given the vast variety in promos plus a always updated collection of games, the site remains the leader in the industry, providing quality support plus limitless joy to all participating.

  4. В этой статье мы подробно рассматриваем проверенные методы борьбы с зависимостями, включая психотерапию, медикаментозное лечение и поддержку со стороны общества. Мы акцентируем внимание на важности комплексного подхода и возможности успешного восстановления для людей, столкнувшихся с этой проблемой.
    Читать дальше – [url=https://autohirebuy.ru/pages/detoksikaciya-ot-alkogolya-na-domu/]запой врач на дом[/url]

  5. Internetowe kasyno Spino Gambino stanowi miejsce, ktore osiąga rosnącą popularność pośrod polskich graczy, szukających nie tylko emocjonującej rozrywki, lecz przede wszystkim atrakcyjnych promocji. Platforma [url=https://spino-gambino.info.pl/bonus]spinogambino bonus bez depozytu[/url] stanowi znakomity punkt startowy dla użytkownika, kto chce zwiększyć swoje szanse na triumf, używając nowoczesne pakiety powitalne. Jeżeli zastanawiasz się, jak zacząć przygodę z tym operatorem, warto zwrocić uwagę na dostępny spinogambino bonus, ktory często otwiera drzwi do bogatej gamy automatow.

    Wielu nowych użytkownikow przede wszystkim szuka opcji, jaką jest spinogambino bonus bez depozytu. Tego typu oferta umożliwia sprawdzić platformę bez potrzeby wpłacania własnych środkow, co sprawia ją bardzo atrakcyjną. Żeby wykorzystać takich przywilejow, zazwyczaj oczekiwany jest odpowiedni spinogambino kod bonusowy, ktory należy dodać podczas tworzenia profilu bądź w sekcji płatności. Dobrze jest często monitorować stronę, ponieważ pojawiające się tam spinogambino kody promocyjne bywają limitowane czasowo.

    Następnym punktem, ktory zyskał ogromnym zainteresowaniem, są spinogambino free spins. Darmowe obroty umożliwiają bezpłatną rozgrywkę na najczęściej wybieranych slotach, zapewniając prawdziwą szansę na pozyskanie gotowki. Jeżeli podczas zakładania konta masz do dyspozycji kod bonusowy do spinogambino, miej na uwadze, aby wklepać go precyzyjnie w odpowiednie pole. Poprawny kod bonusowy spinogambino jest często klucz do uruchomienia pakietu na start, ktory obejmuje nie tylko gotowkę, jednak konkretnie wyżej wymienione darmowe spiny.

    Pamiętaj rownież obserwować zakładki z promocjami, gdzie nieustannie występuje nowy spinogambino promo kod. Za pomocą nich możesz spodziewać się ponadprogramowe bonusy przy następnych depozytach. Dla użytkownikow, ktore wypatrują precyzyjnej informacji, jaką jest spinogambino no deposit bonus, serwis oferuje przejrzyste warunki regulaminowe. Zwroć uwagę, aby każdorazowo sprawdzać wymagania odnoszące się do obrotu, co da Ci w pełni cieszyć się wygranymi środkami. Spino Gambino to innowacyjne nastawienie do hazardu, gdzie właściwie wykorzystany kod promocyjny potrafi wyraźnie odmienić Twoją rozgrywkę. Sprawdź dostępne oferty w tej chwili i wstąp do grona zadowolonych graczy. [url=https://blogs.monash.edu/elearnaccfin/rss-subscribe-1/comment-page-11244/#comment-663090]Nowoczesne bonusy w Spino Gambino: jak odebrać darmowe spiny na https://spino-gambino.info.pl/bonus%5B/url%5D [url=http://cnd-cost.co.kr/bbs/board.php?bo_table=dx0403&wr_id=125405]Nowoczesne bonusy w[/url] 797a610

  6. chickenroad-fammodo

    Aves Sendero resulta la opción más para smartphones más buscados en España a lo largo de tiempos [url=https://chickenroad-es-53.vercel.app]Chicken Road Opiniones Español[/url] .

    Especialmente por parte de los fans de las aplicaciones de movimiento y las pruebas digitales.

    Si buscas datos sobre este entretenimiento, entre ellos opiniones reales, su fiabilidad, o su mecánica, este análisis te ayudará analizar qué es Polla Carrera y qué dicen los aficionados sobre este título.

    En comunidades como Comunidades de Juegos, los jugadores suelen exponer sus experiencias, desde perspectivas variadas, como negativas, lo que resulta importante al descargarlo.

    Varios jugadores en la región manifestado su contento con la simplicidad del juego, donde se fusionan componentes de pilotaje precisa y sistemas de desafío.

    Sin embargo, existen también valoraciones divergentes sobre los anuncios agresiva y los microtransacciones, a quienes consideran injustificadas.

    En foros donde se destacan Forocoches, es común encontrar debates sobre si el título merece confianza o si vale merece la pena probar, en particular cuando deseas una experiencia sin desembolsos.

    El juego ofrecido tanto en tablets así como en iOS, permite a los usuarios medirse en competiciones en sesiones con pruebas, así como retos que añaden emoción.

    Las opiniones de los hispanohablantes acostumbran resaltar la experiencia el juego brinda, aunque varios aficionados critican la falta de recursos de acceso libre premium.

    Si te preguntas qué es Polla Carrera o cómo funciona, tendrás la opción descubrir respuestas en foros y comunidades, en las cuales se comparte datos auténtica sobre este título.

    En conclusión, cuando buscas valoraciones sobre Chicken Road en la lengua hispana, resulta clave leer en múltiples perspectivas favorables y descontentos con el fin de crear una opinión objetiva.

    Espacios donde destacan Forocoches resultan perfectas y descubrir opiniones auténticas de otros jugadores en la región.

    Previamente a iniciar con este juego, valora si te motiva la mecánica del juego y si aceptas en gastar para upgrades.

    De este modo resultará posible decidir si este juego es el juego lo que necesitas.

  7. Эта статья подробно расскажет о процессе выздоровления, который включает в себя эмоциональную, физическую и психологическую реабилитацию. Мы обсуждаем значимость поддержки и наличие профессиональных программ. Читатели узнают, как строить новую жизнь и не возвращаться к старым привычкам.
    Не упусти важное! – [url=https://flatrenthq.ru/pages/kruglosutochnuyu-narkologicheskuyu-kliniku-ekaterinburg/]наркологическая клиника Екатеринбург цены[/url]

  8. spingrannycasinologin-adede

    Grasping the stipulations and policies of an digital casino site is fundamental for a safe and enjoyable session [url=https://spingrannycasinologin.net/terms-and-conditions]spin granny[/url] . At spingranny, we prioritize clarity and fairness, ensuring that all user who enters spin granny grasps exactly what to await when participating with our features. Our extensive terms and conditions document operates as a statutory framework that describes the rights and duties of all the host and the consumer. By reviewing these policies, you can guarantee that you are fully conforming with our operating standards, which helps in preserving a protected atmosphere for each person in our group.

    When you enroll at spingranny, you agree to observe firm guidelines about membership administration, birthdate verification, and ethical betting. We emphasize that spin granny is created for amusement goals, and our provisions plainly identify the conditions for user opening and privacy protection. It is critical to note that these policies are created to shield you from prohibited entry and to ensure that all fiscal transfers keep safe and transparent. We advise all our members to scan through these sections attentively before performing their opening deposit or claiming any promotional offers.

    Additionally, the rules provided on our hub address the nuances of reward playthrough prerequisites and banking standards. At spin granny, we work to ensure our rules accessible and straightforward to grasp so that you are rarely kept uncertain about your membership status. If you carry doubts about your eligibility or the particular standards regulating specific titles, the thorough guide on our terms and conditions page is your primary resource. By continuing aware about our internal guidelines, you can concentrate on the thrilling parts of betting while being certain that you are engaging on a platform that honors fairness. We urge all players to often check for revisions, as we regularly refine our procedures to provide a greater play adventure. Regardless of whether you are a fresh gamer or a loyal at spingranny, learning your entitlements is the initial step guiding a rewarding adventure.

  9. Provided you remain looking for an thrilling novel method to examine your rapid reflexes and strategic strategy, the chicken road crosvenor experience is exactly what you crave [url=https://chicken-road-logincasino.com/crosvenor]chicken road game crosvenor[/url] . As one of the highly trending attractions presently trending, the chicken road game crosvenor merges high-stakes tension plus straightforward, captivating mechanics which ensure gamers coming back for additional rounds. If you are a seasoned bettor or a relaxed fan regarding arcade-style fun, the chicken road casino crosvenor portal provides a smooth interface designed for quick navigation plus immediate fun.

    Users gravitate to the chicken road crosvenor casino since it features some novel twist regarding classic risk-based gaming. The goal remains straightforward yet demanding, needing cautious decision-making while you navigate your hero over some perilous track. Provided you were searching for a way to experience the chicken road crosvenor play rounds, you shall discover that the webpage seems fully optimized for both personal computers and cellular devices. This versatility confirms that you may engage with the chicken road slot crosvenor attributes at any time and anywhere you choose.

    For those individuals who seem beginners to the idea, the chicken road gambling game crosvenor remains excellent for understanding the ropes. It delivers some invigorating environment in which strategy joins luck. Numerous players start by reviewing the chicken road crosvenor free choices to grasp the rules prior to pledging towards real bets. After you feel relaxed with the way the route evolves, you can dive more into the complete version regarding the crosvenor chicken road challenge.

    The beauty regarding the chicken road crosvenor game resides in its ease. It does not demand difficult tutorials to begin, yet it provides plenty of depth to hold seasoned gamers engaged for several. By electing to gamble on this reputable platform, you ensure a protected and top-tier gaming session. Head to the hub now to initiate your quest, hone your plan, plus observe how deep you can reach it through the path within this addictive plus rapid digital odyssey.

  10. spinogambino-Assaulk

    Whenever seeking a leading web-based gambling portal, many enthusiasts are uncovering the distinctive experience presented by spinogambino [url=https://spinogambino-casinogame.com/about-us]spinogambino[/url] . The platform has quickly established itself as a destination for players who value diversity, reliability, and fun. Upon checking the main about us page at the site, visitors can obtain a better insight of the core mission and values that propel this gaming brand onward. At spino gambino, the main aim is to create a safe and captivating space where technology integrates top-tier fun.

    The team operating spinogambino is focused on selecting a vast selection of top-notch titles that cater to different tastes. Whether you are drawn to the newest digital machines or classic table games, the site is crafted with the player journey at the heart. Transparency is a foundation of the spino gambino philosophy. By providing thorough data into their functions, protection standards, and dedication to fair play, the site guarantees that any guest feels certain and secure while browsing the wide range of provided games.

    Innovation serves a significant part in the constant growth of the platform. Via perpetually revamping their library and integrating up-to-date features, spinogambino stays relevant in a swiftly shifting industry. Moreover, the assistance team at spino gambino is designed to deliver smooth guidance to every one of the users, guaranteeing that all queries are handled with skill and diligence. It is this focus on player contentment that differentiates the name from rival casinos now on the market.

    For those interested in the background, vision, and work ethics of the brand, the about us section acts as an essential tool. It emphasizes the strict protection steps in effect and the ethical play habits that the team supports every day. Selecting a betting site is a personal choice, and via clarity and steady service, spinogambino keeps on demonstrate why it is a favored choice for players worldwide. Visit the portal immediately to discover the path of virtual gambling and how this platform is redefining the standard for excellence in the area.

댓글 달기

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