从IntelliJ-Idea启动spring-boot应用程序时遇到问题。通过终端运行应用程序时,我没有这个问题。

:: Spring Boot ::        (v1.2.1.RELEASE)

2015-09-24 12:22:44.274  WARN 22380 --- [           main] n.sf.ehcache.config.CacheConfiguration   : Cache 'publicationsCount' is set to eternal but also has TTI/TTL set.  To avoid this warning, clean up the config removing conflicting values of eternal, TTI and TTL. Effective configuration for Cache 'publicationsCount' will be eternal='true', timeToIdleSeconds='0', timeToLiveSeconds='0'.

Process finished with exit code 0

我认为此警告不是造成此警告的原因。可能是什么原因?

最佳答案

删除提供的spring-boot-starter-tomcat依赖关系范围对我有帮助。

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>

关于java - Spring 引导运行时,IntelliJ进程以退出代码0完成,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32758996/

10-11 22:27
查看更多