【发布时间】:2014-10-21 00:00:04
【问题描述】:
我已将环境变量spring.profiles.active 设置为"qa",这是我要激活的application.yml 文件中的配置文件。
但是在设置这个环境变量,并在 xd-singlenode 中启动 Sprind XD 之后,它会抛出以下异常
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.xd.dirt.plugins.job.DistributedJobService#0' defined in class path resource [META-INF/spring-xd/batch/batch.xml]: Cannot resolve reference to bean 'jobExecutionDao' while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobExecutionDao' defined in class path resource [META-INF/spring-xd/batch/batch.xml]: Invocation of init method failed;
nested exception is java.lang.IllegalArgumentException: Could not inspect meta data for database type. You have to supply it explicitly.
可能是什么异常? 任何帮助将不胜感激。
谢谢
【问题讨论】:
标签: spring spring-batch spring-integration spring-boot spring-xd