v1.0.1 修复token失效时间无效问题,修复导出问题,优化log查询,优化sentinel配置

This commit is contained in:
zlt
2019-01-27 21:20:33 +08:00
parent ba4417263b
commit 3027277ccb
42 changed files with 107 additions and 150 deletions
@@ -3,6 +3,7 @@ package com.central.gateway.config;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
@@ -41,7 +42,7 @@ public class CorsConfigration {
registration.setFilter(corsFilter());
registration.addUrlPatterns("/*");
registration.setName("corsFilter");
registration.setOrder(Integer.MIN_VALUE);
registration.setOrder(Ordered.HIGHEST_PRECEDENCE);
return registration;
}
}