ssh+mysql,是不是不需要添加的呀
请问一下ssh+mysql,是不是不需要添加<mapping resource="orm/LoginInfo.hbm.xml"/>的呀,
我用 myeclipse自动生成的 hibernate.cfg.xml里面默认是没有<mapping resource="orm/LoginInfo.hbm.xml"/>,但是执行起来的话又会出现 Unable to instantiate Action, loginAction, defined for 'login' in namespace '/'Error creating bean with name 'loginAction' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type
....类型的错误;
我怀疑错误产生的话 原因就是 因为 没有mapping 导致 系统找不到 数据库;
但是我手动添加 mapping的话,直接tomcat就起不来