我已经将环境变量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.什么可能是例外??任何帮助都将不胜感激。
谢谢
发布于 2014-08-27 12:23:21
那是真的。由于您不使用hsqldbServer配置文件,所以必须定义您自己的dataSource bean。见hsql-datasource.xml。
或者将这两个配置文件都设置为active。
https://stackoverflow.com/questions/25526509
复制相似问题