SpringBoot怎么配置类编写

1、编写properties文件

2、编写配置类

3、编译项目将target\classes\META-INF\spring-configuration-metadata.json文件copy到resources\META-INF目录

这样以达到配置文件中自动提示配置项

4、配置文件中配置

5、其他类中可自动注入使用

以上就是SpringBoot怎么配置类编写的详细内容,更多请关注www.sxiaw.com其它相关文章!