build: 升级依赖版本

This commit is contained in:
xiongxiaoyang
2023-01-06 13:29:42 +08:00
parent 4b3bcff05f
commit 0ae939da16
4 changed files with 15 additions and 44 deletions

View File

@ -43,8 +43,8 @@ public class NovelApplication {
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http.csrf().disable()
.requestMatcher(EndpointRequest.toAnyEndpoint())
.authorizeRequests(requests -> requests.anyRequest().hasRole("ENDPOINT_ADMIN"));
.securityMatcher(EndpointRequest.toAnyEndpoint())
.authorizeHttpRequests(requests -> requests.anyRequest().hasRole("ENDPOINT_ADMIN"));
http.httpBasic();
return http.build();
}

View File

@ -1,15 +0,0 @@
package org.springframework.core;
import java.io.IOException;
/**
* 兼容 mybatis-plus 3.5.1
* mybatis-plus 的 MybatisSqlSessionFactoryBean 中使用到了这个异常
* Spring 6 开始移除了该异常
*
* @author xiongxiaoyang
* @date 2022/5/12
*/
public class NestedIOException extends IOException {
}

View File

@ -82,11 +82,12 @@ spring:
--- #---------------------中间件配置---------------------------
spring:
# Redis 配置
redis:
host: 127.0.0.1
port: 6379
password: 123456
data:
# Redis 配置
redis:
host: 127.0.0.1
port: 6379
password: 123456
# Elasticsearch 配置
elasticsearch: