Home > Back-end >  O group - run times can't find the file, but the problem of the file
O group - run times can't find the file, but the problem of the file

Time:12-23

Dear bosses, save me, save the children,

Regularly run batch job, at run time, error can t find ` EsbHeader. XML, but when this file exists, and in the four environment test, there are two no problem, when the other one is the first time to quote can ` t find * * * * *. Xm (another file, the file is also exist), after the restart normal again,

Have no idea,, every trouble myself, give some ideas,

CodePudding user response:

This file is the introduction of the jar

CodePudding user response:

If the file is the inside of the jar, through the file is there will be not find problems, can by class () getResourceAsStream to try to introduce, you try

CodePudding user response:

Positive solution to the second floor, jar bag for files needed to use getResourceAsStream (),
Run into war packages or local idea, there will be no this problem
  • Related