springBoot配置使用@Component注解,@Configuration注解等注入属性

    技术2022-07-12  81

    使用@value注入属性

     

    使用@ConfigurationProperties(prefix=""),prefix表示yml或者properties文件以什么开头

    比如

     

    Processed: 0.020, SQL: 9