![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring学习
梦里与你
这个作者很懒,什么都没留下…
展开
-
学习springIoc注解开发
1. 可以省略bean文件中service与dao的配置 AccountServiceImpl业务层实现类:@Service(“accountService”) AccountDaoImpl持久层实现类:@Repository(“accountDao”) 注入对象可以使用注解 @Autowired 代替 set 方法 2.不使用xml文件的注解开发 创建一个配置类并加上注解@Configuration(当配置类作为AnnotationConfigApplicationContext对象创建的参数时,该原创 2020-06-03 22:19:14 · 93 阅读 · 0 评论 -
基于XML-Ioc的案例,编写并测试Ioc配置
ss原创 2020-06-03 12:15:54 · 119 阅读 · 0 评论