Commit c5760d13 authored by 曹志's avatar 曹志

处理配置

parent bb8d2878
This diff is collapsed.
......@@ -17,16 +17,6 @@
<dependencies>
<!--nacos服务发现-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!--nacos注册中心-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!--dubbo-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
......@@ -81,8 +71,8 @@
<dependency>
<groupId>com.spacetech</groupId>
<artifactId>spacetech-common-utils</artifactId>
<version>1.0-SNAPSHOT</version>
<artifactId>spacetech-common-util</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>zookeeper</artifactId>
......@@ -97,8 +87,8 @@
<dependency>
<groupId>com.spacetech</groupId>
<artifactId>spacetech-gateway</artifactId>
<version>1.0-SNAPSHOT</version>
<artifactId>spacetech-service-interface</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
......
......@@ -4,9 +4,11 @@ package com.spacetech;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplication
@EnableDiscoveryClient
@EnableJpaRepositories(basePackages = "com.spacetech.dao")
public class GrowthApplication {
......
......@@ -56,7 +56,7 @@ dubbo:
protocol:
name: dubbo
port: -1
# serialization: kryo
registries:
zk:
......
......@@ -7,16 +7,16 @@ spring:
discovery:
server-addr: ${nacos.server.addr}
# 配置中心,使用时开启
config:
server-addr: ${nacos.server.addr}
file-extension: yaml
# config:
# server-addr: ${nacos.server.addr}
# file-extension: yaml
# extension-configs:
# - data-id: logback-spring.xml # 日志配置
# group: COMMON-GROUP
# refresh: true
main:
web-application-type: none
# main:
# web-application-type: none
nacos:
server:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment