4 changed files with 25 additions and 5 deletions
@ -0,0 +1,18 @@ |
|||||
|
package com.userinformation.backend.config; |
||||
|
|
||||
|
import org.springframework.context.annotation.Configuration; |
||||
|
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; |
||||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; |
||||
|
|
||||
|
/** |
||||
|
* @describe: 虚拟目录配置 |
||||
|
* @author: xiaowuler |
||||
|
* @createTime: 2021-12-03 09:33 |
||||
|
*/ |
||||
|
@Configuration |
||||
|
public class WebMvcConfig extends WebMvcConfigurerAdapter { |
||||
|
@Override |
||||
|
public void addResourceHandlers(ResourceHandlerRegistry registry) { |
||||
|
registry.addResourceHandler("/product/**").addResourceLocations("file:D:\\Deployments\\LamanRadar\\product\\"); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue