摘要: Spring常用注解 @Component、@Controler、@Service、@Repository 使用在类上用于实例化Bean @Configuration 指定当前类是一个 Spring配置类,当创建容器时会从该类上加载注解 @ComponentScan 用于指定 Spring在初始化容 阅读全文
posted @ 2025-05-10 23:33 雨中遐想 阅读(27) 评论(0) 推荐(0)