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 jarCodePudding 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 tryCodePudding 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