简体   繁体   English

是否为spring @propertySource注释创建了任何bean?

[英]Is there any bean created for spring @propertySource annotation

I have used spring @propertysource annotation to load properties file in my spring boot project . 我已经使用spring @propertysource批注在spring boot项目中加载属性文件。 I just need to know is there any bean created for this annotation when application gets started 我只需要知道在应用程序启动时是否为该注释创建了任何bean。

@PropertySource annotation is used to let spring-boot know the location of the properties required by your application. @PropertySource批注用于让spring-boot知道应用程序所需属性的位置。 It will not create any bean. 它不会创建任何bean。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过@propertysource批注和使用PropertySourcesHolderConfigure bean在春季加载属性文件之间有什么区别? - What is the difference between loading properties files in spring through @propertysource annotation and by using PropertySourcesHolderConfigure bean Spring未在JavaConfig中拾取的Bean上的@PropertySource - @PropertySource on a bean not picked up by Spring in JavaConfig 注册 ResourceBundleMessageSource bean 时,Spring 4 @PropertySource 不起作用 - Spring 4 @PropertySource not working when ResourceBundleMessageSource bean is registered 引入 Spring Batch @EnableBatchProcessing 注解后未创建 DataSourceTransactionManager bean - DataSourceTransactionManager bean not created after Introducing Spring Batch @EnableBatchProcessing Annotation 如何创建依赖于Spring Bean的自定义Spring PropertySource - How to create a custom Spring PropertySource that depends on a Spring Bean Spring @Component和@Bean批注 - Spring @Component & @Bean annotation 为什么我的Spring PropertySource注释在编码属性上失败? - Why does my Spring PropertySource annotation fail on the encoding attribute? 如何在 Java Spring @PropertySource 注释中将字符串更改为小写 - How to change string to lower case inside Java Spring @PropertySource annotation 如何为 Spring 的 @PropertySource 注释传递命令行参数? - How to pass command line argument for Spring's @PropertySource annotation? 使用@PropertySource 注释和文件的 Spring Boot 外部配置 - Spring Boot external configuration using @PropertySource annotation with file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM