weiyiming
weiyiming
本来我这几天在写starter,整合你的mapper和pagehelper的,元旦回来一看你竟然自己写了starter了,太惊喜了,所以直接用了你的,可是运行的时候出现了以上错误,能帮忙分析一下么,我自己之前写的配置是可以运行的。
我之前是使用的1.3.3Release
升级了1.4.3Release之后可以运行了,但是又出了另外一个错,在使用pagehelper的时候, ### Error querying database. Cause: java.lang.NullPointerException ### Cause: java.lang.NullPointerException] with root cause java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964) at com.github.pagehelper.page.PageAutoDialect.getDialect(PageAutoDialect.java:192) DataSource dataSource = ms.getConfiguration().getEnvironment().getDataSource(); String url = getUrl(dataSource); if (urlDialectMap.containsKey(url))...
调用方式如下: PageHelper.startPage(0,5); xxxMapper.selectAll();