controller demo
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user