Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-message-channel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 319ac0e4
authored
Apr 22, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
09604223
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
src/main/java/cn/com/glsx/consumer/TestController.java
src/main/java/cn/com/glsx/consumer/TestController.java
View file @
319ac0e
package
cn
.
com
.
glsx
.
consumer
;
package
cn
.
com
.
glsx
.
consumer
;
import
cn.com.glsx.consumer.service.InfoService
;
import
com.alibaba.nacos.common.utils.MD5Utils
;
import
com.alibaba.nacos.common.utils.MD5Utils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
/**
/**
...
@@ -14,6 +17,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -14,6 +17,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
@Slf4j
@Slf4j
public
class
TestController
{
public
class
TestController
{
@Autowired
private
InfoService
infoService
;
@RequestMapping
(
"/test"
)
public
void
test
(
@RequestBody
String
data
){
infoService
.
processMessage
(
data
);
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
MD5Utils
.
md5Hex
(
"13476670746"
,
"utf-8"
));
System
.
out
.
println
(
MD5Utils
.
md5Hex
(
"13476670746"
,
"utf-8"
));
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment