From dd30052b738bd49a6384dbf927a0f3bb6b01e339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B8=83?= Date: Fri, 4 Dec 2020 14:16:34 +0800 Subject: [PATCH 1/4] :sparkles: Introducing new features. spring cloud 2020 --- pig-common/pig-common-sentinel/pom.xml | 9 ++++++ pig-common/pig-common-swagger/pom.xml | 2 +- pig-upms/pig-upms-api/pom.xml | 5 ++++ pig-upms/pig-upms-biz/pom.xml | 5 ---- pom.xml | 40 ++++++++++++++++++++++++-- 5 files changed, 53 insertions(+), 8 deletions(-) diff --git a/pig-common/pig-common-sentinel/pom.xml b/pig-common/pig-common-sentinel/pom.xml index 828224fb..2fbfcbc3 100755 --- a/pig-common/pig-common-sentinel/pom.xml +++ b/pig-common/pig-common-sentinel/pom.xml @@ -43,6 +43,15 @@ org.springframework.cloud spring-cloud-starter-openfeign + + + io.github.openfeign + feign-hystrix + + + org.springframework.cloud + spring-cloud-starter-loadbalancer + org.springframework.security diff --git a/pig-common/pig-common-swagger/pom.xml b/pig-common/pig-common-swagger/pom.xml index 6d841c30..7bbb7d0f 100644 --- a/pig-common/pig-common-swagger/pom.xml +++ b/pig-common/pig-common-swagger/pom.xml @@ -59,7 +59,7 @@ org.springframework.cloud - spring-cloud-gateway-core + spring-cloud-gateway-server provided diff --git a/pig-upms/pig-upms-api/pom.xml b/pig-upms/pig-upms-api/pom.xml index 8bb6cbeb..3a164043 100755 --- a/pig-upms/pig-upms-api/pom.xml +++ b/pig-upms/pig-upms-api/pom.xml @@ -41,5 +41,10 @@ org.springframework.cloud spring-cloud-starter-openfeign + + + com.pig4cloud + pig-common-sentinel + diff --git a/pig-upms/pig-upms-biz/pom.xml b/pig-upms/pig-upms-biz/pom.xml index fe454f10..095d661d 100644 --- a/pig-upms/pig-upms-biz/pom.xml +++ b/pig-upms/pig-upms-biz/pom.xml @@ -65,11 +65,6 @@ com.alibaba.cloud spring-cloud-starter-alibaba-nacos-config - - - com.pig4cloud - pig-common-sentinel - org.springframework.boot diff --git a/pom.xml b/pom.xml index ffb53fde..bc745ae1 100755 --- a/pom.xml +++ b/pom.xml @@ -34,8 +34,8 @@ https://www.pig4cloud.com - 2.3.6.RELEASE - Hoxton.SR9 + 2.4.1-SNAPSHOT + 2020.0.0-M6 2.2.3.RELEASE UTF-8 1.8 @@ -58,6 +58,11 @@ + + + org.springframework.cloud + spring-cloud-starter-bootstrap + org.springframework.boot @@ -205,4 +210,35 @@ + + + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/snapshot + + true + + + + + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + + spring-snapshots + Spring Snapshots + https://repo.spring.io/snapshot + + true + + + From 57860066b266e99b61d60696eb700ec749ee9201 Mon Sep 17 00:00:00 2001 From: lengleng Date: Wed, 23 Dec 2020 10:34:55 +0800 Subject: [PATCH 2/4] :arrow_up: Upgrading dependencies. spring cloud 2020 --- pig-auth/pom.xml | 8 ++--- pig-common/pig-common-core/pom.xml | 2 +- pig-common/pig-common-datasource/pom.xml | 2 +- pig-common/pig-common-job/pom.xml | 2 +- pig-common/pig-common-log/pom.xml | 6 ++-- pig-common/pig-common-mybatis/pom.xml | 2 +- pig-common/pig-common-security/pom.xml | 6 ++-- pig-common/pig-common-sentinel/pom.xml | 6 ++-- pig-common/pig-common-swagger/pom.xml | 2 +- pig-common/pig-common-test/pom.xml | 4 +-- pig-common/pom.xml | 2 +- pig-gateway/pom.xml | 2 +- pig-register/pom.xml | 2 +- pig-upms/pig-upms-api/pom.xml | 2 +- pig-upms/pig-upms-biz/pom.xml | 2 +- pig-upms/pom.xml | 2 +- pig-visual/pig-codegen/pom.xml | 2 +- pig-visual/pig-monitor/pom.xml | 2 +- pig-visual/pig-sentinel-dashboard/pom.xml | 2 +- pig-visual/pig-xxl-job-admin/pom.xml | 2 +- pig-visual/pom.xml | 2 +- pom.xml | 38 +++-------------------- 22 files changed, 36 insertions(+), 64 deletions(-) diff --git a/pig-auth/pom.xml b/pig-auth/pom.xml index a57e657c..7a3e4d81 100755 --- a/pig-auth/pom.xml +++ b/pig-auth/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.10.4-SNAPSHOT + 2.11.0 pig-auth @@ -44,19 +44,19 @@ com.pig4cloud pig-common-sentinel - 2.10.4-SNAPSHOT + 2.11.0 com.pig4cloud pig-upms-api - 2.10.4-SNAPSHOT + 2.11.0 com.pig4cloud pig-common-security - 2.10.4-SNAPSHOT + 2.11.0 diff --git a/pig-common/pig-common-core/pom.xml b/pig-common/pig-common-core/pom.xml index cdcf525a..ea0aea47 100755 --- a/pig-common/pig-common-core/pom.xml +++ b/pig-common/pig-common-core/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-core diff --git a/pig-common/pig-common-datasource/pom.xml b/pig-common/pig-common-datasource/pom.xml index d87b0de1..35117696 100644 --- a/pig-common/pig-common-datasource/pom.xml +++ b/pig-common/pig-common-datasource/pom.xml @@ -21,7 +21,7 @@ pig-common com.pig4cloud - 2.10.4-SNAPSHOT + 2.11.0 4.0.0 diff --git a/pig-common/pig-common-job/pom.xml b/pig-common/pig-common-job/pom.xml index 47535e79..9d6ea4a7 100755 --- a/pig-common/pig-common-job/pom.xml +++ b/pig-common/pig-common-job/pom.xml @@ -23,7 +23,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-job diff --git a/pig-common/pig-common-log/pom.xml b/pig-common/pig-common-log/pom.xml index bbca0e28..5e088888 100755 --- a/pig-common/pig-common-log/pom.xml +++ b/pig-common/pig-common-log/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-log @@ -35,13 +35,13 @@ com.pig4cloud pig-common-core - 2.10.4-SNAPSHOT + 2.11.0 com.pig4cloud pig-upms-api - 2.10.4-SNAPSHOT + 2.11.0 diff --git a/pig-common/pig-common-mybatis/pom.xml b/pig-common/pig-common-mybatis/pom.xml index ac6723d1..4f053031 100755 --- a/pig-common/pig-common-mybatis/pom.xml +++ b/pig-common/pig-common-mybatis/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-mybatis diff --git a/pig-common/pig-common-security/pom.xml b/pig-common/pig-common-security/pom.xml index f3a16065..9a164be4 100755 --- a/pig-common/pig-common-security/pom.xml +++ b/pig-common/pig-common-security/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-security @@ -35,7 +35,7 @@ com.pig4cloud pig-common-core - 2.10.4-SNAPSHOT + 2.11.0 @@ -50,7 +50,7 @@ com.pig4cloud pig-upms-api - 2.10.4-SNAPSHOT + 2.11.0 diff --git a/pig-common/pig-common-sentinel/pom.xml b/pig-common/pig-common-sentinel/pom.xml index dcd81a89..8650a11a 100755 --- a/pig-common/pig-common-sentinel/pom.xml +++ b/pig-common/pig-common-sentinel/pom.xml @@ -21,18 +21,19 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 4.0.0 jar pig-common-sentinel sentinel服务降级熔断、限流组件 + com.pig4cloud pig-common-core - 2.10.4-SNAPSHOT + 2.11.0 com.alibaba.cloud @@ -47,6 +48,7 @@ io.github.openfeign feign-hystrix + 10.10.1 org.springframework.cloud diff --git a/pig-common/pig-common-swagger/pom.xml b/pig-common/pig-common-swagger/pom.xml index e72f7c63..8f9fcdd3 100644 --- a/pig-common/pig-common-swagger/pom.xml +++ b/pig-common/pig-common-swagger/pom.xml @@ -24,7 +24,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-swagger diff --git a/pig-common/pig-common-test/pom.xml b/pig-common/pig-common-test/pom.xml index 42ae5dfb..d89e8db6 100755 --- a/pig-common/pig-common-test/pom.xml +++ b/pig-common/pig-common-test/pom.xml @@ -6,7 +6,7 @@ com.pig4cloud pig-common - 2.10.4-SNAPSHOT + 2.11.0 pig-common-test @@ -18,7 +18,7 @@ com.pig4cloud pig-common-security - 2.10.4-SNAPSHOT + 2.11.0 org.springframework.security diff --git a/pig-common/pom.xml b/pig-common/pom.xml index 612caac2..aa317a45 100755 --- a/pig-common/pom.xml +++ b/pig-common/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.10.4-SNAPSHOT + 2.11.0 pig-common diff --git a/pig-gateway/pom.xml b/pig-gateway/pom.xml index 0ac54a16..8d0c6f49 100755 --- a/pig-gateway/pom.xml +++ b/pig-gateway/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.10.4-SNAPSHOT + 2.11.0 pig-gateway diff --git a/pig-register/pom.xml b/pig-register/pom.xml index e09414a3..dab8f7ca 100755 --- a/pig-register/pom.xml +++ b/pig-register/pom.xml @@ -18,7 +18,7 @@ com.pig4cloud pig - 2.10.4-SNAPSHOT + 2.11.0 pig-register diff --git a/pig-upms/pig-upms-api/pom.xml b/pig-upms/pig-upms-api/pom.xml index 7398b3a8..62de3f53 100755 --- a/pig-upms/pig-upms-api/pom.xml +++ b/pig-upms/pig-upms-api/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-upms - 2.10.4-SNAPSHOT + 2.11.0 pig-upms-api diff --git a/pig-upms/pig-upms-biz/pom.xml b/pig-upms/pig-upms-biz/pom.xml index 0332ebba..6854ab79 100644 --- a/pig-upms/pig-upms-biz/pom.xml +++ b/pig-upms/pig-upms-biz/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-upms - 2.10.4-SNAPSHOT + 2.11.0 pig-upms-biz diff --git a/pig-upms/pom.xml b/pig-upms/pom.xml index d8c23f75..05ecf2c0 100755 --- a/pig-upms/pom.xml +++ b/pig-upms/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.10.4-SNAPSHOT + 2.11.0 pig-upms diff --git a/pig-visual/pig-codegen/pom.xml b/pig-visual/pig-codegen/pom.xml index 51be4d62..e357cadc 100755 --- a/pig-visual/pig-codegen/pom.xml +++ b/pig-visual/pig-codegen/pom.xml @@ -22,7 +22,7 @@ com.pig4cloud pig-visual - 2.10.4-SNAPSHOT + 2.11.0 pig-codegen diff --git a/pig-visual/pig-monitor/pom.xml b/pig-visual/pig-monitor/pom.xml index 8bf41726..e505726b 100755 --- a/pig-visual/pig-monitor/pom.xml +++ b/pig-visual/pig-monitor/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-visual - 2.10.4-SNAPSHOT + 2.11.0 pig-monitor diff --git a/pig-visual/pig-sentinel-dashboard/pom.xml b/pig-visual/pig-sentinel-dashboard/pom.xml index c12f0d71..8cb4d124 100755 --- a/pig-visual/pig-sentinel-dashboard/pom.xml +++ b/pig-visual/pig-sentinel-dashboard/pom.xml @@ -6,7 +6,7 @@ com.pig4cloud pig-visual - 2.10.4-SNAPSHOT + 2.11.0 pig-sentinel-dashboard diff --git a/pig-visual/pig-xxl-job-admin/pom.xml b/pig-visual/pig-xxl-job-admin/pom.xml index 94bae1e4..314249fd 100644 --- a/pig-visual/pig-xxl-job-admin/pom.xml +++ b/pig-visual/pig-xxl-job-admin/pom.xml @@ -4,7 +4,7 @@ com.pig4cloud pig-visual - 2.10.4-SNAPSHOT + 2.11.0 pig-xxl-job-admin diff --git a/pig-visual/pom.xml b/pig-visual/pom.xml index 05e2f330..7941bef0 100755 --- a/pig-visual/pom.xml +++ b/pig-visual/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.10.4-SNAPSHOT + 2.11.0 pig-visual diff --git a/pom.xml b/pom.xml index 3d18548b..f45455ce 100755 --- a/pom.xml +++ b/pom.xml @@ -23,25 +23,25 @@ com.pig4cloud pig-cloud-dependencies-parent - 2.10.3 + 2.11.0 com.pig4cloud pig - 2.10.3 + 2.11.0 ${project.artifactId} pom https://www.pig4cloud.com 2.4.1 - 2020.0.0-RC1 + 2020.0.0 2.2.3.RELEASE UTF-8 1.8 1.8 2.3.1 - 5.5.1 + 5.5.3 3.4.1 3.2.0 2.2.0 @@ -211,34 +211,4 @@ - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/snapshot - - true - - - - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - - spring-snapshots - Spring Snapshots - https://repo.spring.io/snapshot - - true - - - From d7ce51e0b101a486d09e38a4474cdf11bee29ae8 Mon Sep 17 00:00:00 2001 From: lengleng Date: Wed, 23 Dec 2020 12:22:02 +0800 Subject: [PATCH 3/4] :bookmark: Releasing / Version tags. 3.0.0.RC1 support spring cloud 2020 :bookmark: Releasing / Version tags. 3.0.0.RC1 support spring cloud 2020 aa --- README.md | 4 ++-- db/pig_config.sql | 2 +- pig-auth/pom.xml | 10 +++++----- .../pig4cloud/pig/auth/PigAuthApplication.java | 4 ++-- pig-common/pig-common-core/pom.xml | 2 +- pig-common/pig-common-datasource/pom.xml | 2 +- .../pom.xml | 14 +++++++------- .../common/feign/PigFeignAutoConfiguration.java} | 10 +++++----- .../feign}/annotation/EnablePigFeignClients.java | 4 +++- .../pig/common/feign/ext}/PigSentinelFeign.java | 4 ++-- .../feign/ext}/PigSentinelInvocationHandler.java | 4 ++-- .../feign}/handle/GlobalBizExceptionHandler.java | 2 +- .../common/feign}/handle/PigUrlBlockHandler.java | 2 +- .../parser/PigHeaderRequestOriginParser.java | 2 +- .../src/main/resources/META-INF/spring.factories | 3 +++ pig-common/pig-common-job/pom.xml | 2 +- pig-common/pig-common-log/pom.xml | 6 +++--- pig-common/pig-common-mybatis/pom.xml | 2 +- pig-common/pig-common-security/pom.xml | 6 +++--- .../src/main/resources/META-INF/spring.factories | 3 --- pig-common/pig-common-swagger/pom.xml | 2 +- pig-common/pig-common-test/pom.xml | 4 ++-- pig-common/pom.xml | 4 ++-- pig-gateway/pom.xml | 16 +++++++++++++--- pig-register/pom.xml | 2 +- pig-upms/pig-upms-api/pom.xml | 4 ++-- .../factory/RemoteLogServiceFallbackFactory.java | 2 +- .../RemoteTokenServiceFallbackFactory.java | 2 +- .../RemoteUserServiceFallbackFactory.java | 2 +- pig-upms/pig-upms-biz/pom.xml | 2 +- .../pig4cloud/pig/admin/PigAdminApplication.java | 2 +- pig-upms/pom.xml | 2 +- pig-visual/pig-codegen/pom.xml | 4 ++-- .../pig/codegen/PigCodeGenApplication.java | 2 +- pig-visual/pig-monitor/pom.xml | 4 ++-- pig-visual/pig-sentinel-dashboard/pom.xml | 2 +- pig-visual/pig-xxl-job-admin/pom.xml | 2 +- pig-visual/pom.xml | 2 +- pom.xml | 4 ++-- 39 files changed, 82 insertions(+), 70 deletions(-) rename pig-common/{pig-common-sentinel => pig-common-feign}/pom.xml (87%) rename pig-common/{pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/SentinelAutoConfiguration.java => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/PigFeignAutoConfiguration.java} (86%) rename pig-common/{pig-common-security/src/main/java/com/pig4cloud/pig/common/security => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign}/annotation/EnablePigFeignClients.java (91%) rename pig-common/{pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext}/PigSentinelFeign.java (97%) rename pig-common/{pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext}/PigSentinelInvocationHandler.java (98%) rename pig-common/{pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign}/handle/GlobalBizExceptionHandler.java (98%) rename pig-common/{pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign}/handle/PigUrlBlockHandler.java (97%) rename pig-common/{pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel => pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign}/parser/PigHeaderRequestOriginParser.java (96%) create mode 100755 pig-common/pig-common-feign/src/main/resources/META-INF/spring.factories delete mode 100755 pig-common/pig-common-sentinel/src/main/resources/META-INF/spring.factories diff --git a/README.md b/README.md index 73360c42..ae935fac 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- Build Status + Build Status Coverage Status Downloads @@ -40,7 +40,7 @@ pig ├── pig-common-mybatis -- mybatis 扩展封装 ├── pig-common-security -- 安全工具类 ├── pig-common-swagger -- 接口文档 - ├── pig-common-sentinel -- sentinel 扩展封装 + ├── pig-common-feign -- feign 扩展封装 └── pig-common-test -- oauth2.0 单元测试扩展封装 ├── pig-register -- Nacos Server[8848] ├── pig-gateway -- Spring Cloud Gateway网关[9999] diff --git a/db/pig_config.sql b/db/pig_config.sql index 125c2b15..849abf4e 100644 --- a/db/pig_config.sql +++ b/db/pig_config.sql @@ -36,7 +36,7 @@ CREATE TABLE `config_info` ( -- Records of config_info -- ---------------------------- BEGIN; -INSERT INTO `config_info` VALUES (1, 'application-dev.yml', 'DEFAULT_GROUP', '# 加解密根密码\njasypt:\n encryptor:\n password: pig #根密码\n\n# Spring 相关\nspring:\n redis:\n password:\n host: pig-redis\n cloud:\n sentinel:\n eager: true\n transport:\n dashboard: pig-sentinel:5003\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n response:\n enabled: true\n\n#请求处理的超时时间\nribbon:\n ReadTimeout: 10000\n ConnectTimeout: 10000\n\n# mybaits-plus配置\nmybatis-plus:\n mapper-locations: classpath:/mapper/*Mapper.xml\n global-config:\n banner: false\n db-config:\n id-type: auto\n table-underline: true\n logic-delete-value: 1\n logic-not-delete-value: 0\n configuration:\n map-underscore-to-camel-case: true\n\n# spring security 配置\nsecurity:\n oauth2:\n resource:\n loadBalanced: true\n token-info-uri: http://pig-auth/oauth/check_token\n # 通用放行URL,服务个性化,请在对应配置文件覆盖\n ignore:\n urls:\n - /v2/api-docs\n - /actuator/**\n# swagger 配置\nswagger:\n title: Pig Swagger API\n license: Powered By pig4cloud\n licenseUrl: https://pig4cloud.com\n terms-of-service-url: https://pig4cloud.com\n contact:\n email: wangiegie@gmail.com\n url: https://pig4cloud.com\n authorization:\n name: pig4cloud OAuth\n auth-regex: ^.*$\n authorization-scope-list:\n - scope: server\n description: server all\n token-url-list:\n - http://${GATEWAY_HOST:pig-gateway}:${GATEWAY-PORT:9999}/auth/oauth/token', '841de89cde20a1a045f46001f9a89266', '2019-11-29 16:31:20', '2020-06-11 16:28:09', NULL, '127.0.0.1', '', '', '通用配置', 'null', 'null', 'yaml', 'null'); +INSERT INTO `config_info` VALUES (1, 'application-dev.yml', 'DEFAULT_GROUP', '# 加解密根密码\njasypt:\n encryptor:\n password: pig #根密码\n\n# Spring 相关\nspring:\n redis:\n password:\n host: pig-redis\n cloud:\n sentinel:\n eager: true\n transport:\n dashboard: pig-sentinel:5003\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n response:\n enabled: true\n\n# mybaits-plus配置\nmybatis-plus:\n mapper-locations: classpath:/mapper/*Mapper.xml\n global-config:\n banner: false\n db-config:\n id-type: auto\n table-underline: true\n logic-delete-value: 1\n logic-not-delete-value: 0\n configuration:\n map-underscore-to-camel-case: true\n\n# spring security 配置\nsecurity:\n oauth2:\n resource:\n loadBalanced: true\n token-info-uri: http://pig-auth/oauth/check_token\n # 通用放行URL,服务个性化,请在对应配置文件覆盖\n ignore:\n urls:\n - /v2/api-docs\n - /actuator/**\n# swagger 配置\nswagger:\n title: Pig Swagger API\n license: Powered By pig4cloud\n licenseUrl: https://pig4cloud.com\n terms-of-service-url: https://pig4cloud.com\n contact:\n email: wangiegie@gmail.com\n url: https://pig4cloud.com\n authorization:\n name: pig4cloud OAuth\n auth-regex: ^.*$\n authorization-scope-list:\n - scope: server\n description: server all\n token-url-list:\n - http://${GATEWAY_HOST:pig-gateway}:${GATEWAY-PORT:9999}/auth/oauth/token', '9a17f1e09f13f48de43977954dc2bd66', '2019-11-29 16:31:20', '2020-12-23 11:35:46', NULL, '0:0:0:0:0:0:0:1', '', '', '通用配置', 'null', 'null', 'yaml', 'null'); INSERT INTO `config_info` VALUES (2, 'pig-auth-dev.yml', 'DEFAULT_GROUP', '# 数据源\nspring:\n datasource:\n type: com.zaxxer.hikari.HikariDataSource\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: root\n password: root\n url: jdbc:mysql://pig-mysql:3306/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai\n freemarker:\n allow-request-override: false\n allow-session-override: false\n cache: true\n charset: UTF-8\n check-template-location: true\n content-type: text/html\n enabled: true\n expose-request-attributes: false\n expose-session-attributes: false\n expose-spring-macro-helpers: true\n prefer-file-system-access: true\n suffix: .ftl\n template-loader-path: classpath:/templates/', '58b1b48a2888f49e667864be32edf9c1', '2019-11-29 16:31:48', '2020-01-01 18:30:58', NULL, '127.0.0.1', '', '', '认证中心配置', 'null', 'null', 'yaml', 'null'); INSERT INTO `config_info` VALUES (3, 'pig-codegen-dev.yml', 'DEFAULT_GROUP', '## spring security 配置\nsecurity:\n oauth2:\n client:\n client-id: ENC(27v1agvAug87ANOVnbKdsw==)\n client-secret: ENC(VbnkopxrwgbFVKp+UxJ2pg==)\n scope: server\n\n# 数据源配置\nspring:\n datasource:\n type: com.zaxxer.hikari.HikariDataSource\n driver-class-name: com.mysql.cj.jdbc.Driver\n username: root\n password: root\n url: jdbc:mysql://pig-mysql:3306/pig_codegen?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai\n resources:\n static-locations: classpath:/static/,classpath:/views/\n\n# 直接放行URL\nignore:\n urls:\n - /v2/api-docs\n - /actuator/**\n', 'abc702838b34d11b46e96143ccd9f367', '2019-11-29 16:32:12', '2019-11-29 16:32:12', NULL, '127.0.0.1', '', '', '代码生成配置', NULL, NULL, 'yaml', NULL); INSERT INTO `config_info` VALUES (4, 'pig-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n cloud:\n gateway:\n locator:\n enabled: true\n routes:\n # 认证中心\n - id: pig-auth\n uri: lb://pig-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - ValidateCodeGatewayFilter\n # 前端密码解密\n - PasswordDecoderFilter\n #UPMS 模块\n - id: pig-upms-biz\n uri: lb://pig-upms-biz\n predicates:\n - Path=/admin/**\n filters:\n # 限流配置\n - name: RequestRateLimiter\n args:\n key-resolver: \'#{@remoteAddrKeyResolver}\'\n redis-rate-limiter.replenishRate: 100\n redis-rate-limiter.burstCapacity: 200\n # 代码生成模块\n - id: pig-codegen\n uri: lb://pig-codegen\n predicates:\n - Path=/gen/**\n\n\ngateway:\n encode-key: \'thanks,pig4cloud\'\n ignore-clients:\n - test\n\nswagger:\n ignore-providers:\n - pig-auth\n - pig-codegen\n', '5cd71b235930c78e700819b944a14446', '2019-11-29 16:32:42', '2020-10-09 17:10:45', NULL, '0:0:0:0:0:0:0:1', '', '', '网关配置', '', '', 'yaml', ''); diff --git a/pig-auth/pom.xml b/pig-auth/pom.xml index 7a3e4d81..62413e8c 100755 --- a/pig-auth/pom.xml +++ b/pig-auth/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.11.0 + 3.0.0.RC pig-auth @@ -43,20 +43,20 @@ com.pig4cloud - pig-common-sentinel - 2.11.0 + pig-common-feign + 3.0.0.RC com.pig4cloud pig-upms-api - 2.11.0 + 3.0.0.RC com.pig4cloud pig-common-security - 2.11.0 + 3.0.0.RC diff --git a/pig-auth/src/main/java/com/pig4cloud/pig/auth/PigAuthApplication.java b/pig-auth/src/main/java/com/pig4cloud/pig/auth/PigAuthApplication.java index fbdb8350..39c3c7ff 100755 --- a/pig-auth/src/main/java/com/pig4cloud/pig/auth/PigAuthApplication.java +++ b/pig-auth/src/main/java/com/pig4cloud/pig/auth/PigAuthApplication.java @@ -16,7 +16,7 @@ package com.pig4cloud.pig.auth; -import com.pig4cloud.pig.common.security.annotation.EnablePigFeignClients; +import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients; import org.springframework.boot.SpringApplication; import org.springframework.cloud.client.SpringCloudApplication; @@ -24,8 +24,8 @@ import org.springframework.cloud.client.SpringCloudApplication; * @author lengleng * @date 2018年06月21日 认证授权中心 */ -@SpringCloudApplication @EnablePigFeignClients +@SpringCloudApplication public class PigAuthApplication { public static void main(String[] args) { diff --git a/pig-common/pig-common-core/pom.xml b/pig-common/pig-common-core/pom.xml index ea0aea47..6bd8cd3c 100755 --- a/pig-common/pig-common-core/pom.xml +++ b/pig-common/pig-common-core/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-core diff --git a/pig-common/pig-common-datasource/pom.xml b/pig-common/pig-common-datasource/pom.xml index 35117696..2888ebd1 100644 --- a/pig-common/pig-common-datasource/pom.xml +++ b/pig-common/pig-common-datasource/pom.xml @@ -21,7 +21,7 @@ pig-common com.pig4cloud - 2.11.0 + 3.0.0.RC 4.0.0 diff --git a/pig-common/pig-common-sentinel/pom.xml b/pig-common/pig-common-feign/pom.xml similarity index 87% rename from pig-common/pig-common-sentinel/pom.xml rename to pig-common/pig-common-feign/pom.xml index 8650a11a..bffc4d27 100755 --- a/pig-common/pig-common-sentinel/pom.xml +++ b/pig-common/pig-common-feign/pom.xml @@ -21,19 +21,19 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC 4.0.0 jar - pig-common-sentinel - sentinel服务降级熔断、限流组件 + pig-common-feign + feign-sentinel服务降级熔断、限流组件 com.pig4cloud pig-common-core - 2.11.0 + 3.0.0.RC com.alibaba.cloud @@ -44,12 +44,12 @@ org.springframework.cloud spring-cloud-starter-openfeign - + io.github.openfeign - feign-hystrix - 10.10.1 + feign-okhttp + org.springframework.cloud spring-cloud-starter-loadbalancer diff --git a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/SentinelAutoConfiguration.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/PigFeignAutoConfiguration.java similarity index 86% rename from pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/SentinelAutoConfiguration.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/PigFeignAutoConfiguration.java index 6673d161..293c52fa 100755 --- a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/SentinelAutoConfiguration.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/PigFeignAutoConfiguration.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.sentinel; +package com.pig4cloud.pig.common.feign; import com.alibaba.cloud.sentinel.feign.SentinelFeignAutoConfiguration; import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler; import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser; -import com.pig4cloud.pig.common.sentinel.feign.PigSentinelFeign; -import com.pig4cloud.pig.common.sentinel.handle.PigUrlBlockHandler; -import com.pig4cloud.pig.common.sentinel.parser.PigHeaderRequestOriginParser; +import com.pig4cloud.pig.common.feign.ext.PigSentinelFeign; +import com.pig4cloud.pig.common.feign.handle.PigUrlBlockHandler; +import com.pig4cloud.pig.common.feign.parser.PigHeaderRequestOriginParser; import feign.Feign; import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; @@ -38,7 +38,7 @@ import org.springframework.context.annotation.Scope; */ @Configuration(proxyBeanMethods = false) @AutoConfigureBefore(SentinelFeignAutoConfiguration.class) -public class SentinelAutoConfiguration { +public class PigFeignAutoConfiguration { @Bean @Scope("prototype") diff --git a/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/annotation/EnablePigFeignClients.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/annotation/EnablePigFeignClients.java similarity index 91% rename from pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/annotation/EnablePigFeignClients.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/annotation/EnablePigFeignClients.java index 998a4eae..fdc8a57b 100755 --- a/pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/annotation/EnablePigFeignClients.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/annotation/EnablePigFeignClients.java @@ -14,8 +14,9 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.security.annotation; +package com.pig4cloud.pig.common.feign.annotation; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.cloud.openfeign.EnableFeignClients; import java.lang.annotation.*; @@ -28,6 +29,7 @@ import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) @Documented @EnableFeignClients +@EnableAutoConfiguration(excludeName = "org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration") public @interface EnablePigFeignClients { /** diff --git a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign/PigSentinelFeign.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext/PigSentinelFeign.java similarity index 97% rename from pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign/PigSentinelFeign.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext/PigSentinelFeign.java index 8de4bd6e..50fb6333 100644 --- a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign/PigSentinelFeign.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext/PigSentinelFeign.java @@ -14,15 +14,15 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.sentinel.feign; +package com.pig4cloud.pig.common.feign.ext; import com.alibaba.cloud.sentinel.feign.SentinelContractHolder; import feign.Contract; import feign.Feign; import feign.InvocationHandlerFactory; import feign.Target; -import feign.hystrix.FallbackFactory; import org.springframework.beans.BeansException; +import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.cloud.openfeign.FeignContext; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; diff --git a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign/PigSentinelInvocationHandler.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext/PigSentinelInvocationHandler.java similarity index 98% rename from pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign/PigSentinelInvocationHandler.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext/PigSentinelInvocationHandler.java index 72a8023d..031f0968 100644 --- a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/feign/PigSentinelInvocationHandler.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/ext/PigSentinelInvocationHandler.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.sentinel.feign; +package com.pig4cloud.pig.common.feign.ext; import com.alibaba.cloud.sentinel.feign.SentinelContractHolder; import com.alibaba.cloud.sentinel.feign.SentinelInvocationHandler; @@ -29,8 +29,8 @@ import feign.Feign; import feign.InvocationHandlerFactory; import feign.MethodMetadata; import feign.Target; -import feign.hystrix.FallbackFactory; import lombok.extern.slf4j.Slf4j; +import org.springframework.cloud.openfeign.FallbackFactory; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; diff --git a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/handle/GlobalBizExceptionHandler.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/handle/GlobalBizExceptionHandler.java similarity index 98% rename from pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/handle/GlobalBizExceptionHandler.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/handle/GlobalBizExceptionHandler.java index baf011c0..b69df1b3 100644 --- a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/handle/GlobalBizExceptionHandler.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/handle/GlobalBizExceptionHandler.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.sentinel.handle; +package com.pig4cloud.pig.common.feign.handle; import com.alibaba.csp.sentinel.Tracer; import com.pig4cloud.pig.common.core.util.R; diff --git a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/handle/PigUrlBlockHandler.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/handle/PigUrlBlockHandler.java similarity index 97% rename from pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/handle/PigUrlBlockHandler.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/handle/PigUrlBlockHandler.java index a5d556c9..afd48439 100644 --- a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/handle/PigUrlBlockHandler.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/handle/PigUrlBlockHandler.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.sentinel.handle; +package com.pig4cloud.pig.common.feign.handle; import cn.hutool.http.ContentType; import cn.hutool.json.JSONUtil; diff --git a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/parser/PigHeaderRequestOriginParser.java b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/parser/PigHeaderRequestOriginParser.java similarity index 96% rename from pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/parser/PigHeaderRequestOriginParser.java rename to pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/parser/PigHeaderRequestOriginParser.java index 3a04d846..00422510 100644 --- a/pig-common/pig-common-sentinel/src/main/java/com/pig4cloud/pig/common/sentinel/parser/PigHeaderRequestOriginParser.java +++ b/pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/parser/PigHeaderRequestOriginParser.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.pig4cloud.pig.common.sentinel.parser; +package com.pig4cloud.pig.common.feign.parser; import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser; diff --git a/pig-common/pig-common-feign/src/main/resources/META-INF/spring.factories b/pig-common/pig-common-feign/src/main/resources/META-INF/spring.factories new file mode 100755 index 00000000..e1d16f1a --- /dev/null +++ b/pig-common/pig-common-feign/src/main/resources/META-INF/spring.factories @@ -0,0 +1,3 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ + com.pig4cloud.pig.common.feign.PigFeignAutoConfiguration,\ + com.pig4cloud.pig.common.feign.handle.GlobalBizExceptionHandler diff --git a/pig-common/pig-common-job/pom.xml b/pig-common/pig-common-job/pom.xml index 9d6ea4a7..7b3f4110 100755 --- a/pig-common/pig-common-job/pom.xml +++ b/pig-common/pig-common-job/pom.xml @@ -23,7 +23,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-job diff --git a/pig-common/pig-common-log/pom.xml b/pig-common/pig-common-log/pom.xml index 5e088888..dbdf5456 100755 --- a/pig-common/pig-common-log/pom.xml +++ b/pig-common/pig-common-log/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-log @@ -35,13 +35,13 @@ com.pig4cloud pig-common-core - 2.11.0 + 3.0.0.RC com.pig4cloud pig-upms-api - 2.11.0 + 3.0.0.RC diff --git a/pig-common/pig-common-mybatis/pom.xml b/pig-common/pig-common-mybatis/pom.xml index 4f053031..4844cf2f 100755 --- a/pig-common/pig-common-mybatis/pom.xml +++ b/pig-common/pig-common-mybatis/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-mybatis diff --git a/pig-common/pig-common-security/pom.xml b/pig-common/pig-common-security/pom.xml index 9a164be4..5e77552f 100755 --- a/pig-common/pig-common-security/pom.xml +++ b/pig-common/pig-common-security/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-security @@ -35,7 +35,7 @@ com.pig4cloud pig-common-core - 2.11.0 + 3.0.0.RC @@ -50,7 +50,7 @@ com.pig4cloud pig-upms-api - 2.11.0 + 3.0.0.RC diff --git a/pig-common/pig-common-sentinel/src/main/resources/META-INF/spring.factories b/pig-common/pig-common-sentinel/src/main/resources/META-INF/spring.factories deleted file mode 100755 index bf8f2961..00000000 --- a/pig-common/pig-common-sentinel/src/main/resources/META-INF/spring.factories +++ /dev/null @@ -1,3 +0,0 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ - com.pig4cloud.pig.common.sentinel.SentinelAutoConfiguration,\ - com.pig4cloud.pig.common.sentinel.handle.GlobalBizExceptionHandler diff --git a/pig-common/pig-common-swagger/pom.xml b/pig-common/pig-common-swagger/pom.xml index 8f9fcdd3..9e94c043 100644 --- a/pig-common/pig-common-swagger/pom.xml +++ b/pig-common/pig-common-swagger/pom.xml @@ -24,7 +24,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-swagger diff --git a/pig-common/pig-common-test/pom.xml b/pig-common/pig-common-test/pom.xml index d89e8db6..4d79ba80 100755 --- a/pig-common/pig-common-test/pom.xml +++ b/pig-common/pig-common-test/pom.xml @@ -6,7 +6,7 @@ com.pig4cloud pig-common - 2.11.0 + 3.0.0.RC pig-common-test @@ -18,7 +18,7 @@ com.pig4cloud pig-common-security - 2.11.0 + 3.0.0.RC org.springframework.security diff --git a/pig-common/pom.xml b/pig-common/pom.xml index aa317a45..7a3bf60b 100755 --- a/pig-common/pom.xml +++ b/pig-common/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.11.0 + 3.0.0.RC pig-common @@ -36,7 +36,7 @@ pig-common-log pig-common-mybatis pig-common-security - pig-common-sentinel + pig-common-feign pig-common-swagger pig-common-test diff --git a/pig-gateway/pom.xml b/pig-gateway/pom.xml index 8d0c6f49..c6c0ee70 100755 --- a/pig-gateway/pom.xml +++ b/pig-gateway/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.11.0 + 3.0.0.RC pig-gateway @@ -55,8 +55,13 @@ spring-cloud-alibaba-sentinel-gateway - com.pig4cloud - pig-common-sentinel + com.alibaba.cloud + spring-cloud-starter-alibaba-sentinel + + + + org.springframework.cloud + spring-cloud-starter-loadbalancer @@ -64,6 +69,11 @@ captcha-spring-boot-starter ${captcha.version} + + + com.pig4cloud + pig-common-core + com.pig4cloud diff --git a/pig-register/pom.xml b/pig-register/pom.xml index dab8f7ca..2181bd21 100755 --- a/pig-register/pom.xml +++ b/pig-register/pom.xml @@ -18,7 +18,7 @@ com.pig4cloud pig - 2.11.0 + 3.0.0.RC pig-register diff --git a/pig-upms/pig-upms-api/pom.xml b/pig-upms/pig-upms-api/pom.xml index 62de3f53..4bc0cba8 100755 --- a/pig-upms/pig-upms-api/pom.xml +++ b/pig-upms/pig-upms-api/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-upms - 2.11.0 + 3.0.0.RC pig-upms-api @@ -44,7 +44,7 @@ com.pig4cloud - pig-common-sentinel + pig-common-feign diff --git a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteLogServiceFallbackFactory.java b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteLogServiceFallbackFactory.java index 897e2e2d..c2716499 100755 --- a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteLogServiceFallbackFactory.java +++ b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteLogServiceFallbackFactory.java @@ -18,7 +18,7 @@ package com.pig4cloud.pig.admin.api.feign.factory; import com.pig4cloud.pig.admin.api.feign.RemoteLogService; import com.pig4cloud.pig.admin.api.feign.fallback.RemoteLogServiceFallbackImpl; -import feign.hystrix.FallbackFactory; +import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.stereotype.Component; /** diff --git a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteTokenServiceFallbackFactory.java b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteTokenServiceFallbackFactory.java index 18ebea59..817cf9f8 100755 --- a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteTokenServiceFallbackFactory.java +++ b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteTokenServiceFallbackFactory.java @@ -18,7 +18,7 @@ package com.pig4cloud.pig.admin.api.feign.factory; import com.pig4cloud.pig.admin.api.feign.RemoteTokenService; import com.pig4cloud.pig.admin.api.feign.fallback.RemoteTokenServiceFallbackImpl; -import feign.hystrix.FallbackFactory; +import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.stereotype.Component; /** diff --git a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteUserServiceFallbackFactory.java b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteUserServiceFallbackFactory.java index 4acaf8dd..06f53ecb 100755 --- a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteUserServiceFallbackFactory.java +++ b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/feign/factory/RemoteUserServiceFallbackFactory.java @@ -18,7 +18,7 @@ package com.pig4cloud.pig.admin.api.feign.factory; import com.pig4cloud.pig.admin.api.feign.RemoteUserService; import com.pig4cloud.pig.admin.api.feign.fallback.RemoteUserServiceFallbackImpl; -import feign.hystrix.FallbackFactory; +import org.springframework.cloud.openfeign.FallbackFactory; import org.springframework.stereotype.Component; /** diff --git a/pig-upms/pig-upms-biz/pom.xml b/pig-upms/pig-upms-biz/pom.xml index 6854ab79..d53b4046 100644 --- a/pig-upms/pig-upms-biz/pom.xml +++ b/pig-upms/pig-upms-biz/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-upms - 2.11.0 + 3.0.0.RC pig-upms-biz diff --git a/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/PigAdminApplication.java b/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/PigAdminApplication.java index e305d4c1..20d2a2e8 100644 --- a/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/PigAdminApplication.java +++ b/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/PigAdminApplication.java @@ -16,7 +16,7 @@ package com.pig4cloud.pig.admin; -import com.pig4cloud.pig.common.security.annotation.EnablePigFeignClients; +import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients; import com.pig4cloud.pig.common.security.annotation.EnablePigResourceServer; import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2; import org.springframework.boot.SpringApplication; diff --git a/pig-upms/pom.xml b/pig-upms/pom.xml index 05ecf2c0..453e2f07 100755 --- a/pig-upms/pom.xml +++ b/pig-upms/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.11.0 + 3.0.0.RC pig-upms diff --git a/pig-visual/pig-codegen/pom.xml b/pig-visual/pig-codegen/pom.xml index e357cadc..212d1031 100755 --- a/pig-visual/pig-codegen/pom.xml +++ b/pig-visual/pig-codegen/pom.xml @@ -22,7 +22,7 @@ com.pig4cloud pig-visual - 2.11.0 + 3.0.0.RC pig-codegen @@ -49,7 +49,7 @@ com.pig4cloud - pig-common-sentinel + pig-common-feign diff --git a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/PigCodeGenApplication.java b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/PigCodeGenApplication.java index 4052e835..4192c58a 100755 --- a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/PigCodeGenApplication.java +++ b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/PigCodeGenApplication.java @@ -17,7 +17,7 @@ package com.pig4cloud.pig.codegen; import com.pig4cloud.pig.common.datasource.annotation.EnableDynamicDataSource; -import com.pig4cloud.pig.common.security.annotation.EnablePigFeignClients; +import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients; import com.pig4cloud.pig.common.security.annotation.EnablePigResourceServer; import org.springframework.boot.SpringApplication; import org.springframework.cloud.client.SpringCloudApplication; diff --git a/pig-visual/pig-monitor/pom.xml b/pig-visual/pig-monitor/pom.xml index e505726b..38ec390b 100755 --- a/pig-visual/pig-monitor/pom.xml +++ b/pig-visual/pig-monitor/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-visual - 2.11.0 + 3.0.0.RC pig-monitor @@ -49,7 +49,7 @@ com.pig4cloud - pig-common-sentinel + pig-common-feign diff --git a/pig-visual/pig-sentinel-dashboard/pom.xml b/pig-visual/pig-sentinel-dashboard/pom.xml index 8cb4d124..f6ff35ad 100755 --- a/pig-visual/pig-sentinel-dashboard/pom.xml +++ b/pig-visual/pig-sentinel-dashboard/pom.xml @@ -6,7 +6,7 @@ com.pig4cloud pig-visual - 2.11.0 + 3.0.0.RC pig-sentinel-dashboard diff --git a/pig-visual/pig-xxl-job-admin/pom.xml b/pig-visual/pig-xxl-job-admin/pom.xml index 314249fd..8f15b2f0 100644 --- a/pig-visual/pig-xxl-job-admin/pom.xml +++ b/pig-visual/pig-xxl-job-admin/pom.xml @@ -4,7 +4,7 @@ com.pig4cloud pig-visual - 2.11.0 + 3.0.0.RC pig-xxl-job-admin diff --git a/pig-visual/pom.xml b/pig-visual/pom.xml index 7941bef0..3328a63c 100755 --- a/pig-visual/pom.xml +++ b/pig-visual/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 2.11.0 + 3.0.0.RC pig-visual diff --git a/pom.xml b/pom.xml index f45455ce..cb9e9d9f 100755 --- a/pom.xml +++ b/pom.xml @@ -23,12 +23,12 @@ com.pig4cloud pig-cloud-dependencies-parent - 2.11.0 + 3.0.0.RC com.pig4cloud pig - 2.11.0 + 3.0.0.RC ${project.artifactId} pom https://www.pig4cloud.com From 295d571d34272c4d783d02569de9ff859ed7ff4b Mon Sep 17 00:00:00 2001 From: lengleng Date: Wed, 23 Dec 2020 13:31:10 +0800 Subject: [PATCH 4/4] :tada: :tada: :tada: 3.0 support spring cloud 2020 --- README.md | 2 +- pig-auth/pom.xml | 8 ++++---- pig-common/pig-common-core/pom.xml | 2 +- pig-common/pig-common-datasource/pom.xml | 2 +- pig-common/pig-common-feign/pom.xml | 4 ++-- pig-common/pig-common-job/pom.xml | 2 +- pig-common/pig-common-log/pom.xml | 6 +++--- pig-common/pig-common-mybatis/pom.xml | 2 +- pig-common/pig-common-security/pom.xml | 6 +++--- pig-common/pig-common-swagger/pom.xml | 2 +- pig-common/pig-common-test/pom.xml | 4 ++-- pig-common/pom.xml | 2 +- pig-gateway/pom.xml | 2 +- pig-register/pom.xml | 2 +- pig-upms/pig-upms-api/pom.xml | 2 +- pig-upms/pig-upms-biz/pom.xml | 2 +- pig-upms/pom.xml | 2 +- pig-visual/pig-codegen/pom.xml | 2 +- pig-visual/pig-monitor/pom.xml | 2 +- pig-visual/pig-sentinel-dashboard/pom.xml | 2 +- pig-visual/pig-xxl-job-admin/pom.xml | 2 +- pig-visual/pom.xml | 2 +- pom.xml | 4 ++-- 23 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index ae935fac..30768299 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- Build Status + Build Status Coverage Status Downloads diff --git a/pig-auth/pom.xml b/pig-auth/pom.xml index 62413e8c..f0257b2d 100755 --- a/pig-auth/pom.xml +++ b/pig-auth/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 3.0.0.RC + 3.0.0 pig-auth @@ -44,19 +44,19 @@ com.pig4cloud pig-common-feign - 3.0.0.RC + 3.0.0 com.pig4cloud pig-upms-api - 3.0.0.RC + 3.0.0 com.pig4cloud pig-common-security - 3.0.0.RC + 3.0.0 diff --git a/pig-common/pig-common-core/pom.xml b/pig-common/pig-common-core/pom.xml index 6bd8cd3c..aa587695 100755 --- a/pig-common/pig-common-core/pom.xml +++ b/pig-common/pig-common-core/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-core diff --git a/pig-common/pig-common-datasource/pom.xml b/pig-common/pig-common-datasource/pom.xml index 2888ebd1..56663939 100644 --- a/pig-common/pig-common-datasource/pom.xml +++ b/pig-common/pig-common-datasource/pom.xml @@ -21,7 +21,7 @@ pig-common com.pig4cloud - 3.0.0.RC + 3.0.0 4.0.0 diff --git a/pig-common/pig-common-feign/pom.xml b/pig-common/pig-common-feign/pom.xml index bffc4d27..079209a1 100755 --- a/pig-common/pig-common-feign/pom.xml +++ b/pig-common/pig-common-feign/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 4.0.0 @@ -33,7 +33,7 @@ com.pig4cloud pig-common-core - 3.0.0.RC + 3.0.0 com.alibaba.cloud diff --git a/pig-common/pig-common-job/pom.xml b/pig-common/pig-common-job/pom.xml index 7b3f4110..4495854d 100755 --- a/pig-common/pig-common-job/pom.xml +++ b/pig-common/pig-common-job/pom.xml @@ -23,7 +23,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-job diff --git a/pig-common/pig-common-log/pom.xml b/pig-common/pig-common-log/pom.xml index dbdf5456..ec65138e 100755 --- a/pig-common/pig-common-log/pom.xml +++ b/pig-common/pig-common-log/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-log @@ -35,13 +35,13 @@ com.pig4cloud pig-common-core - 3.0.0.RC + 3.0.0 com.pig4cloud pig-upms-api - 3.0.0.RC + 3.0.0 diff --git a/pig-common/pig-common-mybatis/pom.xml b/pig-common/pig-common-mybatis/pom.xml index 4844cf2f..dfc2093b 100755 --- a/pig-common/pig-common-mybatis/pom.xml +++ b/pig-common/pig-common-mybatis/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-mybatis diff --git a/pig-common/pig-common-security/pom.xml b/pig-common/pig-common-security/pom.xml index 5e77552f..3f8429f8 100755 --- a/pig-common/pig-common-security/pom.xml +++ b/pig-common/pig-common-security/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-security @@ -35,7 +35,7 @@ com.pig4cloud pig-common-core - 3.0.0.RC + 3.0.0 @@ -50,7 +50,7 @@ com.pig4cloud pig-upms-api - 3.0.0.RC + 3.0.0 diff --git a/pig-common/pig-common-swagger/pom.xml b/pig-common/pig-common-swagger/pom.xml index 9e94c043..66d258cb 100644 --- a/pig-common/pig-common-swagger/pom.xml +++ b/pig-common/pig-common-swagger/pom.xml @@ -24,7 +24,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-swagger diff --git a/pig-common/pig-common-test/pom.xml b/pig-common/pig-common-test/pom.xml index 4d79ba80..b8345963 100755 --- a/pig-common/pig-common-test/pom.xml +++ b/pig-common/pig-common-test/pom.xml @@ -6,7 +6,7 @@ com.pig4cloud pig-common - 3.0.0.RC + 3.0.0 pig-common-test @@ -18,7 +18,7 @@ com.pig4cloud pig-common-security - 3.0.0.RC + 3.0.0 org.springframework.security diff --git a/pig-common/pom.xml b/pig-common/pom.xml index 7a3bf60b..2e68962d 100755 --- a/pig-common/pom.xml +++ b/pig-common/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 3.0.0.RC + 3.0.0 pig-common diff --git a/pig-gateway/pom.xml b/pig-gateway/pom.xml index c6c0ee70..81f2f2ba 100755 --- a/pig-gateway/pom.xml +++ b/pig-gateway/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 3.0.0.RC + 3.0.0 pig-gateway diff --git a/pig-register/pom.xml b/pig-register/pom.xml index 2181bd21..356f6476 100755 --- a/pig-register/pom.xml +++ b/pig-register/pom.xml @@ -18,7 +18,7 @@ com.pig4cloud pig - 3.0.0.RC + 3.0.0 pig-register diff --git a/pig-upms/pig-upms-api/pom.xml b/pig-upms/pig-upms-api/pom.xml index 4bc0cba8..992d9502 100755 --- a/pig-upms/pig-upms-api/pom.xml +++ b/pig-upms/pig-upms-api/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-upms - 3.0.0.RC + 3.0.0 pig-upms-api diff --git a/pig-upms/pig-upms-biz/pom.xml b/pig-upms/pig-upms-biz/pom.xml index d53b4046..a1213f53 100644 --- a/pig-upms/pig-upms-biz/pom.xml +++ b/pig-upms/pig-upms-biz/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-upms - 3.0.0.RC + 3.0.0 pig-upms-biz diff --git a/pig-upms/pom.xml b/pig-upms/pom.xml index 453e2f07..7ab9904c 100755 --- a/pig-upms/pom.xml +++ b/pig-upms/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 3.0.0.RC + 3.0.0 pig-upms diff --git a/pig-visual/pig-codegen/pom.xml b/pig-visual/pig-codegen/pom.xml index 212d1031..be7e0db6 100755 --- a/pig-visual/pig-codegen/pom.xml +++ b/pig-visual/pig-codegen/pom.xml @@ -22,7 +22,7 @@ com.pig4cloud pig-visual - 3.0.0.RC + 3.0.0 pig-codegen diff --git a/pig-visual/pig-monitor/pom.xml b/pig-visual/pig-monitor/pom.xml index 38ec390b..821c4267 100755 --- a/pig-visual/pig-monitor/pom.xml +++ b/pig-visual/pig-monitor/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig-visual - 3.0.0.RC + 3.0.0 pig-monitor diff --git a/pig-visual/pig-sentinel-dashboard/pom.xml b/pig-visual/pig-sentinel-dashboard/pom.xml index f6ff35ad..c89e1f9b 100755 --- a/pig-visual/pig-sentinel-dashboard/pom.xml +++ b/pig-visual/pig-sentinel-dashboard/pom.xml @@ -6,7 +6,7 @@ com.pig4cloud pig-visual - 3.0.0.RC + 3.0.0 pig-sentinel-dashboard diff --git a/pig-visual/pig-xxl-job-admin/pom.xml b/pig-visual/pig-xxl-job-admin/pom.xml index 8f15b2f0..927e8f93 100644 --- a/pig-visual/pig-xxl-job-admin/pom.xml +++ b/pig-visual/pig-xxl-job-admin/pom.xml @@ -4,7 +4,7 @@ com.pig4cloud pig-visual - 3.0.0.RC + 3.0.0 pig-xxl-job-admin diff --git a/pig-visual/pom.xml b/pig-visual/pom.xml index 3328a63c..37fb3b08 100755 --- a/pig-visual/pom.xml +++ b/pig-visual/pom.xml @@ -21,7 +21,7 @@ com.pig4cloud pig - 3.0.0.RC + 3.0.0 pig-visual diff --git a/pom.xml b/pom.xml index cb9e9d9f..531393d9 100755 --- a/pom.xml +++ b/pom.xml @@ -23,12 +23,12 @@ com.pig4cloud pig-cloud-dependencies-parent - 3.0.0.RC + 3.0.0 com.pig4cloud pig - 3.0.0.RC + 3.0.0 ${project.artifactId} pom https://www.pig4cloud.com