最近在学ssh,所以这是第一次用ssh搭建的web程序,数据库里有个admin的表,然后有id,username,password三个属性
严重: Servlet.service() for servlet [action] in context with path [/BookSSH] threw exception [org.springframework.orm.hibernate3.HibernateQueryException: admin is not mapped [from admin where username=? and password=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: admin is not mapped [from admin where username=? and password=?]] with root cause
org.hibernate.hql.ast.QuerySyntaxException: admin is not mapped [from admin where username=? and password=?]
at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:181)我不知道是不是我做映射的时候弄错了,因为我是用的数据源,所以我先用直连建了映射,然后看到在applicationContext.xml中有
                  <property name="mappingResources">
<list>
<value>
com/bookssh/module/admin/model/Admin.hbm.xml
</value>
</list>
</property>