后端微服务配置上线
This commit is contained in:
@@ -64,4 +64,33 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>2.7.5</version>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
<!--
|
||||
解决项目打包后运行如下报错
|
||||
no main manifest attribute, in /xxxx/xxxx-0.0.1-SNAPSHOT.jar
|
||||
refer: https://www.baeldung.com/spring-boot-fix-the-no-main-manifest-attribute
|
||||
-->
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
||||
@@ -3,3 +3,4 @@ spring:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 106.75.217.14:8488
|
||||
namespace: develop
|
||||
@@ -0,0 +1,6 @@
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8488
|
||||
namespace: production
|
||||
@@ -9,6 +9,7 @@ spring:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: public
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
|
||||
Reference in New Issue
Block a user