mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-15 06:29:01 +08:00
⬆️ 依赖升级 | 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
|
||||
Reference in new issue
Block a user