springboot中配置addResourceHandler和addResourceLocations,使得能够从磁盘中读取图片、视频、音频等

磁盘目录linux WebMvcConfig的代码数据库 //对静态资源的配置 @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { String os = System.getProperty("os.name"); if (os.toLowerCase().startsWith
相关文章
相关标签/搜索