springboot访问图片本地路径并映射成url
1.配置文件配置
=========================== 图片代理 ============================
mvc:
static-path-pattern: /bc/images/**
resources:
static-locations: file:E:/
2.如何使用
访问 http://IP:PORT/bc/images/image_name.jpg
前端展示: <img src="/bc/images/image_name.jpg">