How to load a folder from a .jar?

前端 未结 4 2122
广开言路
广开言路 2020-12-01 15:07

OK. So I have a pretty simple question: I want to be able to load a resource (a whole folder) from inside a running .jar file, but I have not been able to get it to work. Th

4条回答
  •  余生分开走
    2020-12-01 15:51

    Up until now (December 2017), this is the only solution I found which works both inside and outside the IDE (Using PathMatchingResourcePatternResolver): https://stackoverflow.com/a/47904173/6792588

提交回复
热议问题