专栏名称: OSC开源社区
OSChina 开源中国 官方微信账号
目录
相关文章推荐
OSC开源社区  ·  2024年中国开源模型:崛起与变革 ·  昨天  
码农翻身  ·  漫画 | ... ·  昨天  
程序员小灰  ·  这款AI编程工具,将会取代Cursor! ·  昨天  
程序猿  ·  450万虚假Star曝光,最低0.7元/个? ... ·  3 天前  
51好读  ›  专栏  ›  OSC开源社区

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

OSC开源社区  · 公众号  · 程序员  · 2017-06-06 08:34

正文


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:







请到「今天看啥」查看全文