chore: upgrade Spring Boot 3.4.5 -> 4.0.0 with compiler and SecurityConfig fixes

- Move maven-compiler-plugin from pluginManagement to plugins for proper release 17 inheritance
- Remove deprecated UserDetailsServiceAutoConfiguration exclude (removed in Boot 4.0)
- Switch MyBatis-Plus to boot4-starter
This commit is contained in:
2026-04-28 18:39:54 +08:00
parent 30cd1ec51a
commit 6b3f1bdab5
4 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -67,7 +67,7 @@
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<artifactId>mybatis-plus-spring-boot4-starter</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
@@ -3,10 +3,9 @@ package cn.craftlabs.platform.api;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
@SpringBootApplication(exclude = UserDetailsServiceAutoConfiguration.class)
@SpringBootApplication
@EnableMethodSecurity
@MapperScan("cn.craftlabs.platform.api.persistence")
public class PlatformApplication {