IOC:面向对象;AOP:面向对象

IOC依靠依赖注入,可以解耦合。
注解@Component  @Controller @Respotiry(扫描数据库的bean) @Service(业务组件)加到bean上,可以被容器扫描到
@primary可以替换bean
@PostConstruct:在构造之后调用
销毁bean: @PreDestory
bean默认是单例的,加@Scope("prototype"),每次访问都会创建一个新的实例

配置类:
@Configuration 配置类的注解
@Bean 声明bean