Commit 21e56eb4 by zhouhaibao

[+]启动类增加

1 parent 8ac85302
......@@ -94,18 +94,18 @@
<!-- apache commons end -->
<!-- swagger start -->
<dependency>
<!-- <dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
</dependency>-->
<!-- swagger end -->
<dependency>
<!-- <dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>platform-process</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependency>-->
</dependencies>
<build>
......
......@@ -3,10 +3,12 @@ package cn.com.glsx.charging;
import static java.time.ZoneId.of;
import static java.util.TimeZone.getTimeZone;
import cn.com.glsx.charging.modules.gbt.ocpp16.ServerMain;
import java.util.TimeZone;
import javax.annotation.PostConstruct;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
......@@ -23,7 +25,7 @@ import com.glsx.plat.context.EnableRestAdmin;
@EnableFeignClients(basePackages = {"cn.com.glsx.charging.*.api"})
@SpringBootApplication
@PropertySource("application.properties_standalone")
public class Application {
public class Application implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
......@@ -34,4 +36,8 @@ public class Application {
TimeZone.setDefault(getTimeZone(of("Asia/Shanghai")));
}
@Override
public void run(String... args) throws Exception {
ServerMain.start();
}
}
......@@ -77,7 +77,7 @@ public class ModelChargingRspData extends TcpData {
private byte lossCalRatio;
/**
* 0:00~0:30 时段费率号
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private byte periodRate1;
......@@ -127,5 +127,9 @@ public class ModelChargingRspData extends TcpData {
private byte periodRate45;
private byte periodRate46;
private byte periodRate47;
/**
* 0:00~0:30 时段费率号---- 23:30~0:00
*/
private byte periodRate48;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!