Why this Spring application with java-based configuration don't work properly

前端 未结 4 1532
忘了有多久
忘了有多久 2020-12-01 14:48

I started recently a project with the Spring framework with the ojective to develop it without none XML config file, only Java code.

In this current moment, I add th

4条回答
  •  温柔的废话
    2020-12-01 15:05

    I had a class

    MyContextLoaderListener extends ContextLoaderListener

    somewhere in my code. It was unused. Spring boot apparently used reflection to find it. I deleted the file and the problem was gone

提交回复
热议问题