其他

jboot:类似 Spring Boot 的开源框架 | 软件推介

2017-06-06 OSC-michaely 开源中国


jboot是一个基于jfinal、undertow开发的一个类似springboot的开源框架, 我们已经在正式的商业上线项目中使用。她集成了代码生成,微服务,MQ,RPC,监控等功能, 开发者使用及其简单。

maven dependency

controller example

new a controller

start

visit: http://127.0.0.1:8088

mq example

config jboot.properties

server a sendMqMessage

server b message listener

rpc example

config jboot.properties

define interface

server a export serviceImpl

server b call

cache example

config jboot.properties

use cache

database access example

config jboot.properties

define model

dao query

event example

send event

event listener

read config

config jboot.properties

define config model

get config model

code generator

build

config pom.xml

maven build

start app

start app and change config

use your properties replace jboot.properties

use jboot-dev.proerties replace jboot.properties and set jboot.server.port=8080

thanks

rpc framework:

  • motan(https://www.oschina.net/p/motan-weibo)

  • grpc(http://grpc.io)

  • thrift(https://github.com/apache/thrift)

mq framework:

  • activemq

  • rabbitmq

  • redis mq

  • hornetq

  • aliyun mq

cache framework

  • ehcache

  • redis

core framework:

  • jfinal

  • undertow



推荐阅读

8 个最佳案例教你写好开发者文档

Go 很好,为什么我们不使用它?

6 月全球数据库排名,MySQL 直逼 Oracle | DB-Engines 排行榜

“放码过来”邀您亮“项”,一不小心就火了!

点击“阅读原文”查看更多精彩内容

您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存