Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mica
mica
提交
3dc48ec4
mica
项目概览
mica
/
mica
通知
10
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
mica
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3dc48ec4
编写于
5月 07, 2021
作者:
如梦技术
🐛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
✨
添加 mica-native,待完善 #38 #I3PX2N
上级
932822a2
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
104 addition
and
0 deletion
+104
-0
build.gradle
build.gradle
+2
-0
mica-bom/build.gradle
mica-bom/build.gradle
+1
-0
mica-native/README.md
mica-native/README.md
+19
-0
mica-native/build.gradle
mica-native/build.gradle
+4
-0
mica-native/src/main/java/net/dreamlu/mica/nativex/captcha/CaptchaHints.java
...n/java/net/dreamlu/mica/nativex/captcha/CaptchaHints.java
+30
-0
mica-native/src/main/java/net/dreamlu/mica/nativex/ip2region/Ip2RegionHints.java
...va/net/dreamlu/mica/nativex/ip2region/Ip2RegionHints.java
+30
-0
mica-native/src/main/java/net/dreamlu/mica/nativex/package-info.java
.../src/main/java/net/dreamlu/mica/nativex/package-info.java
+17
-0
settings.gradle
settings.gradle
+1
-0
未找到文件。
build.gradle
浏览文件 @
3dc48ec4
...
...
@@ -5,6 +5,7 @@ plugins {
ext
{
javaVersion
=
JavaVersion
.
VERSION_1_8
springBootVersion
=
"2.4.5"
springnativeVersion
=
"0.9.1"
springCloudVersion
=
"2020.0.2"
micaAutoVersion
=
"2.0.4"
micaWeiXinVersion
=
"2.1.0"
...
...
@@ -50,6 +51,7 @@ configure(subprojects - project(":mica-bom")) {
maven
{
url
"https://maven.aliyun.com/repository/public"
}
maven
{
url
"https://maven.aliyun.com/repository/spring"
}
maven
{
url
"https://maven.aliyun.com/repository/spring-plugin"
}
maven
{
url
"https://repo.spring.io/release"
}
maven
{
url
"https://repo.spring.io/milestone"
}
mavenCentral
()
}
...
...
mica-bom/build.gradle
浏览文件 @
3dc48ec4
...
...
@@ -33,6 +33,7 @@ dependencyManagement {
dependency
"net.dreamlu:mica-qrcode:${VERSION}"
dependency
"net.dreamlu:mica-jetcache:${VERSION}"
dependency
"net.dreamlu:mica-lite:${VERSION}"
dependency
"net.dreamlu:mica-native:${VERSION}"
// commons
dependency
"com.google.code.findbugs:jsr305:${findbugsVersion}"
dependency
"io.swagger:swagger-annotations:${swaggerAnnotationsVersion}"
...
...
mica-native/README.md
0 → 100644
浏览文件 @
3dc48ec4
# mica-native 组件
扩展 mica 对 spring-native 的支持。
## 使用
### maven
```
xml
<dependency>
<groupId>
net.dreamlu
</groupId>
<artifactId>
mica-native
</artifactId>
<version>
${version}
</version>
</dependency>
```
### gradle
```
groovy
compile
(
"net.dreamlu:mica-native:${version}"
)
```
mica-native/build.gradle
0 → 100644
浏览文件 @
3dc48ec4
dependencies
{
compileOnly
"org.springframework.experimental:spring-aot:${springnativeVersion}"
compileOnly
"org.springframework.experimental:spring-native:${springnativeVersion}"
}
mica-native/src/main/java/net/dreamlu/mica/nativex/captcha/CaptchaHints.java
0 → 100644
浏览文件 @
3dc48ec4
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* 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.
*/
package
net.dreamlu.mica.nativex.captcha
;
import
org.springframework.nativex.hint.NativeHint
;
import
org.springframework.nativex.hint.ResourceHint
;
import
org.springframework.nativex.type.NativeConfiguration
;
/**
* 验证码 spring native 支持
*
* @author L.cm
*/
@NativeHint
(
resources
=
@ResourceHint
(
patterns
=
"^fonts/.*.ttf"
))
public
class
CaptchaHints
implements
NativeConfiguration
{
}
mica-native/src/main/java/net/dreamlu/mica/nativex/ip2region/Ip2RegionHints.java
0 → 100644
浏览文件 @
3dc48ec4
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* 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.
*/
package
net.dreamlu.mica.nativex.ip2region
;
import
org.springframework.nativex.hint.NativeHint
;
import
org.springframework.nativex.hint.ResourceHint
;
import
org.springframework.nativex.type.NativeConfiguration
;
/**
* Ip2Region spring native 支持
*
* @author L.cm
*/
@NativeHint
(
resources
=
@ResourceHint
(
patterns
=
"^ip2region/ip2region.db"
))
public
class
Ip2RegionHints
implements
NativeConfiguration
{
}
mica-native/src/main/java/net/dreamlu/mica/nativex/package-info.java
0 → 100644
浏览文件 @
3dc48ec4
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* 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.
*/
package
net.dreamlu.mica.nativex
;
settings.gradle
浏览文件 @
3dc48ec4
...
...
@@ -17,3 +17,4 @@ include "mica-logging"
include
"mica-qrcode"
include
"mica-jetcache"
include
"mica-lite"
include
"mica-native"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录