s2sh备忘

来源:互联网 发布:宿迁12345网络问政查询 编辑:程序博客网 时间:2024/06/01 09:32

1,java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/TextUtils

struts2.18以后jsonplugin-0.34.jar没用的,需要struts2-json-plugin-2.1.8.1.jar,(我是下的最新的,也没问题)

 

2,org.apache.struts2.json.jsonexception: java.lang.reflect.invocationtargetexception

这个需要删掉action中的getService()方法,不需要这个方法,不过其他的getter,setter还是要的

 

3,List<AdminUser> users = this.getHibernateTemplate().find("from AdminUser where userName='"+username+"'");

这里表名、字段名都用配置文件里的,不用库里的。

 

4,ecshop的密码以前版本是直接MD5(passwd),现在是MD5(concat(MD5(passwd),ecSalt))

 

5,spring和hibnate整合的时候是3个包冲突,不是一个

 

6,json_lib.jar有依赖包,一般都没搞。

commons-beanutils.jar,commons-httpclient.jar,commons-lang.jar,ezmorph.jar,morph-1.0.1.jar

原创粉丝点击