摘要: 在Spring MVC中,Controller中使用service只需使用注解@Resource就行,但是一般类(即不使用@Controller注解的类)要用到service时,可用如下方法: 1、SpringContextUtil 2、Spring的配置文件application.xml中进行如下 阅读全文
posted @ 2016-04-19 23:19 龙昊雪 阅读(6913) 评论(0) 推荐(0) 编辑