controller demo
This commit is contained in:
parent
b4022fb1e1
commit
12d054589f
14
src/main/java/com/mtz/qqbot/Controller/testController.java
Normal file
14
src/main/java/com/mtz/qqbot/Controller/testController.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package com.mtz.qqbot.Controller;
|
||||||
|
|
||||||
|
import com.mtz.qqbot.Listener.HandleMessageListener;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class testController {
|
||||||
|
|
||||||
|
@GetMapping("/hello")
|
||||||
|
public String hello() {
|
||||||
|
return "好友群聊消息:" + HandleMessageListener.messageCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user