From c38b43fae19b6691add1268f1b834e34dd9ade8d Mon Sep 17 00:00:00 2001 From: lishangbu Date: Thu, 15 Nov 2018 00:55:55 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E7=A7=BB=E9=99=A4=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=88=96=E6=96=87=E4=BB=B6:=E7=A7=BB=E9=99=A4=E5=AF=B9Spring?= =?UTF-8?q?=20Dev=20Tools=E7=9A=84=E6=94=AF=E6=8C=81,=E7=B2=BE=E7=AE=80?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=9C=8D=E5=8A=A1=E5=99=A8=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../META-INF/spring-devtools.properties | 1 - .../META-INF/spring-devtools.properties | 1 - .../main/resources/META-INF/spring.provides | 1 - .../META-INF/spring-devtools.properties | 1 - .../META-INF/spring-devtools.properties | 1 - .../main/resources/META-INF/spring.provides | 1 - .../META-INF/spring-devtools.properties | 1 - .../main/resources/META-INF/spring.provides | 1 - .../act/config/ResourceServerConfigurer.java | 40 ------------------- .../config/ResourceServerConfigurer.java | 39 ------------------ .../config/ResourceServerConfigurer.java | 39 ------------------ 11 files changed, 126 deletions(-) delete mode 100644 pigx-common/pigx-common-cache/src/main/resources/META-INF/spring-devtools.properties delete mode 100644 pigx-common/pigx-common-core/src/main/resources/META-INF/spring-devtools.properties delete mode 100644 pigx-common/pigx-common-core/src/main/resources/META-INF/spring.provides delete mode 100644 pigx-common/pigx-common-log/src/main/resources/META-INF/spring-devtools.properties delete mode 100644 pigx-common/pigx-common-security/src/main/resources/META-INF/spring-devtools.properties delete mode 100644 pigx-common/pigx-common-security/src/main/resources/META-INF/spring.provides delete mode 100644 pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring-devtools.properties delete mode 100644 pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring.provides delete mode 100644 pigx-visual/pigx-activiti/src/main/java/com/pig4cloud/pigx/act/config/ResourceServerConfigurer.java delete mode 100644 pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/config/ResourceServerConfigurer.java delete mode 100644 pigx-visual/pigx-daemon/src/main/java/com/pig4cloud/pigx/daemon/config/ResourceServerConfigurer.java diff --git a/pigx-common/pigx-common-cache/src/main/resources/META-INF/spring-devtools.properties b/pigx-common/pigx-common-cache/src/main/resources/META-INF/spring-devtools.properties deleted file mode 100644 index 2daeb3c03..000000000 --- a/pigx-common/pigx-common-cache/src/main/resources/META-INF/spring-devtools.properties +++ /dev/null @@ -1 +0,0 @@ -restart.include.pigx-common-log=/pigx-common-cache[\\w-]+\.jar diff --git a/pigx-common/pigx-common-core/src/main/resources/META-INF/spring-devtools.properties b/pigx-common/pigx-common-core/src/main/resources/META-INF/spring-devtools.properties deleted file mode 100644 index f6eed4bb5..000000000 --- a/pigx-common/pigx-common-core/src/main/resources/META-INF/spring-devtools.properties +++ /dev/null @@ -1 +0,0 @@ -restart.include.pigx-common-core=/pigx-common-core[\\w-]+\.jar diff --git a/pigx-common/pigx-common-core/src/main/resources/META-INF/spring.provides b/pigx-common/pigx-common-core/src/main/resources/META-INF/spring.provides deleted file mode 100644 index c94a9d9f0..000000000 --- a/pigx-common/pigx-common-core/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1 +0,0 @@ -provides: hutool-all, spring-cloud-starter-openfeign, feign-okhttp, spring-boot-starter-data-redis, jackson-datatype-jsr310 diff --git a/pigx-common/pigx-common-log/src/main/resources/META-INF/spring-devtools.properties b/pigx-common/pigx-common-log/src/main/resources/META-INF/spring-devtools.properties deleted file mode 100644 index db34a0283..000000000 --- a/pigx-common/pigx-common-log/src/main/resources/META-INF/spring-devtools.properties +++ /dev/null @@ -1 +0,0 @@ -restart.include.pigx-common-log=/pigx-common-log[\\w-]+\.jar diff --git a/pigx-common/pigx-common-security/src/main/resources/META-INF/spring-devtools.properties b/pigx-common/pigx-common-security/src/main/resources/META-INF/spring-devtools.properties deleted file mode 100644 index 0a52a6fde..000000000 --- a/pigx-common/pigx-common-security/src/main/resources/META-INF/spring-devtools.properties +++ /dev/null @@ -1 +0,0 @@ -restart.include.pigx-common-security=/pigx-common-security[\\w-]+\.jar diff --git a/pigx-common/pigx-common-security/src/main/resources/META-INF/spring.provides b/pigx-common/pigx-common-security/src/main/resources/META-INF/spring.provides deleted file mode 100644 index c3a54e58e..000000000 --- a/pigx-common/pigx-common-security/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1 +0,0 @@ -provides: pigx-common-core, spring-cloud-starter-security diff --git a/pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring-devtools.properties b/pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring-devtools.properties deleted file mode 100644 index 6ba6501f2..000000000 --- a/pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring-devtools.properties +++ /dev/null @@ -1 +0,0 @@ -restart.include.pigx-upms-api=/pigx-upms-api[\\w-]+\.jar diff --git a/pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring.provides b/pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring.provides deleted file mode 100644 index 70d8314bb..000000000 --- a/pigx-upms/pigx-upms-api/src/main/resources/META-INF/spring.provides +++ /dev/null @@ -1 +0,0 @@ -provides: mybatis-plus, pigx-common-security diff --git a/pigx-visual/pigx-activiti/src/main/java/com/pig4cloud/pigx/act/config/ResourceServerConfigurer.java b/pigx-visual/pigx-activiti/src/main/java/com/pig4cloud/pigx/act/config/ResourceServerConfigurer.java deleted file mode 100644 index e0d48392b..000000000 --- a/pigx-visual/pigx-activiti/src/main/java/com/pig4cloud/pigx/act/config/ResourceServerConfigurer.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.act.config; - -import com.pig4cloud.pigx.common.security.component.BaseResourceServerConfigurerAdapter; -import org.springframework.context.annotation.Configuration; -import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer; - -/** - * @author lengleng - * @date 2018/6/22 - */ -@Configuration -public class ResourceServerConfigurer extends BaseResourceServerConfigurerAdapter { - - /** - * 重写不需要调用feign 获取 userdetils - * - * @param resources - */ - @Override - public void configure(ResourceServerSecurityConfigurer resources) { - notGetUser(resources); - } -} diff --git a/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/config/ResourceServerConfigurer.java b/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/config/ResourceServerConfigurer.java deleted file mode 100644 index 60fc9236f..000000000 --- a/pigx-visual/pigx-codegen/src/main/java/com/pig4cloud/pigx/codegen/config/ResourceServerConfigurer.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.codegen.config; - -import com.pig4cloud.pigx.common.security.component.BaseResourceServerConfigurerAdapter; -import org.springframework.context.annotation.Configuration; -import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer; - -/** - * @author lengleng - * @date 2018/6/22 - */ -@Configuration -public class ResourceServerConfigurer extends BaseResourceServerConfigurerAdapter { - /** - * 重写实现,不需要调用feign 获取 userDetailsService - * - * @param resources - */ - @Override - public void configure(ResourceServerSecurityConfigurer resources) { - notGetUser(resources); - } -} diff --git a/pigx-visual/pigx-daemon/src/main/java/com/pig4cloud/pigx/daemon/config/ResourceServerConfigurer.java b/pigx-visual/pigx-daemon/src/main/java/com/pig4cloud/pigx/daemon/config/ResourceServerConfigurer.java deleted file mode 100644 index ffd90af0b..000000000 --- a/pigx-visual/pigx-daemon/src/main/java/com/pig4cloud/pigx/daemon/config/ResourceServerConfigurer.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2018-2025, lengleng All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * Neither the name of the pig4cloud.com developer nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * Author: lengleng (wangiegie@gmail.com) - */ - -package com.pig4cloud.pigx.daemon.config; - -import com.pig4cloud.pigx.common.security.component.BaseResourceServerConfigurerAdapter; -import org.springframework.context.annotation.Configuration; -import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer; - -/** - * @author lengleng - * @date 2018/6/22 - */ -@Configuration -public class ResourceServerConfigurer extends BaseResourceServerConfigurerAdapter { - /** - * 重写实现,不需要调用feign 获取 userdetils - * - * @param resources - */ - @Override - public void configure(ResourceServerSecurityConfigurer resources) { - notGetUser(resources); - } -}