2013年6月22日

摘要: @Repositorypublic class BaseDaoImpl implements BaseDao {这是我的dao如果在service层注入的话很简单public class BaseServiceImpl implements BaseService {@Autowiredpublic BaseDao baseDao;这样就可以了现在我想在一个普通的java类中注入进来改怎么写比如我的普通java类是package com.util.page;public class PageUtil { ApplicationContext ctx = new ClassPathXmlAppl 阅读全文
posted @ 2013-06-22 17:31 、八月份的前奏 阅读(7125) 评论(0) 推荐(0) 编辑

导航