Просмотр исходного кода

增加maxkey-starter-properties,整合通用文件

MaxKey 1 день назад
Родитель
Сommit
98af1a8ef8

+ 7 - 0
maxkey-starter/maxkey-starter-properties/build.gradle

@@ -0,0 +1,7 @@
+
+description = "maxkey-starter-properties"
+
+
+dependencies {
+   
+}

+ 22 - 0
maxkey-starter/maxkey-starter-properties/src/main/resources/application-common.properties

@@ -0,0 +1,22 @@
+############################################################################
+#
+#  Copyright [2026] [MaxKey of copyright http://www.maxkey.top]
+#  
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#  
+#      http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+############################################################################
+#Main.banner-mode configuration                                            #
+############################################################################
+spring.main.banner-mode                         =log
+spring.main.allow-bean-definition-overriding    =true
+############################################################################

+ 21 - 0
maxkey-starter/maxkey-starter-properties/src/main/resources/application-version.properties

@@ -0,0 +1,21 @@
+############################################################################
+#
+#  Copyright [2026] [MaxKey of copyright http://www.maxkey.top]
+#  
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#  
+#      http://www.apache.org/licenses/LICENSE-2.0
+#  
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+#
+############################################################################
+#MaxKey Version                                                            #
+############################################################################
+application.formatted-version                   =v4.2.0 GA
+############################################################################

+ 0 - 0
maxkey-commons/maxkey-crypto/src/main/resources/banner.txt → maxkey-starter/maxkey-starter-properties/src/main/resources/banner.txt


+ 1 - 0
maxkey-webs/maxkey-web-maxkey/build.gradle

@@ -43,6 +43,7 @@ dependencies {
    	implementation project(":maxkey-starter:maxkey-starter-ip2location")
 	implementation project(":maxkey-starter:maxkey-starter-otp")
 	implementation project(":maxkey-starter:maxkey-starter-passkey")
+	implementation project(":maxkey-starter:maxkey-starter-properties")
 	implementation project(":maxkey-starter:maxkey-starter-sms")
 	implementation project(":maxkey-starter:maxkey-starter-social")
 	implementation project(":maxkey-starter:maxkey-starter-web")

+ 2 - 7
maxkey-webs/maxkey-web-maxkey/src/main/resources/application.properties

@@ -15,15 +15,10 @@
 ############################################################################
 #MaxKey Title and Version                                                  #
 ############################################################################
-application.formatted-version               =v4.2.0 GA
 #for dynamic service discovery
 spring.application.name                     =maxkey
 ############################################################################
-#Main.banner-mode configuration                                            #
+#include configuration                                                     #
 ############################################################################
-spring.main.banner-mode                     =log
-spring.main.allow-bean-definition-overriding=true
+spring.profiles.include =version,common,maxkey
 ############################################################################
-#spring.profiles.active maxkey                        #
-############################################################################
-spring.profiles.include                     =${SERVER_PROFILES:maxkey}

+ 1 - 0
maxkey-webs/maxkey-web-mgt/build.gradle

@@ -42,6 +42,7 @@ dependencies {
 	implementation project(":maxkey-starter:maxkey-starter-captcha")
    	implementation project(":maxkey-starter:maxkey-starter-ip2location")
 	implementation project(":maxkey-starter:maxkey-starter-otp")
+	implementation project(":maxkey-starter:maxkey-starter-properties")
 	implementation project(":maxkey-starter:maxkey-starter-sms")
 	implementation project(":maxkey-starter:maxkey-starter-web")
 	implementation project(":maxkey-starter:maxkey-starter-web-static")

+ 2 - 7
maxkey-webs/maxkey-web-mgt/src/main/resources/application.properties

@@ -15,15 +15,10 @@
 ############################################################################
 #MaxKey Title and Version                                                  #
 ############################################################################
-application.formatted-version                   =v4.2.0 GA
 #for dynamic service discovery
 spring.application.name                         =maxkey-mgt
 ############################################################################
-#Main.banner-mode configuration                                            #
+#include configuration                                                     #
 ############################################################################
-spring.main.banner-mode                         =log
-spring.main.allow-bean-definition-overriding    =true
+spring.profiles.include =version,common,maxkey-mgt
 ############################################################################
-#spring.profiles.include maxkey-mgt                                         #
-############################################################################
-spring.profiles.include                         =${SERVER_PROFILES:maxkey-mgt}

+ 1 - 0
maxkey-webs/maxkey-web-openapi/build.gradle

@@ -40,6 +40,7 @@ dependencies {
 	
 	implementation project(":maxkey-starter:maxkey-starter-captcha")
    	implementation project(":maxkey-starter:maxkey-starter-ip2location")
+   	implementation project(":maxkey-starter:maxkey-starter-properties")
 	implementation project(":maxkey-starter:maxkey-starter-otp")
 	implementation project(":maxkey-starter:maxkey-starter-sms")
 	implementation project(":maxkey-starter:maxkey-starter-web")

+ 2 - 7
maxkey-webs/maxkey-web-openapi/src/main/resources/application.properties

@@ -15,15 +15,10 @@
 ############################################################################
 #MaxKey Title and Version                                                  #
 ############################################################################
-application.formatted-version                   =v4.2.0 GA
 #for dynamic service discovery
 spring.application.name                         =maxkey-openapi
 ############################################################################
-#Main.banner-mode configuration                                            #
+#include configuration                                                     #
 ############################################################################
-spring.main.banner-mode                         =log
-spring.main.allow-bean-definition-overriding    =true
+spring.profiles.include =version,common,maxkey-openapi
 ############################################################################
-#spring.profiles.include maxkey-mgt                                         #
-############################################################################
-spring.profiles.include                         =${SERVER_PROFILES:maxkey-openapi}

+ 1 - 0
settings.gradle

@@ -39,6 +39,7 @@ include ('maxkey-starter:maxkey-starter-social')
 include ('maxkey-starter:maxkey-starter-web')
 include ('maxkey-starter:maxkey-starter-web-static')
 include ('maxkey-starter:maxkey-starter-passkey')
+include ('maxkey-starter:maxkey-starter-properties')
 
 //authentications
 include ('maxkey-authentications:maxkey-authentication-core')