开发者

Class Path & Resource files

开发者 https://www.devze.com 2023-03-26 08:08 出处:网络
If I have a resource file (wsdl file) in the class path, should I recompile my java app if I changed something in this wsdl file (the target address location)? or I can cha开发者_开发技巧nge the wsdl

If I have a resource file (wsdl file) in the class path, should I recompile my java app if I changed something in this wsdl file (the target address location)? or I can cha开发者_开发技巧nge the wsdl file without recompiling?


If you're just using it as a text resource, you do not have to recompile it.

You will want to recompile/repackage it if:

  • You're using the WSDL to generate some of your java classes (common with API frameworks)
  • You're packaging the classes/resources into an archive (jar, war)
0

精彩评论

暂无评论...
验证码 换一张
取 消