Programmers learn & share
0 votes
86 views

Problem :

I have written a spring batch application using the Spring boot and when I tried to run it on linux server facing following exception
unable to start servletwebserverapplicationcontext due to missing servletwebserverfactory bean
by (6.9k points)   | 86 views

1 Answer

0 votes

Solution :

I had also encountered the similar issue in the past.
I found below solution on it.
I explicitly tried to set the below property 
to none in the application.yml file as follows
spring:
  main:
    web-application-type: none
It solved my problem.
by (36.1k points)  
2,204 questions
2,606 answers
59 comments
241 users