當(dāng)前位置:
首頁(yè) >
前端技术
> javascript
>内容正文
javascript
Spring boot配置文件两种方式
生活随笔
收集整理的這篇文章主要介紹了
Spring boot配置文件两种方式
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1@ConfigurationProperties(prefix = “author”)
application.properties
author.name=liuyuzhu
author.age=31
2 @ConfigurationProperties(prefix = “author”,locations ={“classpath”config/author.properties”})
src/config/author.properties
總結(jié)
以上是生活随笔為你收集整理的Spring boot配置文件两种方式的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: hdu 1335
- 下一篇: HDU OJ Matrix Swappi