728x90
반응형
Spring Boot에 내장된 Tomcat은 JSP을 지원하지 않는다.
*gradle 사용
*자세한 설명 생략
▷ build.gradle
*의존성 추가
implementation 'javax.servlet:jstl'
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
▷ application.properties
*Spring Boot Jsp View 경로 설정
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
▷ Jsp 파일 생성
*위 설정한 경로와 맞게 생성
▷ 결과 확인
728x90
728x90
'▶ Back-End > Java' 카테고리의 다른 글
SpringBoot Maria DB + MyBatis 설정 (0) | 2022.12.06 |
---|---|
SpringBoot에서 MQTT Client + WebFlux 구축 (0) | 2022.12.02 |
JWE Example(nimbus) (0) | 2022.10.21 |
Create RSA Keypair(.pem) (0) | 2022.10.21 |
JWS Example(nimbus) (0) | 2022.10.20 |
댓글