现在的位置: 首页 > 综合 > 正文

spring

2013年08月21日 ⁄ 综合 ⁄ 共 3065字 ⁄ 字号 评论关闭

1.配置文件:

web配置:

2.注入:

junit测试:

 

3.使用注解进行注入:

  

 4.自动扫描class管理bean:

 

扫描的类应该含有@Repository@Controller@Service等标记

4.aop:

 

抱歉!评论已关闭.