Browse Source

升级:平台升级-端口号修改

zhongwei
ty 5 months ago
parent
commit
ba30716356
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfigHzims.java
  2. 16
      hzims-service/hzims-alarm/src/test/java/com/hnac/hzims/alarm/MiddleApplicationTests.java
  3. 15
      hzims-service/hzims-basic/src/test/java/com/hnac/hzims/basic/BasicApplicationTests.java
  4. 5
      hzims-service/hzims-big-model/pom.xml
  5. 30
      hzims-service/hzims-middle/src/test/java/com/hnac/hzims/middle/MiddleApplicationTests.java
  6. 2
      hzims-service/inspect/src/main/resources/template/template.yml
  7. 4
      hzims-service/ticket/pom.xml
  8. 2
      hzims-service/ticket/src/main/resources/template/template.yml
  9. 45
      hzims-service/ticket/src/test/java/com/hnac/hzims/ticket/launcher/DemoTestLauncherServiceImpl.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfig.java → hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfigHzims.java

@ -20,7 +20,7 @@ import java.util.Collections;
@Component
@Slf4j
public class MqttConfig {
public class MqttConfigHzims {
@Autowired
FdpMqttConsumer fdpMqttConsumer;

16
hzims-service/hzims-alarm/src/test/java/com/hnac/hzims/alarm/MiddleApplicationTests.java

@ -1,16 +0,0 @@
package com.hnac.hzims.alarm;
import com.hnac.hzims.AlarmApplication;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest(classes = AlarmApplication.class)
class AlarmApplicationTests {
@Test
void contextLoads() {
System.out.println("1");
}
}

15
hzims-service/hzims-basic/src/test/java/com/hnac/hzims/basic/BasicApplicationTests.java

@ -1,15 +0,0 @@
package com.hnac.hzims.basic;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest(classes = BasicApplication.class)
class BasicApplicationTests {
@Test
void contextLoads() {
System.out.println("1");
}
}

5
hzims-service/hzims-big-model/pom.xml

@ -27,7 +27,10 @@
<version>4.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
</dependency>
<!-- spring-boot-websocket start -->
<dependency>
<groupId>org.springframework.boot</groupId>

30
hzims-service/hzims-middle/src/test/java/com/hnac/hzims/middle/MiddleApplicationTests.java

@ -1,15 +1,15 @@
package com.hnac.hzims.middle;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest(classes = MiddleApplication.class)
class MiddleApplicationTests {
@Test
void contextLoads() {
System.out.println("1");
}
}
//package com.hnac.hzims.middle;
//
//import org.junit.jupiter.api.Test;
//import org.springframework.boot.test.context.SpringBootTest;
//
//@SpringBootTest(classes = MiddleApplication.class)
//class MiddleApplicationTests {
//
// @Test
// void contextLoads() {
//
// System.out.println("1");
// }
//
//}

2
hzims-service/inspect/src/main/resources/template/template.yml

@ -1,6 +1,6 @@
#服务器端口
server:
port: 8200
port: 8132
##oss配置
oss:

4
hzims-service/ticket/pom.xml

@ -44,6 +44,10 @@
<artifactId>ticket-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
</dependency>
<dependency>
<groupId>com.hnac.hzims</groupId>
<artifactId>common-api</artifactId>
</dependency>

2
hzims-service/ticket/src/main/resources/template/template.yml

@ -1,6 +1,6 @@
#服务器端口
server:
port: 8200
port: 8216
#oss配置
oss:

45
hzims-service/ticket/src/test/java/com/hnac/hzims/ticket/launcher/DemoTestLauncherServiceImpl.java

@ -1,45 +0,0 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package com.hnac.hzims.ticket.launcher;
import org.springblade.core.auto.service.AutoService;
import org.springblade.core.launch.service.LauncherService;
import org.springframework.boot.builder.SpringApplicationBuilder;
import java.util.Properties;
/**
* 启动参数拓展
*
* @author Chill
*/
@AutoService(LauncherService.class)
public class DemoTestLauncherServiceImpl implements LauncherService {
@Override
public void launcher(SpringApplicationBuilder builder, String appName, String profile, boolean isLocalDev) {
Properties props = System.getProperties();
props.setProperty("spring.cloud.nacos.discovery.server-addr", "http://175.6.40.67:3301");
props.setProperty("spring.cloud.nacos.config.server-addr", "http://175.6.40.67:3301");
//props.setProperty("spring.cloud.sentinel.transport.dashboard", LauncherConstant.SENTINEL_DEV_ADDR);
}
@Override
public int getOrder() {
return 10;
}
}
Loading…
Cancel
Save