- Code compiled with no errors or warnings
- found disabled/broken test - CashCardApplicationTests#shouldReturnACashCardWhenDataIsSaved
- fixed broken test
Result: code compiles without errors or warnings and all tests pass
- Compilation error
- deprecated method signature not found
- Reference: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.4-Release-Notes#deprecations-in-spring-boot-24
- remove hardcoded
spring-data-jdbc
version
- remove hardcoded
lombok
version - moved hardcoded
itextpdf
version to
- Fix deprecated Application Event listener
Result: code compiles without errors or warnings
- Upgrade Spring Security to
5.8.5
- Spring Security deprecations
- [INFO] /course-spring-boot-2-5-upgrade-code/src/main/java/example/cashcard/SecurityConfig.java: /course-spring-boot-2-5-upgrade-code/src/main/java/example/cashcard/SecurityConfig.java uses or overrides a deprecated API.
- [INFO] /course-spring-boot-2-5-upgrade-code/src/main/java/example/cashcard/SecurityConfig.java
- Reference: https://docs.spring.io/spring-security/reference/5.8/migration/index.html
- Replace
WebSecurityConfigurerAdapter
super class withSecurityFilterChain
bean definition - Replace
antMatcher
withrequestMatcher
builder method - Replace
new Pbkdf2PasswordEncoder
with static factory method for Spring Security 5.8 - Add
@Configuration
annotation, which is removed in Spring Security 6.0
Result: code compiles without errors or warnings
Result: code compiles without errors or warnings and all tests pass
Remove explicit version ofaspectj-core
- Remove explicit
aspectj-core
dependency- It's managed by
spring-boot-starter-test
- It's managed by
Result: code compiles without errors or warnings and all tests pass
- Property
spring.mvc.locale
is deprecated- replaced by
spring.web.locale
- replaced by