diff --git a/src/main/java/com/genersoft/iot/vmp/conf/security/RequestInterceptor.java b/src/main/java/com/genersoft/iot/vmp/conf/security/RequestInterceptor.java index ee1f0c07..36c0c6b9 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/security/RequestInterceptor.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/security/RequestInterceptor.java @@ -15,7 +15,7 @@ import javax.servlet.http.HttpServletResponse; public class RequestInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { - log.info("访问 {}",request.getRequestURI()); + log.info("{} 访问 {}",request.getRemoteHost(), request.getRequestURI()); return true; } } \ No newline at end of file diff --git a/src/main/java/com/genersoft/iot/vmp/conf/security/WebConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/security/WebConfig.java index b5e9bee5..e3a36235 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/security/WebConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/security/WebConfig.java @@ -15,7 +15,7 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addInterceptors(@NotNull InterceptorRegistry registry) { registry.addInterceptor(requestInterceptor) - .excludePathPatterns("/index/hook/**") + .excludePathPatterns("/index/hook/**","/static/**") .addPathPatterns("/**"); } } \ No newline at end of file