@IocBean
public class ClueDataService extends HttpServlet {
private Log log = Logs.getLog(ClueDataService.class);
@Inject
private ClueDataDao clueDataDao;
private ClueLoginDao clueLoginDao;
。。。
public Boolean checkClueName(HttpServletRequest request, HttpServletResponse response) {
String clueName = request.getParameter("clue_name");
Integer clueId = Integer.parseInt(request.getParameter("clue_id"));
return clueDataDao.checkClueName(clueName,clueId);
}
public String getCheckClueList(HttpServletRequest request, HttpServletResponse response) {
Integer userId = Integer.parseInt(request.getParameter("user_id"));
Integer userType = Integer.parseInt(request.getParameter("user_type"));
return clueLoginDao.getClueIdByUserID(userId,userType);
}
通过调试发现 clueDataDao是正常的 但是clueLoginDao为null