springboot下自定义yml文件

1.新建yml文件,如application-test.yml 2.插入数据 3.自定义配置类 @Component//使用@Configuration也能够 @PropertySource(value = “classpath:application-test.yml”)//配置文件路径 @ConfigurationProperties(prefix = “tx2config”) public
相关文章
相关标签/搜索