Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.4 KB

spring-boot-3.2.x-changes.md

File metadata and controls

52 lines (36 loc) · 1.4 KB

Spring Boot 3.2.x Changes

Using JSPs in web applications need a few changes (details below)

  • Change 01: Use jakarta.servlet.jsp.jstl instead of glassfish-jstl
  • Change 02: Use jakarta.tags.core instead of http://java.sun.com/jsp/jstl/core as taglib
  • Change 03: Run mvn clean install to update libraries

Change 01: Use jakarta.servlet.jsp.jstl instead of glassfish-jstl

Spring Boot 3.2.x and greater

<dependency>
    <groupId>org.glassfish.web</groupId>
    <artifactId>jakarta.servlet.jsp.jstl</artifactId>
</dependency>

jakarta.servlet.jsp.jstl replaces glassfish-jstl (recommended for Spring Boot <= 3.1.x)

<dependency>
     <groupId>org.eclipse.jetty</groupId>
     <artifactId>glassfish-jstl</artifactId>
</dependency>

Change 02: Use jakarta.tags.core instead of http://java.sun.com/jsp/jstl/core as taglib

Spring Boot 3.2.X and greater

Use

<%@ taglib prefix="c" uri="jakarta.tags.core" %>

Spring Boot 3.1.X and lower

Use

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

Change 03: Run mvn clean install to update libraries

And then execute the mvn clean install command

Thank you!

in28minutes team (Maahi and Ranga)