新增静态过滤文件

This commit is contained in:
wenc000 2020-03-14 22:43:09 +08:00
parent 08fe7a22fb
commit b59cbaddf3

View File

@ -61,6 +61,9 @@ public class WechatFilter implements Filter {
* 微信路由静态资源
*/
private static final String WECHAT_ROUTE_STATIC_URL = "/**/wechatroute/static/**";
private static final String WECHAT_ROUTE_CSS_URL = "/**/wechatroute/css/**";
private static final String WECHAT_ROUTE_JS_URL = "/**/wechatroute/js/**";
private static final String WECHAT_ROUTE_IMAGES_URL = "/**/wechatroute/images/**";
/**
* 上传文件
*/
@ -88,7 +91,10 @@ public class WechatFilter implements Filter {
|| antPathMatcher.match(WECHAT_API_RELEASE_URL, requestUri)
|| antPathMatcher.match(WECHAT_ROUTE_RELEASE_URL, requestUri)
|| antPathMatcher.match(WECHAT_ROUTE_STATIC_URL, requestUri)
|| antPathMatcher.match(WECHAT_ROUTE_HYBRID_URL, requestUri);
|| antPathMatcher.match(WECHAT_ROUTE_HYBRID_URL, requestUri)
|| antPathMatcher.match(WECHAT_ROUTE_CSS_URL, requestUri)
|| antPathMatcher.match(WECHAT_ROUTE_JS_URL, requestUri)
|| antPathMatcher.match(WECHAT_ROUTE_IMAGES_URL, requestUri);
if (isRelease) {
filterChain.doFilter(request, response);
return;