application.properties文件
spring.mvc.static-path-pattern=/static/** //定义访问模式
resourcePath=D:/upload
spring.http.multipart.locations=${resourcePath}
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,
classpath:/static/, classpath:/public/, file:${spring.http.multipart.locations}