登陆进去提示500错误
HQL 代码敲完 然后执行查询的方法
package com.muke.dao.Impl; import java.util.List; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import com.muke.dao.sshDao; import com.muke.domain.User; public class sshDaoImpl extends HibernateDaoSupport implements sshDao { @Override public boolean verify(User user) { String hql="from user where username= ? and pwd= ? "; List<User> list=this.getHibernateTemplate().find(hql, user.getUsername(),user.getPwd()); if(list.size()>0){ return list.size()>0; }else{ return false; } } }