src/main/java/com/fzzy/api/utils/RedisConst.java
@@ -8,7 +8,12 @@ public class RedisConst { /** /** * ä»åºæ¶²ä½æ°æ®ç¼å */ public static final String KEY_DEPOT_HEIGHT = "DEPOT_HEIGHT"; /** * åå ¸è¡¨ç¼å */ public static String KYE_LIST_TRIGGER = "LIST_TRIGGER"; src/main/java/com/fzzy/async/fzzy40/entity/Fz40Grain.java
@@ -81,6 +81,7 @@ @Column(name = "OIL_HEIGHT_", length = 20) private String oilHeight; @Column(name = "WEATHER_", length = 20) @PropertyDef(label = "天æ°", description = "ç´æ¥å¡«åä¸æä¿¡æ¯ï¼æ´ï¼é´é¨å¤©") private String weather = ""; @@ -104,4 +105,8 @@ @Transient @PropertyDef(label = "æå±ååº", description = "ååºç¼ç ï¼éæ°æ®åºå段") private String deptId; @Transient @PropertyDef(label = "建çé«åº¦") private String depotHeight; } src/main/java/com/fzzy/gateway/hx2023/data/GrainData.java
@@ -25,6 +25,6 @@ private String weatherStation; private String properties; } src/main/java/com/fzzy/gateway/hx2023/data/GrainOutPut.java
@@ -1,6 +1,5 @@ package com.fzzy.gateway.hx2023.data; import com.alibaba.fastjson2.JSONObject; import lombok.Data; import java.util.List; src/main/java/com/fzzy/gateway/hx2023/data/GrainTH.java
@@ -17,7 +17,7 @@ //æ¸©åº¦å¼ private String temperature; //æ¸©åº¦å¼ //æ¹¿åº¦å¼ private String humidity; //ç´¢å¼ï¼ä»0å¼å§ src/main/java/com/fzzy/protocol/bhzn/analysis/AnalysisService.java
@@ -6,6 +6,9 @@ import com.fzzy.api.data.GatewayDeviceType; import com.fzzy.api.utils.BytesUtil; import com.fzzy.api.utils.NumberUtil; import com.fzzy.api.utils.RedisConst; import com.fzzy.api.utils.RedisUtil; import com.fzzy.data.ConfigData; import com.fzzy.gateway.GatewayUtils; import com.fzzy.gateway.api.GatewayDeviceReportService; import com.fzzy.gateway.api.GatewayRemoteManager; @@ -18,10 +21,12 @@ import com.fzzy.protocol.bhzn.cmd.CommandBuild; import com.fzzy.protocol.bhzn.cmd.ReMessageBuilder; import com.fzzy.protocol.bhzn.data.IoMessage; import com.fzzy.protocol.data.GrainCableData; import com.fzzy.protocol.data.THDto; import com.fzzy.protocol.bhzn.server.BhznGrainV2ServerEngine; import com.fzzy.protocol.bhzn.server.BhznGrainV2ServerUtils; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -41,6 +46,10 @@ @Resource private GatewayRemoteManager gatewayRemoteManager; @Resource private ConfigData configData; @Resource private RedisUtil redisUtil; /** * é对åå ç²®æ æ¥æè¿è¡å°è£ @@ -114,7 +123,6 @@ } //è·å请æ±ä¿¡æ¯ BaseReqData reqData = ProtocolUtils.getSyncReq(gatewayDevice.getDepotIdSys()); if (null == reqData) { @@ -124,11 +132,8 @@ } // å¤ææ°æ®ææ²¡ææ¶å宿´ String[] attCable = gatewayDevice.getCableRule().split("-"); int cableZ = Integer.valueOf(attCable[0]); int cableY = Integer.valueOf(attCable[1]); int cableX = Integer.valueOf(attCable[2]); int sumPoint = cableZ * cableY * cableX; GrainCableData cableData = this.getCableData(gatewayDevice); int sumPoint = cableData.getSumNum(); //è·åå½åç²®æ æ¸©åº¦æ¥æ String grainHex = message.getContent().substring(16); @@ -141,7 +146,7 @@ log.info("åæº------>>>å¹³å°ï¼ç²®æ æ°æ®åå =" + grainHex); //è¿åç²®æ æ¥æ¶ä¿¡æ¯ replayGrain(message); analysisGrain2(message, reqData, grainHex); analysisGrain2(message, reqData, grainHex, cableData); return; } @@ -162,7 +167,7 @@ //è¿åç²®æ æ¥æ¶ä¿¡æ¯ replayGrain(message); log.info("åæº------>>>å¹³å°ï¼ç²®æ æ°æ®å¤å ï¼å®æ´æ°æ®=" + grainHex); analysisGrain2(message, reqData, grainHex); analysisGrain2(message, reqData, grainHex, cableData); return; } else { @@ -174,6 +179,39 @@ } catch (Exception e) { log.error(e.getMessage(), e); } } private GrainCableData getCableData(GatewayDevice gatewayDevice) { String cableRule = gatewayDevice.getCableRule(); String cableCir = gatewayDevice.getCableCir(); GrainCableData result = new GrainCableData(); int cableY, cableX; String[] attCable = cableRule.split("-"); int cableZ = Integer.valueOf(attCable[0]); if (StringUtils.isEmpty(cableCir)) { cableY = Integer.valueOf(attCable[1]); cableX = Integer.valueOf(attCable[2]); } else { String[] attCir = cableCir.split("-"); cableZ = Integer.valueOf(attCir[0]); cableY = 1; cableX = 0; //é对å¤åè®¡ç® for (int i = 0; i < cableCir.length(); i++) { cableX += Integer.valueOf(attCir[i]); } result.setCir(true); } result.setCableY(cableY); result.setCableZ(cableZ); result.setCableX(cableX); result.setSumNum(cableZ * cableY * cableX); return result; } /** @@ -189,17 +227,17 @@ BhznGrainV2ServerEngine.push(message.getIp(), message.getPort(), BytesUtil.hexStrToBytes(hexStr)); } private void analysisGrain2(IoMessage message, BaseReqData reqData, String grainStr) { private void analysisGrain2(IoMessage message, BaseReqData reqData, String grainStr, GrainCableData cableData) { GatewayDevice device = reqData.getDevice(); // è·å宿´çç²®æ å ä¿¡æ¯ String[] attCable = device.getCableRule().split("-"); int cableZ = Integer.valueOf(attCable[0]); int cableY = Integer.valueOf(attCable[1]); int cableX = Integer.valueOf(attCable[2]); int cableZ = cableData.getCableZ(); int cableY = cableData.getCableY(); int cableX = cableData.getCableX(); int sumNum = cableData.getSumNum(); // æ ¹æ®å±è¡åè·åæå®é¿åº¦ int start = 0; int len = 4 * cableZ * cableY * cableX; int len = 4 * sumNum; log.info("åæº------>>>å¹³å°ï¼è¿åç²®æ 宿´ä¿¡æ¯ï¼åæº={}", device.getDeviceName()); @@ -235,8 +273,129 @@ String key = "GRAIN_" + message.getAddr(); contextMapGrain.put(key, null); // å°éåè§£ææåæ æ°æ® addPoint1(temps, reqData, thDto); if (cableData.isCir()) { //çä» analysisAndPush2(temps, reqData, thDto, cableData); } else { //å¹³æ¿ä» analysisAndPush1(temps, reqData, thDto, cableData); } } /** * çä»è§£æï¼è§£æç¬¬äºæ¥ï¼è§£æå°åæ æ°æ® * * @param temps * @throws Exception */ private void analysisAndPush2(List<Double> temps, BaseReqData reqData, THDto thDto, GrainCableData cableData) { GatewayDevice device = reqData.getDevice(); int cableZ = cableData.getCableZ(); int cableY = cableData.getCableY(); int cableX = cableData.getCableX(); int sumNum = temps.size(); //æ°æ®å°è£ GrainData grain = new GrainData(); grain.setMessageId(ScConstant.getMessageId()); grain.setDeviceId(device.getDeviceId()); grain.setTimestamp(System.currentTimeMillis() + ""); ClientHeaders headers = new ClientHeaders(); headers.setDeviceName(device.getDeviceName()); headers.setProductId(device.getProductId()); headers.setOrgId(device.getOrgId()); headers.setMsgId(reqData.getMessageId()); grain.setHeaders(headers); GrainOutPut outPut = new GrainOutPut(); double max = com.fzzy.protocol.bhzn.v0.cmd.ReMessageBuilder.MAX_TEMP, min = com.fzzy.protocol.bhzn.v0.cmd.ReMessageBuilder.MIN_TEMP, sumT = 0.0; List<GrainTemp> temperature = new ArrayList<>(); //æ ¹å· int cableNum = 1, position = 0; double curTemp; int x = 0, y = 0, z = 0; for (int i = 0; i < sumNum; i++) { curTemp = temps.get(i); position = i; z = i % cableZ + 1; x = i / (cableZ * cableY); y = x * (cableZ * cableY); y = (i - y) / cableZ; //æ ¹å· cableNum = (i / cableZ) + 1; temperature.add(new GrainTemp(cableNum + "", z + "", curTemp + "", position + "")); //æ±æå¤§æå°å¼ if (curTemp < -900) { sumNum--; } else { sumT += curTemp; if (curTemp > max) { max = curTemp; } if (curTemp < min) { min = curTemp; } } } if (sumNum == 0) { sumNum = 1; log.warn("---å½åç²®æ ééå¼å¸¸--"); } //è¿æ»¤æ¯è¾ç¨çæå¤§æå°å¼ if (max == com.fzzy.protocol.bhzn.v0.cmd.ReMessageBuilder.MAX_TEMP) { max = 0.0; } if (min == com.fzzy.protocol.bhzn.v0.cmd.ReMessageBuilder.MIN_TEMP) { min = 0.0; } outPut.setTemperature(temperature); outPut.setAvgTemperature(NumberUtil.keepPrecision((sumT / sumNum), 1) + ""); outPut.setMinTemperature(min + ""); outPut.setMaxTemperature(min + ""); JSONObject properties = new JSONObject(); properties.put("data", JSONObject.toJSONString(outPut)); properties.put("timestamp", grain.getTimestamp()); String height = this.getCacheHeight(device); if (StringUtils.isEmpty(height)) height = "0.0"; properties.put("liquidHeight", height); grain.setProperties(properties.toJSONString()); //å°è£ å¥½çæ°æ® log.info("---æµ åä»å°è£ 宿----å¼å§æ§è¡æ¨é"); reqData.setData(JSONObject.toJSONString(grain)); doPushGrain(reqData); } /** * ä»REDISä¸è·åæ¶²ä½é«åº¦ä¿¡æ¯ * * @param device * @return */ private String getCacheHeight(GatewayDevice device) { //ç»å ¶ä»è½¯ä½¿ç¨ String key = RedisConst.KEY_DEPOT_HEIGHT + ":" + configData.getCompanyId() + "_" + device.getDepotIdSys(); return (String) redisUtil.get(key); } @@ -246,14 +405,13 @@ * @param temps * @throws Exception */ private void addPoint1(List<Double> temps, BaseReqData reqData, THDto thDto) { private void analysisAndPush1(List<Double> temps, BaseReqData reqData, THDto thDto, GrainCableData cableData) { GatewayDevice device = reqData.getDevice(); String[] attCable = device.getCableRule().split("-"); int cableZ = Integer.valueOf(attCable[0]); int cableY = Integer.valueOf(attCable[1]); int cableX = Integer.valueOf(attCable[2]); int cableZ = cableData.getCableZ(); int cableY = cableData.getCableY(); int cableX = cableData.getCableX(); //æ°æ®å°è£ GrainData grain = new GrainData(); @@ -325,7 +483,7 @@ outPut.setMaxTemperature(min + ""); List<GrainTH> ths = new ArrayList<>(); ths.add(new GrainTH(thDto.getTempIn()!=null?thDto.getTempIn()+"":"",thDto.getHumidityIn()!=null?thDto.getHumidityIn()+"":"","1")); ths.add(new GrainTH(thDto.getTempIn() != null ? thDto.getTempIn() + "" : "", thDto.getHumidityIn() != null ? thDto.getHumidityIn() + "" : "", "1")); outPut.setTemperatureAndhumidity(ths); grain.setOutput(JSONObject.toJSONString(outPut)); src/main/java/com/fzzy/protocol/bhzn/v0/analysis/AnalysisService.java
@@ -6,6 +6,10 @@ import com.fzzy.api.data.GatewayDeviceType; import com.fzzy.api.utils.BytesUtil; import com.fzzy.api.utils.NumberUtil; import com.fzzy.api.utils.RedisConst; import com.fzzy.api.utils.RedisUtil; import com.fzzy.async.fzzy40.entity.Fz40Grain; import com.fzzy.data.ConfigData; import com.fzzy.gateway.GatewayUtils; import com.fzzy.gateway.api.GatewayDeviceReportService; import com.fzzy.gateway.api.GatewayRemoteManager; @@ -20,8 +24,11 @@ import com.fzzy.protocol.bhzn.v0.data.IoMessage; import com.fzzy.protocol.bhzn.v0.server.BhznGrainV0ServerEngine; import com.fzzy.protocol.bhzn.v0.server.BhznGrainV0ServerUtils; import com.fzzy.protocol.data.GrainCableData; import com.fzzy.protocol.data.THDto; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -41,6 +48,10 @@ @Resource private GatewayRemoteManager gatewayRemoteManager; @Resource private ConfigData configData; @Resource private RedisUtil redisUtil; /** * é对åå ç²®æ æ¥æè¿è¡å°è£ @@ -97,7 +108,6 @@ */ private void analysisGrain(IoMessage message) { try { //æ ¹æ®åæºSNè·å设å¤é ç½®ä¿¡æ¯ GatewayDevice gatewayDevice = GatewayUtils.getCacheByDeviceSn(message.getAddr()); if (null == gatewayDevice) { @@ -113,7 +123,6 @@ return; } //è·å请æ±ä¿¡æ¯ BaseReqData reqData = ProtocolUtils.getSyncReq(gatewayDevice.getDepotIdSys()); if (null == reqData) { @@ -123,11 +132,7 @@ } // å¤ææ°æ®ææ²¡ææ¶å宿´ String[] attCable = gatewayDevice.getCableRule().split("-"); int cableZ = Integer.valueOf(attCable[0]); int cableY = Integer.valueOf(attCable[1]); int cableX = Integer.valueOf(attCable[2]); int sumPoint = cableZ * cableY * cableX; GrainCableData cableData = this.getCableData(gatewayDevice); //è·åå½åç²®æ æ¸©åº¦æ¥æ String grainHex = message.getContent().substring(16); @@ -136,11 +141,11 @@ int curPoint = BytesUtil.hexToInt(BytesUtil.tran_LH(message.getContent().substring(4, 8))); //妿å½åå çæ°æ®ä¸ªæ°å¤§äºçäºå½åä»åºçé ç½®ç¹ä½å表示åå è¿å if (curPoint >= sumPoint) { if (curPoint >= cableData.getSumNum()) { log.info("åæº------>>>å¹³å°ï¼ç²®æ æ°æ®åå =" + grainHex); //è¿åç²®æ æ¥æ¶ä¿¡æ¯ replayGrain(message); analysisGrain2(message, reqData, grainHex); analysisGrain2(message, reqData, grainHex, cableData); return; } @@ -157,13 +162,12 @@ grainHex = oldGrainHex + grainHex; } if (grainHex.length() >= sumPoint * 4) { if (grainHex.length() >= cableData.getSumNum() * 4) { //è¿åç²®æ æ¥æ¶ä¿¡æ¯ replayGrain(message); log.info("åæº------>>>å¹³å°ï¼ç²®æ æ°æ®å¤å ï¼å®æ´æ°æ®=" + grainHex); analysisGrain2(message, reqData, grainHex); analysisGrain2(message, reqData, grainHex, cableData); return; } else { log.info("åæº------>>>å¹³å°ï¼å°ç¬¬ä¸å æ°æ®åå ¥å å=" + grainHex); contextMapGrain.put(key, grainHex); @@ -173,6 +177,39 @@ } catch (Exception e) { log.error(e.getMessage(), e); } } private GrainCableData getCableData(GatewayDevice gatewayDevice) { String cableRule = gatewayDevice.getCableRule(); String cableCir = gatewayDevice.getCableCir(); GrainCableData result = new GrainCableData(); int cableY, cableX; String[] attCable = cableRule.split("-"); int cableZ = Integer.valueOf(attCable[0]); if (StringUtils.isEmpty(cableCir)) { cableY = Integer.valueOf(attCable[1]); cableX = Integer.valueOf(attCable[2]); } else { String[] attCir = cableCir.split("-"); cableZ = Integer.valueOf(attCir[0]); cableY = 1; cableX = 0; //é对å¤åè®¡ç® for (int i = 0; i < cableCir.length(); i++) { cableX += Integer.valueOf(attCir[i]); } result.setCir(true); } result.setCableY(cableY); result.setCableZ(cableZ); result.setCableX(cableX); result.setSumNum(cableZ * cableY * cableX); return result; } /** @@ -188,17 +225,19 @@ BhznGrainV0ServerEngine.push(message.getIp(), message.getPort(), BytesUtil.hexStrToBytes(hexStr)); } private void analysisGrain2(IoMessage message, BaseReqData reqData, String grainStr) { /** * è·åå°ææçç²®æ æ°æ®ï¼å¼å§è§£æ * * @param message * @param reqData * @param grainStr */ private void analysisGrain2(IoMessage message, BaseReqData reqData, String grainStr, GrainCableData cableData) { GatewayDevice device = reqData.getDevice(); // è·å宿´çç²®æ å ä¿¡æ¯ String[] attCable = device.getCableRule().split("-"); int cableZ = Integer.valueOf(attCable[0]); int cableY = Integer.valueOf(attCable[1]); int cableX = Integer.valueOf(attCable[2]); // æ ¹æ®å±è¡åè·åæå®é¿åº¦ int start = 0; int len = 4 * cableZ * cableY * cableX; int len = 4 * cableData.getSumNum(); log.info("åæº------>>>å¹³å°ï¼è¿åç²®æ 宿´ä¿¡æ¯ï¼åæº={}", device.getDeviceName()); @@ -234,25 +273,31 @@ String key = "GRAIN_" + message.getAddr(); contextMapGrain.put(key, null); // å°éåè§£ææåæ æ°æ® addPoint1(temps, reqData, thDto); if (cableData.isCir()) { //çä» analysisAndPush2(temps, reqData, thDto, cableData); } else { //å¹³æ¿ä» analysisAndPush1(temps, reqData, thDto, cableData); } } /** * å¹³æ¿ä»ï¼è§£æç¬¬äºæ¥ï¼è§£æå°åæ æ°æ® * çä»è§£æï¼è§£æç¬¬äºæ¥ï¼è§£æå°åæ æ°æ® * * @param temps * @throws Exception */ private void addPoint1(List<Double> temps, BaseReqData reqData, THDto thDto) { private void analysisAndPush2(List<Double> temps, BaseReqData reqData, THDto thDto, GrainCableData cableData) { GatewayDevice device = reqData.getDevice(); String[] attCable = device.getCableRule().split("-"); int cableZ = Integer.valueOf(attCable[0]); int cableY = Integer.valueOf(attCable[1]); int cableX = Integer.valueOf(attCable[2]); int cableZ = cableData.getCableZ(); int cableY = cableData.getCableY(); int cableX = cableData.getCableX(); int sumNum = temps.size(); //æ°æ®å°è£ GrainData grain = new GrainData(); @@ -271,8 +316,123 @@ GrainOutPut outPut = new GrainOutPut(); double max = ReMessageBuilder.MAX_TEMP, min = ReMessageBuilder.MIN_TEMP, sumT = 0.0, sumNum = cableX * cableY * cableZ; double max = ReMessageBuilder.MAX_TEMP, min = ReMessageBuilder.MIN_TEMP, sumT = 0.0; List<GrainTemp> temperature = new ArrayList<>(); //æ ¹å· int cableNum = 1, position = 0; double curTemp; int x = 0, y = 0, z = 0; for (int i = 0; i < sumNum; i++) { curTemp = temps.get(i); position = i; z = i % cableZ + 1; x = i / (cableZ * cableY); y = x * (cableZ * cableY); y = (i - y) / cableZ; //æ ¹å· cableNum = (i / cableZ) + 1; temperature.add(new GrainTemp(cableNum + "", z + "", curTemp + "", position + "")); //æ±æå¤§æå°å¼ if (curTemp < -900) { sumNum--; } else { sumT += curTemp; if (curTemp > max) { max = curTemp; } if (curTemp < min) { min = curTemp; } } } if (sumNum == 0) { sumNum = 1; log.warn("---å½åç²®æ ééå¼å¸¸--"); } //è¿æ»¤æ¯è¾ç¨çæå¤§æå°å¼ if (max == ReMessageBuilder.MAX_TEMP) { max = 0.0; } if (min == ReMessageBuilder.MIN_TEMP) { min = 0.0; } outPut.setTemperature(temperature); outPut.setAvgTemperature(NumberUtil.keepPrecision((sumT / sumNum), 1) + ""); outPut.setMinTemperature(min + ""); outPut.setMaxTemperature(min + ""); JSONObject properties = new JSONObject(); properties.put("data", JSONObject.toJSONString(outPut)); properties.put("timestamp", grain.getTimestamp()); String height = this.getCacheHeight(device); if (StringUtils.isEmpty(height)) height = "0.0"; properties.put("liquidHeight", height); grain.setProperties(properties.toJSONString()); //å°è£ å¥½çæ°æ® log.info("---æµ åä»å°è£ 宿----å¼å§æ§è¡æ¨é"); reqData.setData(JSONObject.toJSONString(grain)); doPushGrain(reqData); } /** * ä»REDISä¸è·åæ¶²ä½é«åº¦ä¿¡æ¯ * * @param device * @return */ private String getCacheHeight(GatewayDevice device) { //ç»å ¶ä»è½¯ä½¿ç¨ String key = RedisConst.KEY_DEPOT_HEIGHT + ":" + configData.getCompanyId() + "_" + device.getDepotIdSys(); return (String) redisUtil.get(key); } /** * å¹³æ¿ä»ï¼è§£æç¬¬äºæ¥ï¼è§£æå°åæ æ°æ® * * @param temps * @throws Exception */ private void analysisAndPush1(List<Double> temps, BaseReqData reqData, THDto thDto, GrainCableData cableData) { GatewayDevice device = reqData.getDevice(); int cableZ = cableData.getCableZ(); int cableY = cableData.getCableY(); int cableX = cableData.getCableX(); //æ°æ®å°è£ GrainData grain = new GrainData(); grain.setMessageId(ScConstant.getMessageId()); grain.setDeviceId(device.getDeviceId()); grain.setTimestamp(System.currentTimeMillis() + ""); ClientHeaders headers = new ClientHeaders(); headers.setDeviceName(device.getDeviceName()); headers.setProductId(device.getProductId()); headers.setOrgId(device.getOrgId()); headers.setMsgId(reqData.getMessageId()); grain.setHeaders(headers); GrainOutPut outPut = new GrainOutPut(); double max = ReMessageBuilder.MAX_TEMP, min = ReMessageBuilder.MIN_TEMP, sumT = 0.0, sumNum = cableData.getSumNum(); List<GrainTemp> temperature = new ArrayList<>(); //æ ¹å· @@ -283,6 +443,7 @@ for (int i = 0; i < temps.size(); i++) { curTemp = temps.get(i); position = i; z = i % cableZ + 1; x = i / (cableZ * cableY); y = x * (cableZ * cableY); src/main/java/com/fzzy/protocol/data/GrainCableData.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,19 @@ package com.fzzy.protocol.data; import lombok.Data; @Data public class GrainCableData { private int cableZ; private int cableX; private int cableY; private int sumNum; private boolean isCir = false; } src/main/resources/application-devGateway.yml
@@ -34,7 +34,7 @@ dialect: org.hibernate.dialect.MySQL5InnoDBDialect # Redisç¸å ³é ç½® redis: database: 5 database: 0 host: 127.0.0.1 port: 6379 password: Redispwd.. src/main/resources/application-pro.yml
@@ -38,7 +38,7 @@ dialect: org.hibernate.dialect.MySQL5InnoDBDialect # Redisç¸å ³é ç½® redis: database: 1 database: 0 host: 127.0.0.1 port: 6379 password: Redispwd.. src/main/resources/application-pro5012.yml
@@ -35,7 +35,7 @@ dialect: org.hibernate.dialect.MySQL5InnoDBDialect # Redisç¸å ³é ç½® redis: database: 5 database: 0 host: 127.0.0.1 port: 6379 password: src/main/resources/application-pro5303.yml
@@ -38,7 +38,7 @@ dialect: org.hibernate.dialect.MySQL5InnoDBDialect # Redisç¸å ³é ç½® redis: database: 1 database: 0 host: 127.0.0.1 port: 6379 password: Abc123.. src/main/resources/application-proGateway.yml
@@ -35,7 +35,7 @@ dialect: org.hibernate.dialect.MySQL5InnoDBDialect # Redisç¸å ³é ç½® redis: database: 5 database: 0 host: 127.0.0.1 port: 6379 password: src/main/resources/application.yml
@@ -21,7 +21,7 @@ config: classpath:logback-spring.xml ########################## thymeleaf模æ¿é ç½® ########################## ########################## thymeleaf模æ¿é ç½® ########################## thymeleaf: prefix: classpath:/templates/ suffix: .html