3.9K Star 18.4K Fork 5.3K

卓源软件 / JeeSite 4.x and 5.x

 / 详情

star jeesite整合达梦数据库

已完成
创建于  
2021-08-24 16:56

该问题是怎么引起的?

jeesite版本为4.0.5版本,之前用的oracle数据库,现在换成达梦数据库后启动报错

重现步骤

输入图片说明

输入图片说明

两种配置方式都试过,都不行,启动报错

报错信息

### Error querying database.  Cause: java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]
### The error may exist in com/jeesite/modules/sys/dao/ModuleDao.java (best guess)
### The error may involve com.jeesite.modules.sys.dao.ModuleDao.findList
### The error occurred while executing a query
### Cause: java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]
08-24 16:46:30.221 DEBUG [com.jeesite.common.utils.SpringUtils] - Clear ApplicationContext:org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@209775a9: startup date [Tue Aug 24 16:45:39 CST 2021]; root of context hierarchy
08-24 16:46:30.312 INFO  [o.s.b.a.l.AutoConfigurationReportLoggingInitializer] - 

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
08-24 16:46:30.321 ERROR [org.springframework.boot.SpringApplication] - Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'langController': Unsatisfied dependency expressed through field 'langService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbUpgrade': Invocation of init method failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]
### The error may exist in com/jeesite/modules/sys/dao/ModuleDao.java (best guess)
### The error may involve com.jeesite.modules.sys.dao.ModuleDao.findList
### The error occurred while executing a query
### Cause: java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
	at com.jeesite.modules.config.Application.main(Application.java:33)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbUpgrade': Invocation of init method failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]
### The error may exist in com/jeesite/modules/sys/dao/ModuleDao.java (best guess)
### The error may involve com.jeesite.modules.sys.dao.ModuleDao.findList
### The error occurred while executing a query
### Cause: java.lang.IllegalStateException: Cannot determine target DataSource for lookup key [null]
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:137)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
	... 17 common frames omitted


评论 (2)

戴勇 创建了任务
戴勇 关联仓库设置为卓源软件/JeeSite 4.3
戴勇 修改了描述
戴勇 修改了标题
展开全部操作日志

达梦4.1.6及以后版本新增支持

好的 谢谢

卓源软件 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
6732 thinkgem 1651893329
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.x and 5.x

搜索帮助