Helius
2021-05-26 24ed993dac6466b5dfe9a84c4b0a4087f95dcd1f
modify
4 files modified
28 ■■■■ changed files
pom.xml 10 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/ExcoinApplication.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/netty/server/WebSocketServer.java 2 ●●● patch | view | raw | blame | history
src/main/resources/application.yml 14 ●●●● patch | view | raw | blame | history
pom.xml
@@ -218,11 +218,11 @@
        </dependency>
<!--        <dependency>-->
<!--            <groupId>io.netty</groupId>-->
<!--            <artifactId>netty-all</artifactId>-->
<!--            <version>${netty.version}</version>-->
<!--        </dependency>-->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
            <version>${netty.version}</version>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>com.squareup.okhttp3</groupId>-->
src/main/java/com/xcong/excoin/ExcoinApplication.java
@@ -32,6 +32,6 @@
    @Override
    public void run(String... args) throws Exception {
//        webSocketServer.start();
        webSocketServer.start();
    }
}
src/main/java/com/xcong/excoin/netty/server/WebSocketServer.java
@@ -36,7 +36,7 @@
                    .channel(NioServerSocketChannel.class)
                    .childHandler(webSocketServerInitializer);
            channelFuture = b.bind(9999).sync();
            channelFuture = b.bind(9998).sync();
            log.info("[websocket服务器启动完成]-->{}", channelFuture.channel().localAddress());
        } finally {
src/main/resources/application.yml
@@ -1,5 +1,5 @@
server:
  port: 8888
  port: 8889
  servlet:
    context-path: /
@@ -7,12 +7,12 @@
  profiles:
    active: dev
  datasource:
    url: jdbc:mysql://154.91.195.170:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
    username: yd_otc
    password: yd_otc123!@#
#    url: jdbc:mysql://120.27.238.55:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
#    username: ct_test
#    password: 123456
#    url: jdbc:mysql://154.91.195.170:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
#    username: yd_otc
#    password: yd_otc123!@#
    url: jdbc:mysql://120.27.238.55:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
    username: ct_test
    password: 123456
    driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid: