| | |
| | | </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>--> |
| | |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | | // webSocketServer.start(); |
| | | webSocketServer.start(); |
| | | } |
| | | } |
| | |
| | | .channel(NioServerSocketChannel.class) |
| | | .childHandler(webSocketServerInitializer); |
| | | |
| | | channelFuture = b.bind(9999).sync(); |
| | | channelFuture = b.bind(9998).sync(); |
| | | |
| | | log.info("[websocket服务器启动完成]-->{}", channelFuture.channel().localAddress()); |
| | | } finally { |
| | |
| | | server: |
| | | port: 8888 |
| | | port: 8889 |
| | | servlet: |
| | | context-path: / |
| | | |
| | |
| | | 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: |