-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
523 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
*.iml | ||
out | ||
gen | ||
|
||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
dubbo-demo/debri-data-provider/src/main/java/com/geek/domain/Security.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.geek.domain; | ||
|
||
/** | ||
* Created by Liuqi | ||
* Date: 2017/5/19. | ||
*/ | ||
@Entity | ||
@ | ||
public class Security { | ||
} |
2 changes: 1 addition & 1 deletion
2
...va/com/geek/provider/TestServiceImpl.java → ...n/java/com/geek/test/TestServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.geek.provider; | ||
package com.geek.test; | ||
|
||
import com.geek.api.TestService; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
dubbo-demo/debri-openAPI/src/main/java/com/geek/web/HttpSessionConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.geek.web; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; | ||
|
||
/** | ||
* Created by Liuqi | ||
* Date: 2017/5/7. | ||
*/ | ||
@Configuration | ||
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 1800)//session超时时间1800秒 | ||
public class HttpSessionConfig { | ||
} |
13 changes: 13 additions & 0 deletions
13
dubbo-demo/debri-openAPI/src/main/java/com/geek/web/UserController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.geek.web; | ||
|
||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
/** | ||
* Created by Liuqi | ||
* Date: 2017/5/7. | ||
*/ | ||
@EnableAutoConfiguration | ||
@RestController | ||
public class UserController { | ||
} |
22 changes: 22 additions & 0 deletions
22
dubbo-demo/debri-openAPI/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# REDIS (RedisProperties) | ||
# Redis数据库索引(默认为0) | ||
spring.redis.database=0 | ||
# Redis服务器地址 | ||
spring.redis.host=127.0.0.1 | ||
# Redis服务器连接端口 | ||
spring.redis.port=6379 | ||
|
||
# Redis服务器连接密码(默认为空) | ||
#spring.redis.password=123456 | ||
|
||
# 连接池最大连接数(使用负值表示没有限制) | ||
spring.redis.pool.max-active=8 | ||
# 连接池最大阻塞等待时间(使用负值表示没有限制) | ||
spring.redis.pool.max-wait=-1 | ||
# 连接池中的最大空闲连接 | ||
spring.redis.pool.max-idle=8 | ||
# 连接池中的最小空闲连接 | ||
spring.redis.pool.min-idle=2 | ||
# 连接超时时间(毫秒) | ||
spring.redis.timeout=10 | ||
spring.session.store-type=redis |
16 changes: 16 additions & 0 deletions
16
dubbo-demo/debri-openAPI/src/main/resources/applicationContext.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<bean id="postDataServiceMap" class="java.util.HashMap"> | ||
<constructor-arg> | ||
<map> | ||
<entry key="debri.sync"> | ||
<bean class="com" | ||
</entry> | ||
</map> | ||
</constructor-arg> | ||
</bean> | ||
|
||
</beans> |
14 changes: 14 additions & 0 deletions
14
dubbo-demo/debri-openAPI/src/main/resources/dubbo-service.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> | ||
|
||
<!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 --> | ||
<dubbo:application name="dearbinge-parkingspot-consumer" /> | ||
<!-- 使用zookeeper广播注册中心暴露发现服务地址 --> | ||
<dubbo:registry address="zookeeper://192.168.1.118:2181" /> | ||
<!-- 生成远程服务代理,可以和本地bean一样使用demoService --> | ||
<dubbo:reference id="securityService" | ||
interface="com.dearbinge.data.api.SecurityService" timeout="100000" | ||
retries="0" /> | ||
</beans> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>liu</artifactId> | ||
<groupId>geek.com</groupId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>dubbo-demo</artifactId> | ||
|
||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.