change - 代码优化
parent
85e37a11e5
commit
46f7c06a9b
@ -0,0 +1,13 @@
|
|||||||
|
<component name="libraryTable">
|
||||||
|
<library name="Maven: com.roufid.tutorials:config:1.1">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://D:/开发环境/Maven/apache-maven-3.6.3/repository/com/roufid/tutorials/config/1.1/config-1.1.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC>
|
||||||
|
<root url="jar://D:/开发环境/Maven/apache-maven-3.6.3/repository/com/roufid/tutorials/config/1.1/config-1.1-javadoc.jar!/" />
|
||||||
|
</JAVADOC>
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://D:/开发环境/Maven/apache-maven-3.6.3/repository/com/roufid/tutorials/config/1.1/config-1.1-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.productionboard.config;
|
||||||
|
|
||||||
|
import com.roufid.tutorials.util.AInterceptor;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class InterceptorConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addInterceptors(InterceptorRegistry registry) {
|
||||||
|
registry.addInterceptor(new AInterceptor()).addPathPatterns("/**");
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue