Spring Boot Application immediately shuts down after starting

后端 未结 4 1463

I am working currently on a project which includes the Spring Framework. Everything is working as aspect but there is one problem. When I try to start my application onto my lap

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-08 19:20

    For me what caused this was that I had this property below, in the application properties (carried over by mistake from a test application.properties file). See if any of your property files that are included have this like below, and remove it:

    # disables the servlet-container initialization (for unit testing only)
    spring.main.web-application-type=none
    

提交回复
热议问题