Spring - View환경설정

Yuri Lee·2020년 9월 25일
0

스프링 부트는 스프링 생태계 자체를 감싸서 굉장히 편리하게 사용하도록 한다. 스프링은 어마어마하기 때문에 필요한 것을 찾는 개념으로 익히는 게 좋다

7.1.6. Welcome Page
Spring Boot supports both static and templated welcome pages. It first looks for an index.html file in the configured static content locations. If one is not found, it then looks for an index template. If either is found, it is automatically used as the welcome page of the application.

정적 파일.
내가 적어놓은 파일을 그냥 그대로 던져준 것이다.

근데 템플릿 엔진을 사용하면 루프를 넣거나 등등의 방법으로 사용할 수 있다.

https://www.thymeleaf.org/

웹 애플리케이션에서 첫번째 진입점이 컨트롤러이다.

[Tip!]
IntelliJ에서 Ctrl + Alt + L 을 누르면, 자동 정렬을 해준다


이 글은 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 인프런 강좌를 바탕으로 정리한 내용입니다.

profile
Step by step goes a long way ✨

0개의 댓글