본문 바로가기

Spring52

Spring Boot 버전에 맞는 Dependency 버전을 찾는 방법 Spring Boot에서는 각 버전별로 호환이 잘 되는 Dependency의 버전을 정리해놓고 있다 호환이 잘 되는 Dependency의 버전을 확인하는 방법은 아래와 같다 먼저, 스프링 공식홈페이지에 접속한다 https://spring.io/ Spring makes Java simple. Level up your Java code and explore what Spring can do for you. spring.io 홈페이지의 상단 메뉴바의 Projects -> Spring Boot를 클릭하여 이동한다 본인이 사용중인 Spring Boot 버전의 Reference Doc.을 클릭하여 이동한다 페이지 맨 아래의 'Dependency Versions' 클릭하여 이동 Dependency Versions에서.. 2022. 8. 14.
H2 DBMS 파일모드 사용 시 DB파일 경로 H2 DBMS 파일모드 사용 시, DB파일이 어느 위치에 생성되는지 알기 위해 정리한다. 아래 글은 H2 DBMS 매뉴얼에 있는 내용이다 Where are the Database Files Stored? When using database URLs like jdbc:h2:~/test, the database is stored in the user directory. For Windows, this is usually C:\Documents and Settings\ or C:\Users\. If the base directory is not set (as in jdbc:h2:./test), the database files are stored in the directory where the applicat.. 2022. 8. 13.
[환경세팅] ② View Template Engine(Thymeleaf) 환경세팅 기존 Spring MVC 기반 프로젝트에서는 JSP 템플릿 엔진을 사용했었다 Spring Boot에서는 Thymeleaf를 공식적으로 지원하고 있으므로 이번 글에서는 Thymeleaf를 사용하도록 하겠다 아래 사진은 build.gradle 파일의 일부이다 아래와 같이 Thymeleaf관련 환경세팅은 설정 한 줄이면 충분하다 만약, Spring Initializr 페이지에서 Dependency를 추가했다면 넘어가도 무방하다 위와 같이 환경세팅이 완료되었다면 컨트롤러를 만들어서 Thymeleaf가 제대로 동작하는지 테스트 해보겠다 일단, 아래와 같이 HelloContoller라는 클래스를 만들자 HelloContoller에 아래와 같이 코드를 작성한다 package jpabook.jpashop; import.. 2022. 8. 9.
템플릿 엔진 종류 https://gmlwjd9405.github.io/2018/12/21/template-engine.html [Template Engine] 템플릿 엔진(Template Engine)이란 - Heee's Development Blog Step by step goes a long way. gmlwjd9405.github.io 2022. 8. 9.