⬆️ 依赖升级 | closed #2394 up spring boot admin 2.4.0 |
closed #2395 up hutool 5.5.8
This commit is contained in:
1 parent
b1400f81a1
commit
1a2467432d
4 files changed
+13
-8
No files matched your search
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.alibaba.nacos.config;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
import com.alibaba.nacos.core.code.ControllerMethodsCache;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -25,8 +27,6 @@ import org.springframework.web.cors.CorsConfiguration;
|
||||
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
|
||||
import org.springframework.web.filter.CorsFilter;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
/**
|
||||
* @author yshen
|
||||
* @author nkorange
|
||||
@@ -52,7 +52,7 @@ public class ConsoleConfig {
|
||||
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
|
||||
CorsConfiguration config = new CorsConfiguration();
|
||||
config.setAllowCredentials(true);
|
||||
config.addAllowedOrigin("*");
|
||||
config.addAllowedOriginPattern("*");
|
||||
config.addAllowedHeader("*");
|
||||
config.setMaxAge(18000L);
|
||||
config.addAllowedMethod("*");
|
||||
|
||||
@@ -36,6 +36,10 @@ spring:
|
||||
useAddressServer: true
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: '*'
|
||||
metrics:
|
||||
export:
|
||||
influx:
|
||||
@@ -45,5 +49,5 @@ management:
|
||||
|
||||
# 屏蔽scanner warning 日志
|
||||
logging:
|
||||
level:
|
||||
org.apache.tomcat.util.scan.StandardJarScanner: ERROR
|
||||
level:
|
||||
org.apache.tomcat.util.scan.StandardJarScanner: ERROR
|
||||
+2
-1
@@ -51,8 +51,9 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
|
||||
.headers().frameOptions().disable()
|
||||
.and().authorizeRequests()
|
||||
.antMatchers(adminContextPath + "/assets/**"
|
||||
, adminContextPath + "/login"
|
||||
,adminContextPath + "/login"
|
||||
, adminContextPath + "/actuator/**"
|
||||
, adminContextPath + "/instances/**"
|
||||
, adminContextPath + "/redis/info"
|
||||
).permitAll()
|
||||
.anyRequest().authenticated()
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
<maven.compiler.version>3.8.1</maven.compiler.version>
|
||||
<spring.checkstyle.version>0.0.23</spring.checkstyle.version>
|
||||
<git.commit.version>2.2.5</git.commit.version>
|
||||
<spring-boot-admin.version>2.3.1</spring-boot-admin.version>
|
||||
<hutool.version>5.5.7</hutool.version>
|
||||
<spring-boot-admin.version>2.4.0</spring-boot-admin.version>
|
||||
<hutool.version>5.5.8</hutool.version>
|
||||
<captcha.version>1.2.7</captcha.version>
|
||||
<swagger.fox.version>3.0.0</swagger.fox.version>
|
||||
<knife4j.version>3.0.2</knife4j.version>
|
||||
|
||||
Reference in new issue
Block a user