[英]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.