- 授权协议: LGPL
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://gitee.com/596392912/mica-auto
- 软件文档: https://gitee.com/596392912/mica-auto
软件介绍
mica-auto 代码自动生成
mica-auto 是 Spring cloud 微服务框架 Mica 中的一个基础组件,用来生成 Spring boot 的一些基础配置。
功能
生成
spring.factories生成
spring-devtools.properties生成
FeignClient到spring.factories中,供mica中完成Feign自动化配置。
使用
maven
<dependency> <groupId>net.dreamlu</groupId> <artifactId>mica-auto</artifactId> <version>1.0.0</version> <scope>provided</scope> </dependency>
gradle >= 5.x
annotationProcessor("net.dreamlu:mica-auto:1.0.0")gradle < 5.x
compileOnly "net.dreamlu:mica-auto:1.0.0"
原理
扫描 @Configuration,自动生成相应的配置。
注意: v1.0.0 已经支持组合注解。
初衷
在编写 Spring boot 相关插件的时候经常需要编写和修改 spring.factories 文件,其中有一次忘记修改,导致服务启动报错。想到编译期间自动生成这种配置。
开源协议
LGPL(GNU Lesser General Public License)
参考
Google Auto: https://github.com/google/auto
Spring 5 - spring-context-indexer:https://github.com/spring-projects/spring-framework/tree/master/spring-context-indexer
Laravel框架关键技术解析
陈昊、陈远征、陶业荣 / 电子工业出版社 / 2016-7 / 79.00元
《Laravel框架关键技术解析》以Laravel 5.1版本为基础,从框架技术角度介绍Laravel构建的原理,从源代码层次介绍Laravel功能的应用。通过本书的学习,读者能够了解Laravel框架实现的方方面面,完成基于该框架的定制化应用程序开发。 《Laravel框架关键技术解析》第1章到第4章主要介绍了与Laravel框架学习相关的基础部分,读者可以深入了解该框架的设计思想,学习环......一起来看看 《Laravel框架关键技术解析》 这本书的介绍吧!
