Проект загрузки Spring можно запустить в локальном затмении, а в среде Windows использовать -jar. Однако в среде Linux есть несколько проблем, которые могут привести к тому, что приложение не запустилось. Но процесс всегда запущен.
Версия Spring 1.5.19, это проект с несколькими модулями, журналы на сервере Linux:
The web application [ROOT] appears to have started a thread named [CleanCursors-2-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 28081 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 28081, or configure this application to listen on another port.
Я уверен, что порт не был занят другими процессами. Меня смущает, что в местной среде все в порядке.
Некоторый код в Pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!--exclusions slf4j-log4j12-->
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Spring db template -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!-- Spring db template -->
<!-- ${environments.${env}.sslPWD} related -->
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>1.18</version>
</dependency>
<!-- ${environments.${env}.sslPWD} related -->
<!-- Spring boot security -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Spring boot security -->
<!-- Monitor Spring boot app -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Monitor Spring boot app -->
Надеюсь, что на сервере Linux ошибок нет.