Heroku Unable To Find XML Config File

前端 未结 2 394
既然无缘
既然无缘 2021-01-15 22:08

I uploaded a Spring application to Heroku but the application crashed with the following error:

java.io.FileNotFoundException: class path resource [com/myname/

2条回答
  •  既然无缘
    2021-01-15 22:44

    For future visitors to this question, I overcame the problem by converting my DAO XML config file to the Java Config method, therefore Spring no longer required that XML file. This didn't directly solve the issue of being unable to find the XML file, but the added benefit is that I am now using the more modern and less verbose Java Config method.

提交回复
热议问题