secvisogram/csaf-cms-backend

Deprecation warning after update to Spring Boot 3.1.0

mfd2007 opened this issue · 0 comments

/home/gast/Documents/csaf_workspace/git/csaf-cms-backend_secvisogram/src/main/java/de/bsi/secvisogram/csaf_cms_backend/config/SecurityConfig.java:29: warning: [removal] sessionManagement() in HttpSecurity has been deprecated and marked for removal
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
^
/home/gast/Documents/csaf_workspace/git/csaf-cms-backend_secvisogram/src/main/java/de/bsi/secvisogram/csaf_cms_backend/config/SecurityConfig.java:30: warning: [removal] and() in SecurityConfigurerAdapter has been deprecated and marked for removal
.and()
^
where B,O are type-variables:
B extends SecurityBuilder declared in class SecurityConfigurerAdapter
O extends Object declared in class SecurityConfigurerAdapter
/home/gast/Documents/csaf_workspace/git/csaf-cms-backend_secvisogram/src/main/java/de/bsi/secvisogram/csaf_cms_backend/config/SecurityConfig.java:31: warning: [removal] oauth2ResourceServer() in HttpSecurity has been deprecated and marked for removal
.oauth2ResourceServer().jwt().jwtAuthenticationConverter(jwtAuthenticationConverter());
^
/home/gast/Documents/csaf_workspace/git/csaf-cms-backend_secvisogram/src/main/java/de/bsi/secvisogram/csaf_cms_backend/config/SecurityConfig.java:31: warning: [removal] jwt() in OAuth2ResourceServerConfigurer has been deprecated and marked for removal
.oauth2ResourceServer().jwt().jwtAuthenticationConverter(jwtAuthenticationConverter());
^
where H is a type-variable:
H extends HttpSecurityBuilder declared in class OAuth2ResourceServerConfigurer
/home/gast/Documents/csaf_workspace/git/csaf-cms-backend_secvisogram/src/main/java/de/bsi/secvisogram/csaf_cms_backend/config/SecurityConfig.java:39: warning: [removal] csrf() in HttpSecurity has been deprecated and marked for removal
http.csrf().disable();