原文:IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"

运行审核流模块: 在ActivitiServiceApplication模块日志报错: Error starting ApplicationContext. To display the auto configuration report re run your application with debug enabled. : : . ERROR main o.s.boot.SpringAppl ...

2018-01-26 16:36 0 24353 推荐指数:

查看详情

Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.

报错信息中,我们就可以分析出错误原因是触发了数据源的自动化配置,然而当前项目其实并不需要数据源。查其根源是依赖方提供的API依赖中引用了一些多余的依赖触发了该自动化配置的加载。 如何解决 为了解决上面所述的问题,我们可以用两种方法来解决: 通过外部依赖的修改来解决:通过与依赖方 ...

Thu Apr 26 21:53:00 CST 2018 0 24576
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM