| | |
| | | |
| | | if(YamlProperties.runModel == 1) { |
| | | //开发路径 |
| | | baseDirPath = jarFile.getParentFile().toString()+File.separator+"battery_gwm_file"+File.separator; |
| | | baseDirPath = jarFile.getParentFile().toString()+File.separator+"pis_file"+File.separator; |
| | | }else { |
| | | //打包路径 |
| | | baseDirPath = jarFile.toString()+File.separator+"battery_gwm_file"+File.separator; |
| | | baseDirPath = jarFile.toString()+File.separator+"pis_file"+File.separator; |
| | | } |
| | | registry.addResourceHandler("/battery_gwm_file/**").addResourceLocations("file:/"+baseDirPath); |
| | | registry.addResourceHandler("/pis_file/**").addResourceLocations("file:/"+baseDirPath); |
| | | |
| | | super.addResourceHandlers(registry); |
| | | |