본문 바로가기

My Project/02. Spring boot + JPA

(3)
3. View 환경 설정 - thymeleaf 템플릿 엔진 공식 사이트 www.thymeleaf.org/ Thymeleaf Integrations galore Eclipse, IntelliJ IDEA, Spring, Play, even the up-and-coming Model-View-Controller API for Java EE 8. Write Thymeleaf in your favourite tools, using your favourite web-development framework. Check out our Ecosystem to see more integrati www.thymeleaf.org 공식 튜토리얼 spring.io/guides/gs/serving-web-content/ Serving Web Content..
2. 라이브러리 살펴보기 gradle을 가지고 의존 관계를 셋팅하고 있다. 중요한 어떤 것들이 있는지 살펴보자 Terminal에 들어가서 cd 파일 위치로 이동하고 gradlew dependencies 입력해주면 다음과 같이 의존관계를 쭉쭉 적어준다. -> 너무 많아 찾기 힘들어서 인텔리제이 내에서 오른쪽 부분에 있는 Gradle로 보려 한다. 1. spring-boot-starter-web - spring-boot-starter-tomcat: 톰캣 (웹서버) - spring-webmvc: 스프링 웹 MVC 2. spring-boot-starter-thymeleaf: 타임리프 템플릿 엔진(View) 3. spring-boot-starter-data-jpa - spring-boot-starter-aop - spring-boot-s..
1. 기본 셋팅 start.spring.io/ 1. 위에 사이트 들어가서 이와같이 셋팅해주고 GENERATE를 눌러 알집 파일로 다운받아준다. 2. 다운 받은 알집파일을 압축 해제해서 인텔리제이 들어가 open -> build.gradle를 import 해준다 3. import 해주면 아래와 같이 기본 셋팅이 준비된다. 4. ctrl + alt + s -> Settings 셋팅창에 들어가 가장 먼저 (plugin -> Installed)에 lombok이 설치되어있는지 확인해주고 그다음, (Build, Execution, Deployment -> Compiler -> Annotation Processors)에 들어가 [ Enable annotaion processing ] 을 체크해준다. 5. 이렇게만 해주어도 금방 셋팅..