Skip to content

Commit

Permalink
Update ImageConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
LinMoQC authored Feb 20, 2024
1 parent 34b699b commit 2493a80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
public class ImageConfig implements WebMvcConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/upload/**").addResourceLocations("file:C:\\Users\\Karen\\Desktop\\前端\\React\\LinMo\\server\\src\\main\\resources\\static\\upload\\");
registry.addResourceHandler("/upload/**").addResourceLocations("xxx"); //改成你的绝对上传路径
}
}

0 comments on commit 2493a80

Please sign in to comment.