后端微服务配置上线
This commit is contained in:
		@@ -126,6 +126,18 @@
 | 
			
		||||
                        </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>
 | 
			
		||||
 
 | 
			
		||||
@@ -7,3 +7,4 @@ spring:
 | 
			
		||||
    nacos:
 | 
			
		||||
      discovery:
 | 
			
		||||
        server-addr: 106.75.217.14:8488
 | 
			
		||||
        namespace: develop
 | 
			
		||||
@@ -0,0 +1,10 @@
 | 
			
		||||
spring:
 | 
			
		||||
  datasource:
 | 
			
		||||
    url: jdbc:mysql://127.0.0.1:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
 | 
			
		||||
    username: epp
 | 
			
		||||
    password: NJ4ED7LKGJy4fBc5
 | 
			
		||||
  cloud:
 | 
			
		||||
    nacos:
 | 
			
		||||
      discovery:
 | 
			
		||||
        server-addr: 127.0.0.1:8488
 | 
			
		||||
        namespace: production
 | 
			
		||||
@@ -15,6 +15,7 @@ spring:
 | 
			
		||||
    nacos:
 | 
			
		||||
      discovery:
 | 
			
		||||
        server-addr: 127.0.0.1:8848
 | 
			
		||||
        namespace: public
 | 
			
		||||
  datasource:
 | 
			
		||||
    type: com.alibaba.druid.pool.DruidDataSource
 | 
			
		||||
    driver-class-name: com.mysql.cj.jdbc.Driver
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user