Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-concurrent-action
Project
Project
Details
Activity
Releases
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
刘凯
java-concurrent-action
Commits
2bb53c82
Commit
2bb53c82
authored
Mar 12, 2019
by
刘凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加netty引入
parent
3b7f8f79
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
579 additions
and
10 deletions
+579
-10
build.gradle
build.gradle
+190
-8
gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+2
-2
AccordService.java
...main/java/com/example/demo/designModel/AccordService.java
+30
-0
ErrorCode.java
src/main/java/com/example/demo/designModel/ErrorCode.java
+357
-0
No files found.
build.gradle
View file @
2bb53c82
description
=
'demo'
apply
plugin:
'org.sonarqube'
buildscript
{
ext
{
springBootVersion
=
'
2.0.6
.RELEASE'
springBootVersion
=
'
1.5.14
.RELEASE'
}
repositories
{
mavenLocal
()
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
mavenCentral
()
}
dependencies
{
classpath
"io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE"
classpath
'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5'
//sonarqube
classpath
(
"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
)
classpath
'org.springframework.build.gradle:propdeps-plugin:0.0.7'
}
}
apply
plugin:
'maven'
apply
plugin:
'java'
apply
plugin:
'idea'
apply
plugin:
'eclipse'
apply
plugin:
'jacoco'
apply
plugin:
"io.spring.dependency-management"
apply
plugin:
'org.springframework.boot'
apply
plugin:
'io.spring.dependency-management'
apply
plugin:
'propdeps'
test
{
ignoreFailures
=
true
}
group
=
'c
om.example
'
group
=
'c
n.com.duiba
'
version
=
'0.0.1-SNAPSHOT'
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
jar
{
baseName
=
'demo'
version
=
''
}
configurations
{
all
*.
exclude
group:
'log4j'
,
module:
'log4j'
all
*.
exclude
group:
'org.slf4j'
,
module:
'slf4j-log4j12'
all
*.
exclude
group:
'javax.servlet'
,
module:
'servlet-api'
//servlet 2.5
all
*.
exclude
group:
'com.vaadin.external.google'
,
module:
'android-json'
//servlet 2.5
}
repositories
{
mavenLocal
()
maven
{
url
"http://nexus.dui88.com:8081/nexus/content/groups/public/"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
//sonarqube
maven
{
url
'http://repo.spring.io/plugins-release'
}
mavenCentral
()
}
ext
[
'hazelcast.version'
]=
'3.11'
dependencyManagement
{
resolutionStrategy
{
cacheChangingModulesFor
0
,
"seconds"
}
dependencies
{
imports
{
mavenBom
'cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.249'
mavenBom
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom
'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4'
}
}
}
dependencies
{
implementation
(
'org.springframework.boot:spring-boot-starter-web'
)
testImplementation
(
'org.springframework.boot:spring-boot-starter-test'
)
compile
'cn.com.duiba.boot:spring-boot-starter-perftest'
compile
'cn.com.duiba.boot:spring-boot-starter-cat'
compile
'cn.com.duiba.boot:spring-boot-starter-xss'
compile
'cn.com.duiba.boot:spring-boot-starter-accesslog'
compile
'cn.com.duiba.boot:spring-boot-starter-logger'
compile
'cn.com.duiba.boot:spring-boot-starter-redis'
compile
'cn.com.duiba.boot:spring-boot-starter-rocketmq'
compile
(
"cn.com.duiba.boot:spring-boot-starter-velocity"
)
compile
'org.springframework.boot:spring-boot-starter-web'
compile
"org.springframework.boot:spring-boot-starter-test"
compile
'org.springframework.boot:spring-boot-starter-actuator'
compile
'org.springframework.cloud:spring-cloud-starter-config'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
compile
'org.springframework.cloud:spring-cloud-starter-netflix-ribbon'
compile
'org.springframework.cloud:spring-cloud-starter-openfeign'
compile
(
'cn.com.duiba.goods-center:goods-center-api:2.6.0-SNAPSHOT'
)
{
transitive
=
false
}
compile
'cn.com.duiba.consumer-center:consumer-center-api:1.2.20'
compile
'cn.com.duiba.activity-comm-center:activity-common-api:1.1.37-SNAPSHOT'
compile
(
'cn.com.duiba.plugin-center:plugin-center-api:1.0.18-SNAPSHOT'
)
{
transitive
=
false
}
compile
(
'cn.com.duiba.developer-center:developer-center-api:3.2.2-SNAPSHOT'
)
{
transitive
=
false
}
compile
(
'cn.com.duiba.activity-center:activity-center-api:2.9.11-SNAPSHOT'
)
compile
(
'cn.com.duiba.activity-custom-center:activity-custom-center-api:0.1.8'
){
transitive
=
false
}
compile
(
'cn.com.duiba:kvtable-service-api:1.3.21-SNAPSHOT'
)
compile
(
'cn.com.duiba.prize-center:prize-center-api:1.0.16-SNAPSHOT'
)
compile
(
'cn.com.duiba.odps-center:odps-center-api:1.0.12'
)
compile
(
'cn.com.duiba.trade-center:trade-center-api:2.1.22-SNAPSHOT'
){
transitive
=
false
}
compile
(
'cn.com.duiba.thirdparty-service:thirdparty-service-api:1.0.15-SNAPSHOT'
)
compile
(
'cn.com.duiba.hdtool-center:hdtool-center-api:1.1.13-SNAPSHOT'
)
compile
(
"cn.com.duiba:dcommons-base:0.3"
)
{
transitive
=
false
}
compile
(
"cn.com.duiba:dcommons-flowwork-client:1.3.1.coupon-SNAPSHOT"
)
{
transitive
=
false
}
compile
"cn.com.duiba.idmaker-service:idmaker-service-api:1.2.19"
compile
'cn.com.duiba:java-sdk:0.0.16'
compile
'cn.com.duiba:biz-tool:1.5.6'
compile
'cn.com.duiba:duiba-api:0.0.13'
compile
(
"com.101tec:zkclient:0.5"
)
{
transitive
=
false
}
compile
'com.alibaba:fastjson:1.2.47'
compile
'com.google.guava:guava:18.0'
compile
'commons-io:commons-io:2.4'
compile
(
"commons-validator:commons-validator:1.3.1"
)
compile
'org.apache.commons:commons-collections4:4.1'
compile
'org.apache.commons:commons-lang3:3.4'
compile
'org.slf4j:log4j-over-slf4j:1.7.25'
compile
'org.slf4j:slf4j-api:1.7.25'
compile
(
"com.google.guava:guava:18.0"
)
compile
'com.github.ben-manes.caffeine:caffeine:2.6.2'
compile
(
"cn.com.duiba:biz-tool:1.5.1"
)
compile
(
"org.aspectj:aspectjweaver:1.8.11"
)
compile
(
"org.apache.zookeeper:zookeeper:3.4.8"
)
compile
'javax.validation:validation-api:1.1.0.Final'
compile
'io.springfox:springfox-swagger-ui:2.5.0'
compile
'io.springfox:springfox-swagger2:2.5.0'
//集卡
compile
(
'cn.com.duiba:collect-card-center-api:1.0.0-SNAPSHOT'
)
//阿里云文件上传
compile
'com.aliyun.oss:aliyun-sdk-oss:3.1.0'
compile
'com.aliyun:aliyun-java-sdk-cdn:2.6.0'
compile
'com.aliyun:aliyun-java-sdk-core:3.2.9'
compile
(
'commons-fileupload:commons-fileupload:1.2.1'
)
compile
'com.dangdang:elastic-job-core:1.0.6'
compile
'com.dangdang:elastic-job-spring:1.0.6'
//腾讯
compile
(
"cn.xsshome:taip:4.2.2"
)
//工行sdk
compile
(
'com.icbc:icbc-api-sdk-cop:1.0'
)
// 招行sdk
compile
(
'com.cmb:auth-sdk:20180917'
)
//netty
compile
group:
'io.netty'
,
name:
'netty-all'
,
version:
'4.1.32.Final'
compile
(
'com.dyuproject.protostuff:protostuff-core:1.0.8'
)
compile
(
'com.dyuproject.protostuff:protostuff-runtime:1.0.8'
)
compile
(
'org.apache.zookeeper:zookeeper:3.4.8'
)
compile
(
'org.objenesis:objenesis:2.1'
)
// compile fileTree(dir: 'lib', includes: ['*.jar'])
// compile files('lib/icbc-api-sdk-cop.jar')
testCompile
'org.springframework.boot:spring-boot-starter-test'
}
install
{
//
enabled
=
false
}
uploadArchives
{
//
enabled
=
false
}
uploadArchives
{
repositories
{
mavenDeployer
{
snapshotRepository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/snapshots/"
)
{
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
repository
(
url:
"http://nexus.dui88.com:8081/nexus/content/repositories/releases/"
)
{
authentication
(
userName:
"admin"
,
password:
"admin123"
)
}
pom
.
project
{
name
project
.
name
packaging
'jar'
description
project
.
name
url
'www.duiba.com.cn'
scm
{
url
''
connection
''
developerConnection
''
}
licenses
{
license
{
name
'No License'
url
'http://www.duiba.com.cn'
distribution
'repo'
}
}
developers
{
developer
{
id
'xuhengfei'
name
'Hengfei Xu'
}
}
}
}
}
}
task
listJars
(
description:
'Display all compile jars.'
)
<<
{
configurations
.
compile
.
each
{
File
file
->
println
file
.
name
}
}
gradle/wrapper/gradle-wrapper.properties
View file @
2bb53c82
#Tue
Feb 06 12:27:20 CET 2018
#Tue
Mar 12 13:48:23 CST 2019
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.8.1-
bin
.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.8.1-
all
.zip
src/main/java/com/example/demo/designModel/AccordService.java
0 → 100644
View file @
2bb53c82
package
com
.
example
.
demo
.
designModel
;
/**
* @author liukai
* @Description: TODO
* @date 2019/2/2711:02 AM
*/
public
interface
AccordService
{
/**
* 处理请求
* @param chain
* @return
*/
public
ErrorCode
dealwith
(
Chain
chain
);
interface
Chain
{
/**
* 获取请求BO对象
* @return
*/
ErrorCode
getAppItemVerificateBo
();
/**
* 转发请求
* @param test
* @return
*/
ErrorCode
proceed
(
String
test
);
}
}
src/main/java/com/example/demo/designModel/ErrorCode.java
0 → 100644
View file @
2bb53c82
This diff is collapsed.
Click to expand it.
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