springboot project to obtain a static file server

Turn: https://blog.csdn.net/Thinkingcao/article/details/86613066

 

Springboot project

  Files uploaded to the server (for example, after the linux, how to make the front access directly link to the file)

 

Configuration in the configuration file of application.yml springboot

spring:
  mvc:
   static-path-pattern: /images/**
  resources:
   static-locations: file:C:/workspace/file/

 

Start project to ip + port + images + access by file name

Guess you like

Origin www.cnblogs.com/yongan140621/p/11040123.html