DevilYaos
DevilYaos
当sql用list的方式全部取出时,是能查出数据的,加入PageHelper后报错,单步调试时,能看出执行过count的sql并成功取到正确的值,但接着往下调试时(貌似是进的第二次),com.github.pagehelper.dialect.AbstractHelperDialect.afterCount方法中的Page page = getLocalPage();为null,所以在下一步的page.setTotal(count);会报空指针异常。请问是哪里的配置不对吗? org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.NullPointerException ### The error may exist in com/yaos/ucenter/module/mapper/user/UserMapper.java (best guess) ### The error may involve com.yaos.ucenter.module.mapper.user.UserMapper.findPage_COUNT...
例如创建client的时候已经填写了appId和appSecret, 为什么在获取token的时候还需要再填写一遍呢?