Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
qg-push
Commits
0e067961
Commit
0e067961
authored
Sep 08, 2022
by
王亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pom.
parent
38fe7fee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
25 deletions
+37
-25
pom.xml
pom.xml
+32
-24
NettyServerApplication.java
src/main/java/com/netty/server/NettyServerApplication.java
+4
-0
app.properties
src/main/resources/META-INF/app.properties
+1
-1
No files found.
pom.xml
View file @
0e067961
...
...
@@ -13,50 +13,58 @@
<version>
0.0.1-SNAPSHOT
</version>
<name>
websocket-server
</name>
<description>
Demo project for Spring Boot
</description>
<properties>
<java.version>
11
</java.version>
<netty-all.version>
4.1.75.Final
</netty-all.version>
<fastjson.version>
1.2.80
</fastjson.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<groupId>
cn.quantgroup.boot
</groupId>
<artifactId>
qg-web-starter
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-jdbc
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
<optional>
true
</optional>
<groupId>
cn.quantgroup.boot
</groupId>
<artifactId>
qg-discovery-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
io.netty
</groupId>
<artifactId>
netty-all
</artifactId>
<version>
${netty-all.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
${fastjson.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
s
pring-boot-starter-web
</artifactId>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
s
entinel-web-servlet
</artifactId>
</dependency>
<!-- 添加redis依赖模块 -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<version>
2.0.6.RELEASE
</version>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-sentinel
</artifactId>
</dependency>
<dependency>
<groupId>
org.hibernate.validator
</groupId>
<artifactId>
hibernate-validator
</artifactId>
<version>
6.2.0.Final
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.csp
</groupId>
<artifactId>
sentinel-datasource-apollo
</artifactId>
<version>
1.8.3
</version>
</dependency>
</dependencies>
...
...
src/main/java/com/netty/server/NettyServerApplication.java
View file @
0e067961
package
com
.
netty
.
server
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
com.netty.server.server.TcpServer
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
/**
...
...
@@ -14,6 +16,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
*/
@SpringBootApplication
@RequiredArgsConstructor
@EnableApolloConfig
@EnableDiscoveryClient
public
class
NettyServerApplication
implements
ApplicationRunner
{
private
final
TcpServer
tcpServer
;
...
...
src/main/resources/META-INF/app.properties
View file @
0e067961
app.id
=
websocket-server
namespace
=
application,tech.common,tech.sleuth,tech.service.urls
\ No newline at end of file
namespace
=
application,tech.common,tech.sleuth,tech.service.urls,tech.supply
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment