Commit a06ca185 by jscat

修改: 重新调整nyx

parent 458814b5
## nyx项目
1. nyx-key-api
主要用于知识中心的相关api
\ No newline at end of file
主要用于接口服务和websocket的api
## maven编译命令
mvn clean package -DskipTests -e
## 运行jar包
java -jar nyx-key-api-1.0-SNAPSHOT.jar
备注: 本地运行需要注释掉
方法一,在配置类中把serverEndpointExporter方法注释掉,或者直接删掉
@Configuration
public class WebSocketConfig {
/**
* 注入ServerEndpointExporter,
* 这个bean会自动注册使用了@ServerEndpoint注解声明的Websocket endpoint
*/
// @Bean
// public ServerEndpointExporter serverEndpointExporter() {
// return new ServerEndpointExporter();
// }
}
链接:https://www.jianshu.com/p/21b1224d4066
## postman测试
AI股吧_nyx
......@@ -19,6 +19,14 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!-- Remove default web container -->
<!-- Tomcat, Jetty or Undertow ? -->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -237,6 +245,14 @@
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
......
......@@ -11,9 +11,9 @@ import org.springframework.web.socket.server.standard.ServerEndpointExporter;
@Configuration
public class WebSocketConfig {
@Bean
public ServerEndpointExporter serverEndpointExporter() {
return new ServerEndpointExporter();
}
//@Bean
//public ServerEndpointExporter serverEndpointExporter() {
// return new ServerEndpointExporter();
//}
}
\ No newline at end of file
......@@ -19,7 +19,7 @@ ss:
spring:
datasource:
rockwell_key:
url: jdbc:mysql://47.99.110.89:3308/rockwell_key?useUnicode=true&characterEncoding=utf-8&useSSL=false
url: jdbc:mysql://47.99.110.89:33061/rockwell_key?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: rockwell_dev
password: 123456
driver-class-name: com.mysql.jdbc.Driver
......@@ -33,7 +33,7 @@ spring:
connection-timeout: 30000
connection-test-query: SELECT 1
rockwell_msg:
url: jdbc:mysql://47.99.110.89:3308/rockwell_msg?useUnicode=true&characterEncoding=utf-8&useSSL=false
url: jdbc:mysql://47.99.110.89:33061/rockwell_msg?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: rockwell_dev
password: 123456
driver-class-name: com.mysql.jdbc.Driver
......@@ -47,7 +47,7 @@ spring:
connection-timeout: 30000
connection-test-query: SELECT 1
rockwell_user:
url: jdbc:mysql://47.99.110.89:3308/rockwell_user?useUnicode=true&characterEncoding=utf-8&useSSL=false
url: jdbc:mysql://47.99.110.89:33061/rockwell_user?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: rockwell_dev
password: 123456
driver-class-name: com.mysql.jdbc.Driver
......
......@@ -181,27 +181,6 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
</jvmArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.2.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<properties>
<application.active.profile>dev</application.active.profile>
</properties>
......@@ -225,18 +204,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
</jvmArguments>
</configuration>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.2.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论