From cbafea02949a77167a657333334b1d58f8c015dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sat, 10 Aug 2024 16:27:44 +0800 Subject: [PATCH 001/157] Update maven-build.yml --- .github/workflows/maven-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 87d4a9d3..d3733ce0 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -10,9 +10,9 @@ name: Maven Build on: push: - branches: [ "dev" ] + branches: [ 'dev-1.x' ] pull_request: - branches: [ "main" , "release" ] + branches: [ 'release-1.x' ] jobs: build: From 5cfefa0bafd31a92222b8d61a71f55c48e32260f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sat, 10 Aug 2024 16:27:46 +0800 Subject: [PATCH 002/157] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 79384364..819d3014 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -10,11 +10,11 @@ name: Maven Publish on: push: - branches: [ 'release' ] + branches: [ 'release-1.x' ] workflow_dispatch: inputs: revision: - description: 'The version to release' + description: 'The version to pulish' required: true default: '0.0.1-SNAPSHOT' From 156ac127c6798249b5a9dfe5b5bc2e44d36b5fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sat, 10 Aug 2024 16:28:35 +0800 Subject: [PATCH 003/157] Update maven-publish.yml --- .github/workflows/maven-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 819d3014..241727bb 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -14,7 +14,7 @@ on: workflow_dispatch: inputs: revision: - description: 'The version to pulish' + description: 'The version to publish' required: true default: '0.0.1-SNAPSHOT' From a07061e6e69f245b82110fda584c61d719ad47c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sat, 10 Aug 2024 16:44:36 +0800 Subject: [PATCH 004/157] Remove the dependency 'io.github.microsphere-projects:microsphere-java-enterprise-dependencies' --- microsphere-spring-parent/pom.xml | 9 --------- microsphere-spring-web/pom.xml | 6 ------ .../webmvc/metadata/WebEndpointMappingRegistrar.java | 5 +++-- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/microsphere-spring-parent/pom.xml b/microsphere-spring-parent/pom.xml index 98fcb339..9a5c0c78 100644 --- a/microsphere-spring-parent/pom.xml +++ b/microsphere-spring-parent/pom.xml @@ -20,7 +20,6 @@ 0.0.6 - 0.0.3 2.7.18 3.36.0.3 2.7.12 @@ -48,14 +47,6 @@ import - - io.github.microsphere-projects - microsphere-java-enterprise-dependencies - ${microsphere-java-enterprise.version} - pom - import - - org.xerial sqlite-jdbc diff --git a/microsphere-spring-web/pom.xml b/microsphere-spring-web/pom.xml index 18033d61..45d934ce 100644 --- a/microsphere-spring-web/pom.xml +++ b/microsphere-spring-web/pom.xml @@ -27,12 +27,6 @@ ${revision} - - - io.github.microsphere-projects - microsphere-servlet - - javax.servlet diff --git a/microsphere-spring-webmvc/src/main/java/io/microsphere/spring/webmvc/metadata/WebEndpointMappingRegistrar.java b/microsphere-spring-webmvc/src/main/java/io/microsphere/spring/webmvc/metadata/WebEndpointMappingRegistrar.java index 6571a6f8..0bcfdc07 100644 --- a/microsphere-spring-webmvc/src/main/java/io/microsphere/spring/webmvc/metadata/WebEndpointMappingRegistrar.java +++ b/microsphere-spring-webmvc/src/main/java/io/microsphere/spring/webmvc/metadata/WebEndpointMappingRegistrar.java @@ -23,6 +23,7 @@ import io.microsphere.spring.web.metadata.ServletRegistrationWebEndpointMappingFactory; import io.microsphere.spring.web.metadata.WebEndpointMapping; import io.microsphere.spring.web.metadata.WebEndpointMappingRegistry; +import io.microsphere.util.Version; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.context.WebApplicationContext; @@ -42,7 +43,6 @@ import java.util.Map; import java.util.Optional; -import static io.microsphere.enterprise.servlet.enumeration.ServletVersion.SERVLET_3_0; import static org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors; /** @@ -92,7 +92,8 @@ private Collection collectWebEndpointMappings() { ServletContext servletContext = context.getServletContext(); - if (SERVLET_3_0.le(servletContext)) { // Servlet 3.0+ + Version servletVersion = Version.of(servletContext.getMajorVersion(), servletContext.getMinorVersion()); + if (Version.of(3).le(servletVersion)) { // Servlet 3.0+ collectFromServletContext(servletContext, context, webEndpointMappings); } From 7c6d78f06a01ba019fa84eddf8756927905c3817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sun, 11 Aug 2024 16:00:49 +0800 Subject: [PATCH 005/157] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 365b415a..e6e58770 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ - 0.0.3-SNAPSHOT + 1.0.0-SNAPSHOT From 11faa2f2c8e94d1aec4330bda6fa4ae70301f112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sun, 11 Aug 2024 16:01:51 +0800 Subject: [PATCH 006/157] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e6e58770..365b415a 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ - 1.0.0-SNAPSHOT + 0.0.3-SNAPSHOT From 5fd51b86df6976b0ef005d5226a1f7c0016df217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sun, 11 Aug 2024 16:02:08 +0800 Subject: [PATCH 007/157] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 365b415a..d2530956 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ - 0.0.3-SNAPSHOT + 0.0.3 From ca21ad26a82310c00df9ea3397e46521f6c5021c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Sun, 11 Aug 2024 16:08:52 +0800 Subject: [PATCH 008/157] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d2530956..48e14e62 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ - 0.0.3 + 0.0.4-SNAPSHOT From 2989d43c54fd6969480ee3d5ea33d24092867d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=E5=93=A5=EF=BC=88mercyblitz=EF=BC=89?= Date: Thu, 15 Aug 2024 14:52:02 +0800 Subject: [PATCH 009/157] Update --- .github/workflows/maven-build.yml | 8 +++-- microsphere-spring-parent/pom.xml | 35 +++++++++++++++++++ ...RegistrationWebEndpointMappingFactory.java | 4 +-- ...RegistrationWebEndpointMappingFactory.java | 4 +-- ...RegistrationWebEndpointMappingFactory.java | 4 +-- .../web/metadata/WebEndpointMapping.java | 32 ++++++++--------- .../metadata/WebEndpointMappingFactory.java | 8 ++--- pom.xml | 2 +- 8 files changed, 68 insertions(+), 29 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index e7ba7acd..7a0215a7 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -19,8 +19,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '17' , '21' ] - maven-profile-spring-boot: [ 'spring-boot-3.0' , 'spring-boot-3.1' , 'spring-boot-3.2' , 'spring-boot-3.3' ] + java: [ '8', '11' , '17' , '21' ] + maven-profile-spring-boot: [ 'spring-boot-1.0' , 'spring-boot-1.1' , 'spring-boot-1.2' , 'spring-boot-1.3' , + 'spring-boot-1.4' , 'spring-boot-1.5' , 'spring-boot-2.0' , 'spring-boot-2.1' , + 'spring-boot-2.2' , 'spring-boot-2.3' , 'spring-boot-2.4' , 'spring-boot-2.5' , + 'spring-boot-2.6' , 'spring-boot-2.7' , 'spring-boot-3.0' , 'spring-boot-3.1' , + 'spring-boot-3.2' , 'spring-boot-3.3' ] steps: - name: Checkout Source uses: actions/checkout@v4 diff --git a/microsphere-spring-parent/pom.xml b/microsphere-spring-parent/pom.xml index 9a5c0c78..428a99cb 100644 --- a/microsphere-spring-parent/pom.xml +++ b/microsphere-spring-parent/pom.xml @@ -76,6 +76,41 @@ + + spring-boot-1.0 + + 1.0.2.RELEASE + + + + + spring-boot-1.1 + + 1.1.12.RELEASE + + + + + spring-boot-1.2 + + 1.2.8.RELEASE + + + + + spring-boot-1.3 + + 1.3.8.RELEASE + + + + + spring-boot-1.4 + + 1.4.7.RELEASE + + + spring-boot-1.5 diff --git a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/FilterRegistrationWebEndpointMappingFactory.java b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/FilterRegistrationWebEndpointMappingFactory.java index 1db323c5..1c7fa760 100644 --- a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/FilterRegistrationWebEndpointMappingFactory.java +++ b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/FilterRegistrationWebEndpointMappingFactory.java @@ -16,8 +16,8 @@ */ package io.microsphere.spring.web.metadata; -import jakarta.servlet.FilterRegistration; -import jakarta.servlet.ServletContext; +import javax.servlet.FilterRegistration; +import javax.servlet.ServletContext; import java.util.Collection; /** diff --git a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/RegistrationWebEndpointMappingFactory.java b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/RegistrationWebEndpointMappingFactory.java index 3851ba4e..a634b906 100644 --- a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/RegistrationWebEndpointMappingFactory.java +++ b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/RegistrationWebEndpointMappingFactory.java @@ -18,8 +18,8 @@ import org.springframework.lang.NonNull; -import jakarta.servlet.Registration; -import jakarta.servlet.ServletContext; +import javax.servlet.Registration; +import javax.servlet.ServletContext; import java.util.Collection; import static io.microsphere.spring.web.metadata.WebEndpointMapping.Kind.SERVLET; diff --git a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/ServletRegistrationWebEndpointMappingFactory.java b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/ServletRegistrationWebEndpointMappingFactory.java index 3088924b..efee856c 100644 --- a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/ServletRegistrationWebEndpointMappingFactory.java +++ b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/ServletRegistrationWebEndpointMappingFactory.java @@ -16,8 +16,8 @@ */ package io.microsphere.spring.web.metadata; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletRegistration; +import javax.servlet.ServletContext; +import javax.servlet.ServletRegistration; import java.util.Collection; /** diff --git a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/WebEndpointMapping.java b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/WebEndpointMapping.java index 066e1fcb..cefaf0cb 100644 --- a/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/WebEndpointMapping.java +++ b/microsphere-spring-web/src/main/java/io/microsphere/spring/web/metadata/WebEndpointMapping.java @@ -41,8 +41,8 @@ /** * The meta-data class for Web Endpoint Mapping that could be one of these endpoints: *