1. mybatis加入分页插件
<plugins>
<plugin interceptor="com.github.pagehelper.PageHelper">
<!-- 支持Oracle,MySQL,SQLite,MariaDB,Hsqldb,PostgreSQL -->
<property name="dialect" value="mysql"/>
</plugin>
</plugins>
必须加在<environments 上面
2. ajax-struts2验证用户名是否存在
jsonobj为Null 原因为:架包冲突。删除重复的包