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
3732a819
Commit
3732a819
authored
Sep 08, 2022
by
王亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pom.
parent
0e067961
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
pom.xml
pom.xml
+22
-0
NettyServerApplication.java
src/main/java/com/netty/server/NettyServerApplication.java
+7
-0
No files found.
pom.xml
View file @
3732a819
...
@@ -66,6 +66,28 @@
...
@@ -66,6 +66,28 @@
<artifactId>
sentinel-datasource-apollo
</artifactId>
<artifactId>
sentinel-datasource-apollo
</artifactId>
<version>
1.8.3
</version>
<version>
1.8.3
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-sleuth
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-sleuth-zipkin
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.kafka
</groupId>
<artifactId>
spring-kafka
</artifactId>
</dependency>
<dependency>
<groupId>
cn.quantgroup.boot
</groupId>
<artifactId>
qg-micrometer-register-kafka-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.xuxueli
</groupId>
<artifactId>
xxl-job-core
</artifactId>
<version>
2.1.0
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/java/com/netty/server/NettyServerApplication.java
View file @
3732a819
...
@@ -3,12 +3,14 @@ package com.netty.server;
...
@@ -3,12 +3,14 @@ package com.netty.server;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
com.netty.server.server.TcpServer
;
import
com.netty.server.server.TcpServer
;
import
com.xxl.job.core.executor.impl.XxlJobSpringExecutor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationArguments
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.boot.ApplicationRunner
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.context.annotation.Bean
;
/**
/**
...
@@ -30,4 +32,9 @@ public class NettyServerApplication implements ApplicationRunner {
...
@@ -30,4 +32,9 @@ public class NettyServerApplication implements ApplicationRunner {
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
tcpServer
.
start
();
tcpServer
.
start
();
}
}
@Bean
(
initMethod
=
"start"
,
destroyMethod
=
"destroy"
)
public
XxlJobSpringExecutor
xxlJobSpringExecutor
()
{
return
null
;
}
}
}
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