NutzCN Logo
问答 把H2当作数据库,报错
发布于 2239天前 作者 qq_e79520c3 1767 次浏览 复制 上一个帖子 下一个帖子
标签:
[DEBUG] 2018-09-29 15:13:47,856 org.nutz.dao.jdbc.Jdbcs.guessEntityFieldColumnType(Jdbcs.java:881) - take field 'sdoData(com.vividsolutions.jts.geom.Geometry)'(cn.wizzer.app.cms.modules.models.SdoMode) as VARCHAR(128)
[DEBUG] 2018-09-29 15:13:47,878 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - select * from test_h2
org.nutz.dao.DaoException: daocache not support at this database
	at org.nutz.plugins.cache.dao.CachedNutDaoExecutor.sqlParser(CachedNutDaoExecutor.java:257)
	at org.nutz.plugins.cache.dao.CachedNutDaoExecutor.exec(CachedNutDaoExecutor.java:104)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.runCallback(NutDaoRunner.java:159)
	at org.nutz.dao.impl.sql.run.NutDaoRunner._runWithoutTransaction(NutDaoRunner.java:126)
	at org.nutz.dao.impl.sql.run.NutDaoRunner._run(NutDaoRunner.java:93)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:82)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)

-----------------------------是不是要改下面,麻烦教下怎么改---------------

    dataSource : {
       factory : "$conf#make",
       args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
        type : "com.alibaba.druid.pool.DruidDataSource",
        events : {
            create : "init",
            depose : 'close'
        }
    },
2 回复

已经写得很清楚

daocache not support at this database

硬要用的话,把daocache关掉/删除相关配置

添加回复
请先登陆
回到顶部