personalweb

archived
git clone git://git.wimdupont.com/personalweb.git
Log | Files | Refs | LICENSE

commit b4abd3d6986f09446304af12d65654be120ca309
parent e43b1727d2144167020701be10481db8e0e29332
Author: Wim Dupont <wim@wimdupont.com>
Date:   Mon, 23 May 2022 20:47:16 +0200

version bump


Former-commit-id: a79c5bdd0b58ddfa4582b76cac83651c568a4d91
Diffstat:
Mpom.xml | 9+++++++--
Msrc/main/java/com/wimdupont/personalweb/config/SecurityConfig.java | 11++++++-----
2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml @@ -5,7 +5,7 @@ <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>2.6.6</version> + <version>2.7.0</version> </parent> <groupId>com.wimdupont</groupId> <artifactId>personalweb</artifactId> @@ -18,6 +18,7 @@ <asciidoctorj.version>2.5.3</asciidoctorj.version> <rome.version>1.0</rome.version> <rome.rometools.version>1.18.0</rome.rometools.version> + <flyway.mysql.version>8.5.11</flyway.mysql.version> </properties> <dependencies> @@ -84,6 +85,11 @@ <artifactId>flyway-core</artifactId> </dependency> <dependency> + <groupId>org.flywaydb</groupId> + <artifactId>flyway-mysql</artifactId> + <version>${flyway.mysql.version}</version> + </dependency> + <dependency> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctorj</artifactId> <version>${asciidoctorj.version}</version> @@ -114,7 +120,6 @@ <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> - <version>8.5.7</version> <configuration> <url>jdbc:mariadb://localhost:3306/sxcyweb</url> <!-- Run mvn flwyway plugin commands with following parameters: --> diff --git a/src/main/java/com/wimdupont/personalweb/config/SecurityConfig.java b/src/main/java/com/wimdupont/personalweb/config/SecurityConfig.java @@ -1,17 +1,18 @@ package com.wimdupont.personalweb.config; +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.EnableWebSecurity; -import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; +import org.springframework.security.web.SecurityFilterChain; @Configuration @EnableWebSecurity @SuppressWarnings("unused") -public class SecurityConfig extends WebSecurityConfigurerAdapter { +public class SecurityConfig { - @Override - protected void configure(HttpSecurity http) throws Exception { - http.formLogin().disable(); + @Bean + public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { + return http.formLogin().disable().build(); } }