我正在寻找一种从注释中跟踪弹簧配置源的方法。
例如,在 Bean 下面是任何方式,例如单击my-components-service.books.configurations并重定向或列出包含将在运行时注入的配置的 yaml 文件?
@Bean
@ConfigurationProperties(prefix = "my-components-service.books.configurations")
Map<ComponentType, BooksConfiguration> booksConfiguration() {
return new HashMap<>();
}
Run Code Online (Sandbox Code Playgroud)