springboot project url direct access to project images

1, springboot project wants to directly link project to directly access the picture is the need to re-configure the appropriate path in the configuration file, configuration is as follows

2, the configuration described above, the file is stored in resources ---> static directory

3, can be configured directly via HTTP: // localhost: 8080 / oneimg.png , you can directly visit

Published 27 original articles · won praise 12 · views 50000 +

Guess you like

Origin blog.csdn.net/baidu_38226233/article/details/90675603