springboot中配置addResourceHandler和addResourceLocations,使得能夠從磁盤中讀取圖片、視頻、音頻等

磁盤目錄linux WebMvcConfig的代碼數據庫 //對靜態資源的配置 @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { String os = System.getProperty("os.name"); if (os.toLowerCase().startsWith
相關文章
相關標籤/搜索