mirror of
https://github.com/201206030/novel.git
synced 2025-07-17 01:36:37 +00:00
build: 升级依赖版本
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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 {
|
||||
|
||||
}
|
@ -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:
|
||||
|
Reference in New Issue
Block a user