SpringBoot注解

12/31/2023 SpringBoot

目录


参考:

  • 链接1:

# SpringBoot注解


# @AutoConfigureAfter (opens new window)

作用:指示该配置类应该在指定的其他配置类之后自动配置。是一种用于控制自动配置的顺序的机制。

# @ConfigurationProperties (opens new window)

作用:将prefix属性指定的前缀配置项的值绑定到JavaBean上

# @EnableConfigurationProperties (opens new window)

作用:根据导入的配置类信息进一步构造需要Bean信息

上次更新时间: 9/25/2024, 9:17:45 AM