We’re upgrading our web application from Java 11 to Java 17.
With this upgrade, we’re updating our dependencies to ensure compatibility. The target versions are Spring Boot 3.2.4 and Spring 6.1.4.
To align with these changes, we’ve made adjustments to our Spring Security configuration. Specifically, we’ve transitioned to using FilterChain and RequestMatcher instead of WebSecurityConfigurerAdapter and AntMatcher.
Here are the dependencies we’re incorporating as part of the Java 17 upgrade:
Spring Boot 3.2.4 and Spring 6.1.4.
Below are the React JS versions being used in our application:
“react”: “^17.0.1”,
“react-dom”: “^17.0.1”,
“react-router-dom”: “^5.2.0”
Java version is JDK 11.
We are encountering an issue when upgrading to Java 17.
Currently, the application is functioning well. however, we’ve observed that when we refresh the browser page, a 404 error is returned.
For instance, if a user is on a specific module’s search page and decides to refresh the browser,
instead of redirecting to the home page, the browser remains on the same module’s search page, resulting in the 404 error.
We need a solution for the above problem. To resolve the 404 error when refreshing the page, it should route to the home page.
`
amani devarakonda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.