浏览代码

fix 修改接口

daiyihua 1 年之前
父节点
当前提交
a1448a06d5
共有 3 个文件被更改,包括 2 次插入9 次删除
  1. 1 1
      pom.xml
  2. 0 7
      src/main/java/com/ywt/mg/Main.java
  3. 1 1
      src/main/resources/application.properties

+ 1 - 1
pom.xml

@@ -14,7 +14,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>2.0.5.RELEASE</version>
+        <version>2.7.6</version>
         <relativePath/> <!-- lookup parent from repository -->
     </parent>
 

+ 0 - 7
src/main/java/com/ywt/mg/Main.java

@@ -1,18 +1,11 @@
 package com.ywt.mg;
 
-import com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;
-import com.ywt.rpc.core.RestServerStarter;
 import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
 import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.scheduling.annotation.EnableScheduling;
 
 @SpringBootApplication
 @EnableDubbo
-@EnableNacosDiscovery
 public class Main {
 
     public static void main(String[] args) {

+ 1 - 1
src/main/resources/application.properties

@@ -16,7 +16,7 @@ dubbo.application.logger=slf4j
 dubbo.application.qos-enable=false
 dubbo.application.register-mode=instance
 dubbo.registry.address=nacos://192.168.3.206:8848
-#dubbo.registry.parameters.namespace=158d2091-d8d8-4ef5-81f0-497747cf95a5
+dubbo.registry.parameters.namespace=158d2091-d8d8-4ef5-81f0-497747cf95a5
 dubbo.protocol.name=tri
 dubbo.protocol.port=10998
 dubbo.consumer.retries=0