Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spacetech-cloud
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘晓滨
spacetech-cloud
Commits
f41f41db
Commit
f41f41db
authored
Nov 17, 2020
by
曹志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
growth
parent
ff0f3b11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
34 deletions
+52
-34
log.txt
log.txt
+0
-0
pom.xml
spacetech-common-util/pom.xml
+4
-8
MemcacheConfig.java
...pi/src/main/java/com/spacetech/config/MemcacheConfig.java
+22
-0
pom.xml
spacetech-service-growth/pom.xml
+13
-10
GrowthApiHubImpl.java
...src/main/java/com/spacetech/service/GrowthApiHubImpl.java
+1
-2
ProviderService.java
.../src/main/java/com/spacetech/service/ProviderService.java
+0
-0
application.yml
spacetech-service-growth/src/main/resources/application.yml
+12
-8
pom.xml
spacetech-service-interface/pom.xml
+0
-6
No files found.
log.txt
View file @
f41f41db
This diff is collapsed.
Click to expand it.
spacetech-common-util/pom.xml
View file @
f41f41db
...
@@ -162,12 +162,12 @@
...
@@ -162,12 +162,12 @@
<artifactId>
spring-web
</artifactId>
<artifactId>
spring-web
</artifactId>
</dependency>
</dependency>
<!--zookeeper 客户端工具包-->
<!-- <!–zookeeper 客户端工具包–>
<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
spacetech-service-api/src/main/java/com/spacetech/config/MemcacheConfig.java
0 → 100644
View file @
f41f41db
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
();
}
}
spacetech-service-growth/pom.xml
View file @
f41f41db
...
@@ -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 -->
<!-- <!– zookeeper client dependency –>
<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 -->
<!--
<!– zookeeper client dependency –>
<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-->
<!–排除这个slf4j-log4j12–>
<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>
...
...
spacetech-service-growth/src/main/java/com/spacetech/service/GrowthApiHubImpl.java
View file @
f41f41db
...
@@ -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
;
...
...
spacetech-service-growth/src/main/java/com/spacetech/service/ProviderService.java
View file @
f41f41db
This diff is collapsed.
Click to expand it.
spacetech-service-growth/src/main/resources/application.yml
View file @
f41f41db
...
@@ -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
...
...
spacetech-service-interface/pom.xml
View file @
f41f41db
...
@@ -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 流控-->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment