Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mica
mica
提交
d0922057
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 搜索 >>
提交
d0922057
编写于
5月 08, 2021
作者:
如梦技术
🐛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
✨
添加对 spring-native 的支持 #38 #I3PX2N
上级
c03724c5
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
8 addition
and
102 deletion
+8
-102
mica-bom/build.gradle
mica-bom/build.gradle
+0
-1
mica-captcha/build.gradle
mica-captcha/build.gradle
+1
-0
mica-captcha/src/main/java/net/dreamlu/mica/captcha/config/MicaCaptchaAutoConfiguration.java
...mlu/mica/captcha/config/MicaCaptchaAutoConfiguration.java
+3
-0
mica-ip2region/build.gradle
mica-ip2region/build.gradle
+1
-0
mica-ip2region/src/main/java/net/dreamlu/mica/ip2region/config/Ip2regionConfiguration.java
...dreamlu/mica/ip2region/config/Ip2regionConfiguration.java
+3
-0
mica-native/README.md
mica-native/README.md
+0
-19
mica-native/build.gradle
mica-native/build.gradle
+0
-4
mica-native/src/main/java/net/dreamlu/mica/nativex/captcha/CaptchaHints.java
...n/java/net/dreamlu/mica/nativex/captcha/CaptchaHints.java
+0
-30
mica-native/src/main/java/net/dreamlu/mica/nativex/ip2region/Ip2RegionHints.java
...va/net/dreamlu/mica/nativex/ip2region/Ip2RegionHints.java
+0
-30
mica-native/src/main/java/net/dreamlu/mica/nativex/package-info.java
.../src/main/java/net/dreamlu/mica/nativex/package-info.java
+0
-17
settings.gradle
settings.gradle
+0
-1
未找到文件。
mica-bom/build.gradle
浏览文件 @
d0922057
...
...
@@ -33,7 +33,6 @@ 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-captcha/build.gradle
浏览文件 @
d0922057
...
...
@@ -3,6 +3,7 @@ dependencies {
implementation
"org.springframework.boot:spring-boot-autoconfigure"
compileOnly
"org.springframework:spring-web"
compileOnly
"org.springframework.cloud:spring-cloud-context"
compileOnly
"org.springframework.experimental:spring-native:${springnativeVersion}"
annotationProcessor
"net.dreamlu:mica-auto:${micaAutoVersion}"
testImplementation
"org.springframework.boot:spring-boot-starter-test"
}
mica-captcha/src/main/java/net/dreamlu/mica/captcha/config/MicaCaptchaAutoConfiguration.java
浏览文件 @
d0922057
...
...
@@ -25,6 +25,8 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.nativex.hint.NativeHint
;
import
org.springframework.nativex.hint.ResourceHint
;
/**
* 验证码自动配置
...
...
@@ -39,6 +41,7 @@ import org.springframework.context.annotation.Configuration;
matchIfMissing
=
true
)
@EnableConfigurationProperties
(
MicaCaptchaProperties
.
class
)
@NativeHint
(
resources
=
@ResourceHint
(
patterns
=
"^fonts/.*.ttf"
))
public
class
MicaCaptchaAutoConfiguration
{
@Bean
...
...
mica-ip2region/build.gradle
浏览文件 @
d0922057
...
...
@@ -2,5 +2,6 @@ dependencies {
api
project
(
":mica-core"
)
implementation
"org.springframework.boot:spring-boot-autoconfigure"
compileOnly
"org.springframework.cloud:spring-cloud-context"
compileOnly
"org.springframework.experimental:spring-native:${springnativeVersion}"
annotationProcessor
"net.dreamlu:mica-auto:${micaAutoVersion}"
}
mica-ip2region/src/main/java/net/dreamlu/mica/ip2region/config/Ip2regionConfiguration.java
浏览文件 @
d0922057
...
...
@@ -22,6 +22,8 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.io.ResourceLoader
;
import
org.springframework.nativex.hint.NativeHint
;
import
org.springframework.nativex.hint.ResourceHint
;
/**
* ip2region 自动化配置
...
...
@@ -30,6 +32,7 @@ import org.springframework.core.io.ResourceLoader;
*/
@Configuration
(
proxyBeanMethods
=
false
)
@EnableConfigurationProperties
(
Ip2regionProperties
.
class
)
@NativeHint
(
resources
=
@ResourceHint
(
patterns
=
"^ip2region/ip2region.db"
))
public
class
Ip2regionConfiguration
{
@Bean
...
...
mica-native/README.md
已删除
100644 → 0
浏览文件 @
c03724c5
# 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
已删除
100644 → 0
浏览文件 @
c03724c5
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
已删除
100644 → 0
浏览文件 @
c03724c5
/*
* 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
已删除
100644 → 0
浏览文件 @
c03724c5
/*
* 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
已删除
100644 → 0
浏览文件 @
c03724c5
/*
* 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
浏览文件 @
d0922057
...
...
@@ -17,4 +17,3 @@ 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录