SpringBoot 讀取application.properties中的配置信息,比較簡單,方法以下:javascript
讀取某個配置好的路徑:html
配置:java
#upload file path fileupload.path=D:/webapp files
代碼中:web
@Value("${fileupload.path}") private String fileUploadPath;