Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

判断文件路径是否存在 #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fushengzhang
Copy link

在我使用spring-boot 整合paoding-rose-jade是遇到一个问题.
整合完成后,我可以通过main方法直接启动项目,但是无法通过java -jar 的方式启动springboot项目.
paoding-rose-load 有个加载 MANIFEST.MF 文件内容的过程,他的内容中有两句是这样的
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
所以就造成了在加载jar包资源时,会存在这样的问题
jar包的资源路径是 Test.jar!/BOOT-INF/lib/xxx.jar.系统会]抛出文件找不到的异常
所以我加了一个判断文件是否存在一个判断

或者还有启动的解决办法是我没找到的.

我的目的是实现springboot整合paoding-rose-jade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants