@Configuration用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被@Bean注解的方法 Read More
posted @ 2019-04-18 23:27
AlexZS
Views(122)
Comments(0)
Diggs(0)
1、@controller 控制器(注入服务) 用于标注控制层,相当于struts中的action层2、@service 服务(注入dao) 用于标注服务层,主要用来进行业务的逻辑处理3、@repository(实现dao访问) 用于标注数据访问层,也可以说用于标注数据访问组件,即DAO组件.4、@ Read More
posted @ 2019-04-18 23:07
AlexZS
Views(238)
Comments(0)
Diggs(1)

浙公网安备 33010602011771号