This commit is contained in:
mensc 2024-06-23 01:17:37 +08:00
parent 0c8d7248d7
commit 19dc989933

View File

@ -1,17 +0,0 @@
package com.mtz.qqbot.Controller;
import com.mtz.qqbot.Listener.HandleMessageListener;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Controller
public class ListenerController {
@RequestMapping("/world")
public String test(Model model) {
model.addAttribute("messageCount", HandleMessageListener.messageCount);
return "world";
}
}