首页>代码>spring+spring mvc+mybatis+spring boot自定义查询条件实现excel报表文件导出生成>/ygq-report/src/main/java/com/ygq/report/config/WebMvcConfig.java
//package com.ygq.report.config; //import org.springframework.context.annotation.Configuration; //import org.springframework.util.ResourceUtils; //import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; //import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; // //@Configuration //public class WebMvcConfig extends WebMvcConfigurationSupport { // // @Override // public void addResourceHandlers(ResourceHandlerRegistry registry) { // // if(!registry.hasMappingForPattern("/static/**")){ // registry.addResourceHandler("/static/**").addResourceLocations(ResourceUtils.CLASSPATH_URL_PREFIX+"/static/"); // } // super.addResourceHandlers(registry); // } // /** // * 刷新xml // * @return // */ //// @Bean SqlSessionCache sqlSessionCache(){ //// return new SqlSessionCache(); //// } //}