Volcanno

Patience and Persistence/Now on Never End

Home Archives About Route
2020-02-23
java►spring

componentScan注解

Configures component scanning directives for use with @{@link Configuration} classes.

在使用Configuration注解时,可以同时使用这个指令配置组件扫描.作用跟xml文件里的<context:component-scan>}是一样的.

实践: demo.

spring中是如何实现的?

AbstractApplicationContext中invokeBeanFactoryPostProcessors开始.

未完待续.

Share
  • annotation
  • componentScan
  • java
Newer
spring中的conditional注解
Older
spring中事件逻辑简读

Categories

  • Book
    • Easy Coding
    • Java
      • Effective Java
  • Docker
  • Java
  • angularjs1.0
  • go
  • java
    • spring
  • k8s
  • life
    • thinking
  • spring
  • 工作

Tags

  • Book
  • Docker
  • Dockerfile
  • Easy Coding
  • Effective Java
  • Exception
  • Java
  • Singleton
  • annotation
  • aop
  • aspectj
  • componentScan
  • design Mode
  • event
  • go
  • http
  • java
  • jdk
  • js
  • k8s
  • life
  • pend
  • pending
  • pending...
  • publisher
  • spring
  • thinking
  • timestamp
  • web
  • 内部类
  • 前端
  • 安全
  • 容器
  • 工作
  • 微服务
  • 思考
  • 网络配置
  • 苦痛
  • 观察者模式

Tag Cloud

Book Docker Dockerfile Easy Coding Effective Java Exception Java Singleton annotation aop aspectj componentScan design Mode event go http java jdk js k8s life pend pending pending... publisher spring thinking timestamp web 内部类 前端 安全 容器 工作 微服务 思考 网络配置 苦痛 观察者模式

Archives

  • February 2020
  • October 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019

Recent Posts

  • ImportBeanDefinitionRegistrar的使用
  • aop and spring
  • spring中的conditional注解
  • componentScan注解
  • spring中事件逻辑简读
© 2020 Volcanno Vayne
Powered by Hexo
Home Archives About Route