摘要: Spring常用注解: @Configuration把一个类作为一个IoC容器,它的某个方法头上如果注册了@Bean,就会作为这个Spring容器中的Bean。 @Scope注解 作用域 @Lazy(true) 表示延迟初始化 @Service用于标注业务层组件、 @Controller用于标注控制 阅读全文
posted @ 2018-08-01 11:21 ConfidentLiu 阅读(1932) 评论(0) 推荐(0) 编辑