ApplicationContextException: Não foi possível iniciar o ServletWebServerApplicationContext devido à falta do bean ServletWebServerFactory
Eu escrevi um aplicativo em lote de primavera usando o Spring boot. Quando estou tentando executar esse aplicativo usando a linha de comando e o caminho de classe no meu sistema local, ele está funcionando bem. No entanto, quando tentei executá-lo no servidor Linux, ele me deu a seguinte exceção
Unable to start web server; nested exception is
org.springframework.context.ApplicationContextException:
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
Abaixo está o modo como estou executando:
java -cp jarFileName.jar; lib\* -Dlogging.level.org.springframework=DEBUG -Dspring.profiles.active=dev -Dspring.batch.job.names=abcBatchJob com.aa.bb.StartSpringBatch > somelogs.log