org springframework core io support PathMatchingResourcePatternResolver doFindPathMatchingFileResources

org springframework core io support PathMatchingResourcePatternResolver doFindPathMatchingFileResources

If you have created executable jar using from Spring project and while running get exception as below:

  • Solution: This happens when you create executable jar file of spring project and try to run it where Spring framework scan context file to read all the beans and other definition. When it encounters with scan package as example below:

  • It’s not able to resolve absolute path as mentioned on scan package. So in place of above you could use below:

  • If this also not works delete scan package tag and create executable jar again.
  • Only problem is with scan package but below will work:

As this is annotation tag where spring wires beans wherever annotation got used.

  • If you are using web application you will have to add this:

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *