본문 바로가기
오류 처리/스프링부트

스프링 부트 버전과 jstl 버전 문제

by dal_been 2023. 5. 8.
728x90

스프링부트 3.0.0이상을 쓰게되니 jstl 문제가 생김

 

<!-- https://mvnrepository.com에서 jstl 검색 -->
<dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
</dependency>

스프링부트는jakarata?를 사용한다는 점...

 

그래서! 이걸로 추가해야함

<!-- https://mvnrepository.com/artifact/jakarta.servlet/jakarta.servlet-api -->

<dependency>

<groupId>
jakarta.servlet
</groupId>

<artifactId>
jakarta.servlet-api
</artifactId>

<version>
6.0.0
</version>

<scope>
provided
</scope>

</dependency>

<!-- https://mvnrepository.com/artifact/jakarta.servlet.jsp.jstl/jakarta.servlet.jsp.jstl-api -->

<dependency>

<groupId>
jakarta.servlet.jsp.jstl
</groupId>

<artifactId>
jakarta.servlet.jsp.jstl-api
</artifactId>

<version>
3.0.0
</version>

</dependency>

<!-- https://mvnrepository.com/artifact/org.glassfish.web/jakarta.servlet.jsp.jstl -->

<dependency>

<groupId>
org.glassfish.web
</groupId>

<artifactId>
jakarta.servlet.jsp.jstl
</artifactId>

<version>
3.0.1
</version>

</dependency>

https://islet4you.tistory.com/entry/SpringBoot-SpringBoot-30-%EC%97%90%EC%84%9C-Jsp-Jstl-%EC%84%B8%ED%8C%85-%EA%B7%B8%EB%A6%AC%EA%B3%A0-Servlet-%EB%B3%80%EA%B2%BD%EC%A0%90