|  | @ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.context.annotation.Configuration;
 | 
	
		
			
				|  |  | import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
 | 
	
		
			
				|  |  | import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
 | 
	
		
			
				|  |  | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
 | 
	
		
			
				|  |  | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
	
		
			
				|  | @ -28,13 +29,19 @@ public class WebMvcConfig extends WebMvcConfigurerAdapter {
 | 
	
		
			
				|  |  |         super.addInterceptors(registry);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 配置路径完全匹配
 | 
	
		
			
				|  |  |      * @param configurer
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  | //    /**
 | 
	
		
			
				|  |  | //     * 配置路径完全匹配
 | 
	
		
			
				|  |  | //     *
 | 
	
		
			
				|  |  | //     * @param configurer
 | 
	
		
			
				|  |  | //     */
 | 
	
		
			
				|  |  | //    @Override
 | 
	
		
			
				|  |  | //    public void configurePathMatch(PathMatchConfigurer configurer) {
 | 
	
		
			
				|  |  | //        configurer.setUseSuffixPatternMatch(false)
 | 
	
		
			
				|  |  | //                .setUseTrailingSlashMatch(true);
 | 
	
		
			
				|  |  | //    }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Override
 | 
	
		
			
				|  |  |     public void configurePathMatch(PathMatchConfigurer configurer) {
 | 
	
		
			
				|  |  |         configurer.setUseSuffixPatternMatch(false)
 | 
	
		
			
				|  |  |                 .setUseTrailingSlashMatch(true);
 | 
	
		
			
				|  |  |     public void addResourceHandlers(ResourceHandlerRegistry registry) {
 | 
	
		
			
				|  |  |         registry.addResourceHandler("/front/**").addResourceLocations("classpath:/webapp/front/");
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | }
 |