8
想要实现自己的项目导入nacos模块(依赖的形式)后具有对应模块的功能,因为不想在原有的nacos代码结构中添加自己的模块代码,启动后无法初始化上下文。 springboot 2.6.3 nacos 2.0.4
`
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-console</artifactId>
<version>2.1.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>nacos-config</artifactId>
<groupId>com.alibaba.nacos</groupId>
</exclusion>
<exclusion>
<artifactId>nacos-api</artifactId>
<groupId>com.alibaba.nacos</groupId>
</exclusion>
<exclusion>
<artifactId>nacos-common</artifactId>
<groupId>com.alibaba.nacos</groupId>
</exclusion>
<exclusion>
<artifactId>nacos-client</artifactId>
<groupId>com.alibaba.nacos</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-auth</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-config</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-core</artifactId>
<version>2.1.0-SNAPSHOT</version>
</dependency>
`
求路过大佬支个招 谢谢