阅读背景:

【spring boot】3.spring boot项目,绑定资源文件为bean并使用

来源:互联网 

整个例子的结构目录如下:

 

1.自定义一个资源文件

com.sxd.name = 申九日木
com.sxd.secret = ${random.value}
com.sxd.intValue = ${random.int}
com.sxd.uuid = ${random.uuid}
com.sxd.age= ${random.int(100)}

com.sxd.resume = 简历:①姓名:${com.sxd.name}   ②年龄:${com.sxd.age}com.



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: