非常简单,首先配置yml文件
server:
port: 8080
servlet:
context-path: /demo/
picture:
# 图片访问路径
show: /show/**
# 本地映射,图片真实存放路径
up-path: D:/MyPhoto/picture/
然后创建WebConfig实现WebMvcConfigurer
import org.springframework.beans.factory.<
非常简单,首先配置yml文件
server:
port: 8080
servlet:
context-path: /demo/
picture:
# 图片访问路径
show: /show/**
# 本地映射,图片真实存放路径
up-path: D:/MyPhoto/picture/
然后创建WebConfig实现WebMvcConfigurer
import org.springframework.beans.factory.<