Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nyx
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
发现
nyx
Commits
a06ca185
Commit
a06ca185
authored
Feb 12, 2024
by
jscat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改: 重新调整nyx
parent
458814b5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
60 行增加
和
49 行删除
+60
-49
app/nyx_app_key/README.md
+29
-2
app/nyx_app_key/api/pom.xml
+16
-0
app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/config/WebSocketConfig.java
+5
-4
app/nyx_app_key/api/src/main/resources/config/application-dev.yml
+3
-3
app/nyx_app_key/pom.xml
+7
-40
没有找到文件。
app/nyx_app_key/README.md
查看文件 @
a06ca185
## 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
app/nyx_app_key/api/pom.xml
查看文件 @
a06ca185
...
...
@@ -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>
...
...
app/nyx_app_key/api/src/main/java/cn/com/fun/nyxkey/api/config/WebSocketConfig.java
查看文件 @
a06ca185
...
...
@@ -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
app/nyx_app_key/api/src/main/resources/config/application-dev.yml
查看文件 @
a06ca185
...
...
@@ -19,7 +19,7 @@ ss:
spring
:
datasource
:
rockwell_key
:
url
:
jdbc:mysql://47.99.110.89:330
8
/rockwell_key?useUnicode=true&characterEncoding=utf-8&useSSL=false
url
:
jdbc:mysql://47.99.110.89:330
61
/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:330
8
/rockwell_msg?useUnicode=true&characterEncoding=utf-8&useSSL=false
url
:
jdbc:mysql://47.99.110.89:330
61
/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:330
8
/rockwell_user?useUnicode=true&characterEncoding=utf-8&useSSL=false
url
:
jdbc:mysql://47.99.110.89:330
61
/rockwell_user?useUnicode=true&characterEncoding=utf-8&useSSL=false
username
:
rockwell_dev
password
:
123456
driver-class-name
:
com.mysql.jdbc.Driver
...
...
app/nyx_app_key/pom.xml
查看文件 @
a06ca185
...
...
@@ -143,7 +143,7 @@
<artifactId>
spring-boot-configuration-processor
</artifactId>
<optional>
true
</optional>
</dependency>
</dependencies>
</dependencyManagement>
...
...
@@ -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>
...
...
@@ -221,24 +200,12 @@
</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>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
<properties>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论