mica微服务框架

联合创作 · 2023-09-28 05:25

mica 云母,寓意为云服务的核心,使得云服务开发更加方便快捷。mica 的前身是 lutool,lutool 在内部孵化了小两年,已经被多个朋友运用到企业。由于 lutool 对微服务不够友好,故重塑了mica。


mica 核心依赖


mica 基于 java 8,没有历史包袱。仅依赖 Spring 全家桶,无第三方依赖。



















依赖 版本
Spring Boot 2.1.x
Spring Cloud Greenwich.RELEASE

mica 组件集


mica 中的部分大部分组件进行了持续性打磨,增强易用性和性能。


mica软件图谱


使用 mica-bom


提示

mica-bom,可以简化依赖和依赖版本统一处理,避免jar冲突。



Maven









<dependencyManagement>
<dependencies>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-bom</artifactId>
<version>${mica.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

Gradle


Spring boot 环境中可以开启 apply plugin: "io.spring.dependency-management" 插件。









dependencyManagement {
imports {
mavenBom "net.dreamlu:mica-bom:${micaVersion}"
}
}

组件坐标


Maven



<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-core</artifactId>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-launcher</artifactId>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-boot</artifactId>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-boot-test</artifactId>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-log4j2</artifactId>
</dependency>
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-captcha</artifactId>
</dependency>

Gradle



implementation "net.dreamlu:mica-core"
implementation "net.dreamlu:mica-launcher"
implementation "net.dreamlu:mica-boot"
implementation "net.dreamlu:mica-boot-test"
implementation "net.dreamlu:mica-log4j2"
implementation "net.dreamlu:mica-captcha"

文档


https://www.dreamlu.net/docs/


协议


LGPL v3


允许以引入不改源码的形式免费用于学习、毕设、公司项目、私活等。


特殊情况修改代码,但仍然想闭源需经过作者同意。


参考请注明:参考自 mica:https://gitee.com/596392912/mica

浏览 18
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报