文件application.proprities, application.yml, bootstrap.properties, bootstrap.yml
- 自定义属性 @Value, 类上加入@Configuration
- 自定义配置类 @ConfigurationProperties(prefix="task")
- 参数间引用 -- 占位符 ${}
- 加载指定的配置文件 @PropertySource("classpath: task.properties")
文件application.proprities, application.yml, bootstrap.properties, bootstrap.yml
本文标题:4. spring boot的配置
本文链接:https://www.haomeiwen.com/subject/ihsmdctx.html
网友评论