From c70b92da60c0d00625da5fc2369b475e69e0b88e Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 22 八月 2024 11:36:41 +0800 Subject: [PATCH] 1、完善代码和application.yml配置文件,去掉不用的引入文件; 2、init-config.xml配置中增加属性 enable,相应解析类也增加了解析与判断; 3、凡是有Server的应用,加载资源方式改为用springboot的工具类加载; 4、通信协议相关的扫描注解功能实现改为采用reflections-0.10.2,以实现可以在jar包情况下能够扫描类(.class)注解。 --- pipIrr-platform/pipIrr-global/src/main/resources/init-config.xml | 51 +++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 41 insertions(+), 10 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/init-config.xml b/pipIrr-platform/pipIrr-global/src/main/resources/init-config.xml index c427921..5b007fd 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/init-config.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/init-config.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <config> <orgs> - <!-- 澶氫釜缁勭粐锛岀敤缂栧彿鍖哄垎锛岀紪鍙蜂粠1寮�濮� --> - <org1 name="ym"> + <!-- 澶氫釜缁勭粐锛岀敤缂栧彿鍖哄垎锛岀紪鍙蜂粠1寮�濮嬶紝enable琛ㄧず鏄惁鍚敤 --> + <org1 tag="ym" name="鍏冭皨" enable="true"> <districts> - <province name="浜戝崡鐪�" num="53" level="1"> - <city name="妤氶泟褰濇棌鑷不宸�" num="23" level="2"> - <country name="鍏冭皨鍘�" num="28" level="3" /> + <province name="浜戝崡鐪�" num="53" level="0"> + <city name="妤氶泟褰濇棌鑷不宸�" num="23" level="1"> + <country name="鍏冭皨鍘�" num="28" level="2" /> </city> </province> </districts> @@ -18,12 +18,43 @@ <item4 name="閾惰杞处"/> </payments> <settings> - <item1 item_name="lng" item_value="101.87345" remarks="缁忓害"/> - <item2 item_name="lat" item_value="25.70424" remarks="绾害"/> - <item3 item_name="projectNo" item_value="10" remarks="椤圭洰缂栧彿"/> - <item4 item_name="controllerType" item_value="57" remarks="鎺у埗鍣ㄧ被鍨�"/> - <item5 item_name="protocolName" item_value="p206V202404" remarks="鍗忚鍚嶇О"/> + <item1 item_name="lng" item_value="101.87345" remarks="缁忓害"/> + <item2 item_name="lat" item_value="25.70424" remarks="绾害"/> </settings> + <waterTypes> + <item1 typeName="鐏屾簤鐢ㄦ按"/> + <item2 typeName="宸ヤ笟鐢ㄦ按"/> + <item3 typeName="鐢熸椿鐢ㄦ按"/> + <item4 typeName="鍏绘畺鐢ㄦ按"/> + <item5 typeName="缁垮寲鐢ㄦ按"/> + </waterTypes> </org1> + <org2 tag="pj" name="鐗囪" enable="false"> + <districts> + <province name="浜戝崡鐪�" num="53" level="0"> + <city name="涓芥睙甯�" num="23" level="1"> + <country name="姘歌儨鍘�" num="28" level="2" /> + </city> + </province> + </districts> + <user name="瓒呯骇绠$悊鍛�" phone="admin" password="admin" supperAdmin="1" /> + <payments> + <item1 name="鐜伴噾"/> + <item2 name="寰俊鏀粯"/> + <item3 name="鏀粯瀹濇敮浠�"/> + <item4 name="閾惰杞处"/> + </payments> + <settings> + <item1 item_name="lng" item_value="101.87345" remarks="缁忓害"/> + <item2 item_name="lat" item_value="25.70424" remarks="绾害"/> + </settings> + <waterTypes> + <item1 typeName="鐏屾簤鐢ㄦ按"/> + <item2 typeName="宸ヤ笟鐢ㄦ按"/> + <item3 typeName="鐢熸椿鐢ㄦ按"/> + <item4 typeName="鍏绘畺鐢ㄦ按"/> + <item5 typeName="缁垮寲鐢ㄦ按"/> + </waterTypes> + </org2> </orgs> </config> \ No newline at end of file -- Gitblit v1.8.0