只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-04-15 19:20 乐享程序员 阅读(825) 评论(0) 推荐(1) 编辑
摘要: Bean声明的三种方式: 1、@Component, @Service, @Repository,@Controller 用于声明一个组件,程序启动时会扫描这些组件,并创建实例。 2、在applicationContext-module.xml 中使用<bean/>来声明 3、在@Configura 阅读全文
posted @ 2018-04-15 15:42 乐享程序员 阅读(305) 评论(0) 推荐(0) 编辑