配置加载资源
@Configuration
public class WebMvcConfigure implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static/**")
.addResourceLocations("file:E:/benke/lx/travel/src/main/resources/static/")
.addResourceLocations(ResourceUtils.CLASSPATH_URL_PREFIX+ "/static/");
}