Aooms 极速微服务开发,界面新鲜出炉,不止像JFinal一样简单 1.0.0-alpha.2
一、Aooms
一款基于SpringCloud的微服务基础开发平台,旨在降低SpringCloud的复杂度,像使用JFinal一样简单,但又包含整体解决方案,包含微服务相关的完整解决方案同时附加有权限管理、报表自定义、工作流、Cms等套件,可直接使用,Aooms基于Apache Licence 2.0开源协议。
二、核心功能
(1)极简Controller
(2)基于sharding-sphere的多数据源支持
(3)基于Mybatis 实现的 Db + Record 极简模式,附带物理分页实现
(4)基于Consul的服务注册、发现
(5)服务熔断、限流、降级
(6)服务客户端、http客户端
(7)内置各种ID生成器(UUID、snowflake)
(8)穿透一切的数据对象DataBoss
(9)基于J2Cache的缓存
(10) 其他更多功能,等你发现.......
二、内置集成系统
(1)权限管理 (实现中,基本完成)
(2)内容管理系统(规划中)
(3)报表系统(规划中)
(4)工作流系统(规划中)
(5)微信公众号(规划中)
(6).....................
三、1.0.0-alpha.2 更新内容
(1)[修复] 事务失效BUG
(2)[新增] 部分核心API、包结构修改
(3)[新增] CallServiceController 统一服务层调用入口
(4)[新增] 各种控制拦截器
(5)[新增] 自定义配置接口AoomsSetting
(6)[新增] 权限系统
(7)其他细节调整30余项
四、界面预览
五、用户管理示例
(1)Controller
@RestController @RequestMapping("/user") public class UserController extends AoomsAbstractController { @Autowired private UserService userService; @RequestMapping("/findList") public void findList(){ userService.findList(); }; @RequestMapping("/insert") public void insert(){ userService.insert(); }; @RequestMapping("/update") public void update(){ userService.update(); }; @RequestMapping("/delete") public void delete(){ userService.delete(); }; }
(2)Service
@Service public class UserService extends GenericService { @Autowired private Db db; public void findList() { this.setResultValue(AoomsVar.RS_DATA, db.findRecords("UserMapper.findList", SqlPara.SINGLETON)); } @Transactional public void insert() { Record user = Record.empty().setByJsonKey("form"); db.insert("t_user",user); } @Transactional public void update() { Record user = Record.empty().setByJsonKey("form"); db.update("t_user",user); } @Transactional public void delete() { db.deleteByPrimaryKey("t_user",getParaString("id")); } }
(3)Mapper
<mapper namespace="UserMapper"> <!-- 二级缓存 --> <!-- <cache type="net.aooms.core.module.mybatis.J2CacheSupport" eviction="LRU" flushInterval="60000" size="512" readOnly="true"/> --> <select id="findList" resultType="net.aooms.core.record.Record"> SELECT t.* FROM T_USER t </select> </mapper>
收工!!!,更简单的模式,可以省略UserController, 通过内置CallServiceController统一调用
六、详细了解
请查看:
Gitee: https://gitee.com/cyb-javaer/Aooms
Github:https://github.com/yuboon/Aooms
七、在线体验
地 址:https://www.yuboon.com/Aooms
服务器配置有限,请勿压测
暂无更多评论