springboot访问服务器本地静态文件的方法
摘要:一、继承WebMvcConfigurerAdapter,重写addResourceHandlers,在registry里面配置访问路径和映射到的服务器本地路径。 import org.springframework.context.annotation.Configuration; import o
阅读全文
posted @ 2019-12-06 15:11
posted @ 2019-12-06 15:11
posted @ 2019-10-15 15:55
posted @ 2019-08-20 17:36