一、系統啟動後注入配置
需要在ApplicationContext中注冊配置
用以下方式取值
email.yml檔案配置如下:
So, you can put below property on external file and give the file through command line option --config.location=/some/path/app.properties
一、系統啟動後注入配置
需要在ApplicationContext中注冊配置
用以下方式取值
email.yml檔案配置如下:
So, you can put below property on external file and give the file through command line option --config.location=/some/path/app.properties