[jstl]jstl + SpringBoot 연동시 에러

이능멸·2023년 6월 26일
1

SpringBoot

목록 보기
2/7

📌알아두기

jstl + SpringBoot 연동시 확인사항

❗ 페이지

❗ 에러내용

org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application

🎯 해결법

❗ bulid.gradle 파일 수정

//이 문구 대신
implementation 'javax.servlet.jsp.jstl:jstl' 

//세개의 문구를 추가한다.
implementation 'jakarta.servlet:jakarta.servlet-api' //스프링부트 3.0 이상
implementation 'jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api' //스프링부트 3.0 이상
implementation 'org.glassfish.web:jakarta.servlet.jsp.jstl' //스프링부트 3.0 이상

🧾 출처

https://www.inflearn.com/chats/716033/spring-3-0-version-jstl-%EC%9D%B4-%EC%9E%AC%EB%8C%80%EB%A1%9C-%EC%A0%81%EC%9A%A9%EB%90%98%EC%A7%80-%EC%95%8A%EC%9D%84%EB%95%8C

profile
안녕하세요

2개의 댓글

comment-user-thumbnail
2023년 12월 29일

감사합니다.

1개의 답글
Powered by GraphCDN, the GraphQL CDN