@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
}
put template under static/excel/xxx.xxx
access:// excel/xxx.xlsx
springboot add resource download .
最新推荐文章于 2023-10-19 22:01:56 发布