目錄
1.業(yè)務(wù)背景
2.解決方案
3.相關(guān)資料
1.業(yè)務(wù)背景
? ? ? ? 現(xiàn)在政府項目要求國產(chǎn)化,數(shù)據(jù)庫使用的是kingbase,在使用mybatis 分頁插件的時候,遇到Cause: com.github.pagehelper.PageException: 無法自動獲取數(shù)據(jù)庫類型,請通過 helperDialect 參數(shù)指定! kingbase數(shù)據(jù)庫。
2.解決方案
? ? ? ? 方法很簡單,人家也告訴你指定數(shù)據(jù)庫類型,我直接吧kingbase 在配置,項目都啟動不來。
????????KingbaseES適配Mybatis-Plus時,由于Mybatis-Plus無法識別KingbaseES數(shù)據(jù)庫類型。
<plugins>
<!--設(shè)置分頁插件-->
<plugin interceptor="com.github.pagehelper.PageInterceptor">
<property name="helperDialect" value="postgresql" />
</plugin>
</plugins>
? ? ? ? 將kingbase 改成?postgresql 即可。文章來源:http://www.zghlxwxcb.cn/news/detail-773761.html
?3.相關(guān)資料
金倉數(shù)據(jù)庫KingbaseES客戶端編程開發(fā)框架-MyBatis-Plus(4. MyBatis-Plus注意點)_金倉數(shù)據(jù)庫設(shè)置mybatis方言_沉舟側(cè)畔千帆過_的博客-CSDN博客文章來源地址http://www.zghlxwxcb.cn/news/detail-773761.html
到了這里,關(guān)于Cause: com.github.pagehelper.PageException: 無法自動獲取數(shù)據(jù)庫類型,請通過 helperDialect 參數(shù)指定! kingbase數(shù)據(jù)庫的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!