Commit f41f41db authored by 曹志's avatar 曹志

growth

parent ff0f3b11
This diff is collapsed.
......@@ -162,12 +162,12 @@
<artifactId>spring-web</artifactId>
</dependency>
<!--zookeeper 客户端工具包-->
<!-- &lt;!&ndash;zookeeper 客户端工具包&ndash;&gt;
<dependency>
<groupId>com.github.sgroschupf</groupId>
<artifactId>zkclient</artifactId>
<version>0.1</version>
</dependency>
</dependency>-->
<!--自定义工具包[fastjson,StringUtils]-->
<dependency>
......@@ -180,12 +180,7 @@
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
<optional>true</optional>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.spacetech.config;
import com.spacetech.framework.SystemContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* 配置Memcache
*/
@Configuration
public class MemcacheConfig {
@Bean(initMethod = "init")
public SystemContext systemContext(){
return new SystemContext();
}
}
......@@ -22,7 +22,7 @@
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-dubbo</artifactId>
</dependency>
<!-- zookeeper client dependency -->
<!-- &lt;!&ndash; zookeeper client dependency &ndash;&gt;
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
......@@ -32,8 +32,9 @@
<groupId>org.apache.zookeeper</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- zookeeper client dependency -->
</dependency>-->
<!--
&lt;!&ndash; zookeeper client dependency &ndash;&gt;
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>
......@@ -42,7 +43,7 @@
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.6</version>
<!--排除这个slf4j-log4j12-->
&lt;!&ndash;排除这个slf4j-log4j12&ndash;&gt;
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
......@@ -50,6 +51,7 @@
</exclusion>
</exclusions>
</dependency>
-->
<dependency>
......@@ -61,12 +63,12 @@
<groupId>com.spacetech</groupId>
<artifactId>spacetech-common-util</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<!-- <exclusions>
<exclusion>
<artifactId>zookeeper</artifactId>
<groupId>org.apache.zookeeper</groupId>
</exclusion>
</exclusions>
</exclusions>-->
</dependency>
<!-- <dependency>
<groupId>org.springframework.cloud</groupId>
......@@ -98,6 +100,7 @@
<artifactId>ant</artifactId>
<version>1.10.3</version>
</dependency>
</dependencies>
<build>
<plugins>
......
......@@ -22,8 +22,7 @@ import com.spacetech.common.utils.StringUtil;
import com.spacetech.gateway.GrowthApiHub;
@Service(interfaceClass = GrowthApiHub.class)
@Service(interfaceClass = GrowthApiHub.class, protocol = "dubbo")
public class GrowthApiHubImpl implements GrowthApiHub {
@Autowired
private MonthIndexService monthIndexService;
......
......@@ -56,22 +56,26 @@ dubbo:
protocol:
name: dubbo
port: -1
id: dubbo
registries:
zk:
address: zookeeper://localhost:2181
# nacos:
# address: nacos://10.10.10.221:8848
cloud:
address: spring-cloud://10.10.10.221:8848
# registries:
# zk:
# address: zookeeper://localhost:2181
## nacos:
## address: nacos://10.10.10.221:8848
# cloud:
# address: spring-cloud://10.10.10.221:8848
cloud:
subscribed-services: '*'
scan:
base-packages: com.spacetech.service
registry:
address: spring-cloud://10.10.10.221:8848
consumer:
check: false
#system:
# context:
# memcacheIp: 10.10.10.190:33332
......
......@@ -23,12 +23,6 @@
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
<exclusions>
<exclusion>
<artifactId>jsr311-api</artifactId>
<groupId>javax.ws.rs</groupId>
</exclusion>
</exclusions>
</dependency>
<!--sentinel 流控-->
......
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