org.springframework.beans.factory.NoSuchBeanDefinitionException:没有名为'--spring.output.ansi.enabled = always'的bean

时间:2018-04-09 17:31:31

标签: java spring

使用Spring Tool套件运行spring批处理应用程序时出错:

2018-04-09 13:02:50.638[0;39m [32m INFO[0;39m [35m19056[0;39m [2m---[0;39m [2m[           main][0;39m [36mc.b.d.svc.rates.mfr.batch.Application   [0;39m [2m:[0;39m Started Application in 3.108 seconds (JVM running for 4.082)

[2m2018-04-09 13:02:50.642 [0; 39m [31mERROR [0; 39m [35m19056 [0; 39m [2m --- [0; 39m [2m [main] [0; 39m [36mc] .bdbservice.AbstractBatchService [0; 39m [2m:[0; 39m runJob()中的异常:

org.springframework.beans.factory.NoSuchBeanDefinitionException:没有名为'--spring.output.ansi.enabled = always'的bean     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)~ [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207)~ [spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1087)〜[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在com.bns.dmts.batch.service.AbstractBatchService.runJob(AbstractBatchService.java:27)〜[classes /:na]     在com.bns.dmts.svc.rates.mfr.batch.service.RatesMFRBatchService.runJob(RatesMFRBatchService.java:24)[classes /:na]     在com.bns.dmts.svc.rates.mfr.batch.Application.main(Application.java:28)[classes /:na]

[2m2018-04-09 13:02:50.643 [0; 39m [32m INFO [0; 39m [35m19056 [0; 39m [2m --- [0; 39m [2m [main] [0; 39m [ 36mc.bdsvc.rates.mfr.batch.Application [0; 39m [2m:[0; 39m应用程序运行结束,退出代码= -1 [2m2018-04-09 13:02:50.644 [0; 39m [32m INFO [0; 39m [35m19056] [0; 39m [2m --- [0; 39m [2m [线程-2] [0; 39m [36ms] .caAnnotationConfigApplicationContext [0; 39m [2m:[0; 39m Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@7d68ef40:启动日期[Mon Apr 09 13:02:48 EDT 2018];上下文层次结构的根 [2m2018-04-09 13:02:50.646 [0; 39m [32m INFO [0; 39m [35m19056 [0; 39m [2m -

1 个答案:

答案 0 :(得分:0)

未选中以下配置应解决以下错误
STS Screen shot