Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分页有问题BaseMybatisDao里获取总数失败Connection conn = this.getSqlSession().getConnection();是关闭的 #5

Open
chfeizy opened this issue Mar 10, 2017 · 2 comments

Comments

@chfeizy
Copy link

chfeizy commented Mar 10, 2017

获取总数哪里会报错,链接是关闭的
connection holder is null

conn 使用这个代替
SqlSessionTemplate st = (SqlSessionTemplate) getSqlSession();
Connection conn = SqlSessionUtils.getSqlSession(
st.getSqlSessionFactory(), st.getExecutorType(),
st.getPersistenceExceptionTranslator()).getConnection();

网站没备案里面的好多文件也获取失败了

@baichengzhou
Copy link
Owner

connection holder is null , 这个你得要看下AOP,是不是不在事务里,你如果用我的项目出现的这个情况,100%是这个问题。

第二,备案问题,是最近这个域名在换公司备案,所以有十来天的问题,现在使用可以更新代码,已经更新网址,把原来的open.sojson.com 换成 open.itboy.net 即可。

@baichengzhou
Copy link
Owner

备案问题,应该下个星期就会好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants