diff options
author | Thomas <> | 2023-08-31 12:04:23 +0200 |
---|---|---|
committer | Thomas <> | 2023-08-31 12:04:23 +0200 |
commit | 5acc09000c59c93510567e88cb701919122dc5b2 (patch) | |
tree | dbb36493b787f96804369753e4dde361f2725ff3 /eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf | |
parent | 34d55551acd6c49c34cf1a8d7759558eb92fd617 (diff) | |
download | EAAF-Components-5acc09000c59c93510567e88cb701919122dc5b2.tar.gz EAAF-Components-5acc09000c59c93510567e88cb701919122dc5b2.tar.bz2 EAAF-Components-5acc09000c59c93510567e88cb701919122dc5b2.zip |
feat(core): starting switch from Spring5/JAVA11 to Spring6/Java17
IMPORTEND: Is not finished because that contains a braking change, like
javax.servlet.* --> jakarta.servket.*
as one example and we miss some third-party libs that use the new API.
# Conflicts:
# eaaf_core_api/checks/spotbugs-exclude.xml
# eaaf_core_api/pom.xml
# eaaf_core_utils/checks/spotbugs-exclude.xml
# pom.xml
Diffstat (limited to 'eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf')
-rw-r--r-- | eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java b/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java index b5054b70..2242b428 100644 --- a/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java +++ b/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java @@ -1,15 +1,16 @@ package at.gv.egiz.eaaf.utils.springboot.test.dummy; +import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; -import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; +import org.springframework.security.web.SecurityFilterChain; @Configuration -public class SpringSecurityConfiguration extends WebSecurityConfigurerAdapter { +public class SpringSecurityConfiguration { - @Override - public void configure(HttpSecurity http) throws Exception { - http.csrf().disable(); + @Bean + SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { + return http.csrf((csfr) -> csfr.disable()).build(); } |