tanghc 4 years ago
parent 57d0ccbede
commit 6df91ddfda
  1. 2
      sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/SopAdminServerApplication.java
  2. 2
      sop-admin/sop-admin-server/src/main/resources/META-INF/sop-admin.properties

@ -2,9 +2,7 @@ package com.gitee.sop.adminserver;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication @SpringBootApplication
public class SopAdminServerApplication { public class SopAdminServerApplication {

@ -12,6 +12,8 @@ sop.sign-type=rsa
# nacos配置 # nacos配置
nacos.config.server-addr=${nacos.url} nacos.config.server-addr=${nacos.url}
nacos.discovery.server-addr=${nacos.url} nacos.discovery.server-addr=${nacos.url}
# nacos cloud配置
spring.cloud.nacos.discovery.server-addr=${nacos.url}
# 数据库配置 # 数据库配置
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

Loading…
Cancel
Save