Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Reload the maven project (this may take some time)

  • Clean the project

  • Package the project and you should see exceptions for not able to find javax.persistence.* package

  • Replace javax.persistence package with jakarta.persistence package on all the files.

  • If there is security implemented javax.servlet package with jakarta.servlet package on all the files.

  • You may also see an error for the below code

...

Code Block
languagejava
spring.flyway.clean-disabled=false
  • Security Implementation Updates

    • The respective SecurityConfig (Refer to ZeusSecurityConfig in api-gateway service) have to be updated as below

      • Remove the WebSecurityConfigurerAdapter implementation (This is removed in Spring Boot 3.0)

      • The configure method has to be updated with return type “SecurityFilterChain”, the name can also be updated as “filterChain”

      • authorizeRequests method has to be updated with authorizeHttpRequests

      • antMatchers method as to be replaced with requestMatchers

      • Add AuthenticationProvider instance and add it to the httpSecurity instance

      • return the httpSecurity

      • If BeanConfig class is not present create one and add the Authentication Provider Bean (Refer to BeanConfig in api-gateway service for a sample)

  • Clean the project

  • Package the project. If you have javax.validation.* package you will see exceptions for not able to find it.

  • Replace javax.persistence package with jakarta.validation package on all the files.

  • Clean the project

  • Package the project.

  • If the build was successful, run the service to check if it starts without any exceptions.

  • If application starts, commit the code to github.