Commit f41f41db authored by 曹志's avatar 曹志

growth

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