Browse Source

common移除mq,platform启动报错

by su 3 năm trước cách đây
mục cha
commit
2d87b83869

+ 8 - 8
4dkankan-center-platform/src/main/java/com/fdkankan/TestController.java

@@ -1,6 +1,6 @@
 package com.fdkankan;
 package com.fdkankan;
 
 
-import com.fdkankan.common.rocketmq.producer.MqSendMessage;
+//import com.fdkankan.common.rocketmq.producer.MqSendMessage;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
 
 
@@ -8,11 +8,11 @@ import javax.annotation.Resource;
 
 
 @RestController
 @RestController
 public class TestController {
 public class TestController {
-    @Resource
-    MqSendMessage mqSendMessage;
-    @GetMapping("/send")
-    private String sendTest(){
-        mqSendMessage.sendMessage("hello");
-        return "success";
-    }
+//    @Resource
+//    MqSendMessage mqSendMessage;
+//    @GetMapping("/send")
+//    private String sendTest(){
+//        mqSendMessage.sendMessage("hello");
+//        return "success";
+//    }
 }
 }