缺少错误,为什么Spring Boot应用程序无法启动

时间:2019-01-11 10:57:17

标签: spring-boot

我正在开发一个可以在Kubernetes中运行的spring boot应用程序。在开发过程中(在Windows和Linux中)是否存在错误,例如在spring属性中,我得到并为此错误作为日志输出的最后一行:

...
2019-01-11 11:17:45.372  WARN 15528 --- [ost-startStop-2] o.a.c.loader.WebappClassLoaderBase       : The web application [easyprocesses] appears to have started a thread named [oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource.BlockReleaser] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaser.run(BlockSource.java:327)
2019-01-11 11:17:45.407 ERROR 15528 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailCreationProperties': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'mailcreation.sender.email-address' in value "${mailcreation.sender.email-address}"

如果我运行相同的应用程序,则不会收到错误消息。没有提示为什么应用程序无法正常启动。这就是我在Kubernetes中得到的:

...
2019-01-11 10:35:33.365  WARN 1 --- [ost-startStop-2] o.a.c.loader.WebappClassLoaderBase       : The web application [easyprocesses] appears to have started a thread named [oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource.BlockReleaser] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
     java.lang.Object.wait(Native Method)

oracle.jdbc.driver.BlockSource $ ThreadedCachingBlockSource $ BlockReleaser.run(BlockSource.java:327)

在两种情况下都存在一些关闭问题(不知道为什么),但是它们是相似的。

例如,如果基础数据库的密码错误,则应用程序也不会显示该错误。该应用程序停止并且不打印任何可用错误。

有人知道这种行为的原因是什么?

谢谢, 斯蒂芬

0 个答案:

没有答案