웹프로젝트-1. -스프링부트 - 시작하기
스프링부트로 웹프로젝트를 만들어볼 생각입니다.
가장 처음엔 sts를 다운로드를 합니다.
https://spring.io/tools3/sts/all
Spring Tool Suite™ 3 (STS 3) Download page
Use one of the links below to download an all-in-one distribution for your platform. Choose either a native installer or simple archive, they contain equivalent functionality
spring.io
스프링 스타터 프로젝트를 시작합니다.
디렉토리 구조 static -html,img,css 등
templates - thymleaf 템플릿
application.properties - root-context.xml 같은 설정파일 key value 쌍으로 값사용가능
AUTO-RELOAD 를 설정해주기위해
pom.xml 에
org.springframework.boot
spring-boot-devtools
runtime
true
를 설정해주거나
application.properties 에
spring.devtools.livereload.enabled=true
spring.thymeleaf.cache=false //cache방지
를 설정해줍니다.
위놈이 스프링부트 애플리케이션을 실행하는 클래스입니다.
여기까지만 작업하고 앞으로 프로젝트를 위해 DB를 설정해주러 갑니다.