1,springboot项目中想要直接通过项目链接直接访问图片是需要再配置文件中配置相应路径,配置如下
2,配置如上后,文件存放在resources--->static目录下
3,配置好后可直接通过http://localhost:8080/oneimg.png,就可以直接访问了
1,springboot项目中想要直接通过项目链接直接访问图片是需要再配置文件中配置相应路径,配置如下
2,配置如上后,文件存放在resources--->static目录下
3,配置好后可直接通过http://localhost:8080/oneimg.png,就可以直接访问了