feat(utils): 添加数组工具类和国际化支持
- 添加ByteArray.toHexString和String.toHexByteArray扩展函数 - 实现多种数组类型的copyTo和copyFrom扩展方法 - 在AutoConfiguration中集成I18N国际化功能 - 添加AutoService注解及处理器用于自动服务注册 - 新增BadGatewayException HTTP状态异常类 - 更新启动横幅格式并添加国际化文本支持
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
buildTime=$buildTime
|
||||
groupId=$GROUPSID
|
||||
artifactId=$ARTIFACTID
|
||||
version=$VERSIONS
|
||||
buildJdkVersion=$JDKVERSIONS
|
||||
author=MingLiPro
|
||||
website=https://mingli-utils.mingliqiye.com
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.buildTime=$buildTime
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.groupId=$GROUPSID
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.artifactId=$ARTIFACTID
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.version=$VERSIONS
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.buildJdkVersion=$JDKVERSIONS
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.author=MingLiPro
|
||||
com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration.website=https://mingli-utils.mingliqiye.com
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# Copyright 2026 mingliqiye
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# ProjectName mingli-utils
|
||||
# ModuleName mingli-utils.main
|
||||
# CurrentFile javax.annotation.processing.Processor
|
||||
# LastUpdate 2026-02-07 09:22:22
|
||||
# UpdateUser MingLiPro
|
||||
#
|
||||
|
||||
com.mingliqiye.utils.annotation.processor.AutoServiceProcessor
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"com.mingliqiye.utils": {
|
||||
"i18n": {
|
||||
"readjson": {
|
||||
"error": "Failed to load language file %s"
|
||||
}
|
||||
},
|
||||
"springboot.autoconfigure": {
|
||||
"AutoConfiguration": {
|
||||
"jdkRuntime": "JDK Runtime Environment Version",
|
||||
"pid": "Process PID",
|
||||
"computerName": "Computer Name",
|
||||
"userName": "User Name",
|
||||
"time": "Current Time",
|
||||
"buildTime": "Build Time",
|
||||
"groupId": "Group ID",
|
||||
"artifactId": "Artifact ID",
|
||||
"version": "Version",
|
||||
"buildJdkVersion": "Build JDK Version",
|
||||
"author": "Author",
|
||||
"website": "Official Website",
|
||||
"bean": "MingliUtils Auto Configuration Bean Success"
|
||||
},
|
||||
"JsonApiAutoConfiguration": {
|
||||
"jsonause": "JSONA Using %s",
|
||||
"jsonapiconfiged": "JsonApi Bean Auto Configuration Success",
|
||||
"jacksonserializers": "MingliUtils Jackson Serializers created"
|
||||
}
|
||||
},
|
||||
"string": {
|
||||
"StringUtils": {
|
||||
"format": {
|
||||
"warn": {
|
||||
"placeholder": "Placeholder Count: %s, Argument Count: %s",
|
||||
"template": "Template: %s",
|
||||
"arguments": "Arguments: [%s]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"com.mingliqiye.utils": {
|
||||
"i18n": {
|
||||
"readjson": {
|
||||
"error": "加载语言文件失败 %s"
|
||||
}
|
||||
},
|
||||
"springboot.autoconfigure": {
|
||||
"AutoConfiguration": {
|
||||
"jdkRuntime": "Jdk运行环境版本",
|
||||
"pid": "程序Pid",
|
||||
"computerName": "计算机名",
|
||||
"userName": "用户名",
|
||||
"time": "当前时间",
|
||||
"buildTime": "编译时间",
|
||||
"groupId": "组Id",
|
||||
"artifactId": "组件Id",
|
||||
"version": "版本",
|
||||
"buildJdkVersion": "编译Jdk版本",
|
||||
"author": "作者",
|
||||
"website": "官方网址",
|
||||
"bean": "MingliUtils 自动配置 Bean 成功"
|
||||
},
|
||||
"JsonApiAutoConfiguration": {
|
||||
"jsonause": "JSONA 使用 %s",
|
||||
"jsonapiconfiged": "JsonApi Bean 自动配置成功",
|
||||
"jacksonserializers": "MingliUtils Jackson 序列化器注册成功"
|
||||
}
|
||||
},
|
||||
"string": {
|
||||
"StringUtils": {
|
||||
"format": {
|
||||
"warn": {
|
||||
"placeholder": "占位符数量: %s, 参数数量: %s",
|
||||
"template": "模板: %s",
|
||||
"arguments": "参数: [%s]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "mingli-utils",
|
||||
"groupsId": "${GROUPSID}",
|
||||
"artifactId": "${ARTIFACTID}",
|
||||
"name": "Mingli-Utils",
|
||||
"version": "${VERSIONS}",
|
||||
"environment": "*",
|
||||
"license": "Apache-2.0",
|
||||
"icon": "assets/mingli-utils/icon.png",
|
||||
"contact": {
|
||||
"homepage": "https://git.mingliqiye.com/minglipro/mingli-utils",
|
||||
"issues": "https://git.mingliqiye.com/minglipro/mingli-utils/issues",
|
||||
"sources": "https://git.mingliqiye.com/minglipro/mingli-utils"
|
||||
},
|
||||
"buildTime": "${buildTime}",
|
||||
"jdk": {
|
||||
"version": "${JDKVERSIONS}"
|
||||
},
|
||||
"authors": [
|
||||
"minglipro"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": "*"
|
||||
},
|
||||
"description": "A Java/kotlin Utils"
|
||||
}
|
||||
Reference in New Issue
Block a user