天天看點

類似Spring Boot的開源架構jboot

jboot

jboot is a similar springboot project base on jfinal and undertow,we have using in product environment.

jboot 中文描述

jboot是一個基于jfinal、undertow開發的一個類似springboot的開源架構, 我們已經在正式的商業上線項目中使用。她內建了代碼生成,微服務,mq,rpc,監控等功能, 開發者使用及其簡單。

maven dependency

controller example

new a controller

start

mq example

config jboot.properties

server a sendmqmessage

server b message listener

rpc example

define interface

server a export serviceimpl

server b call

cache example

use cache

database access example

define model

dao query

event example

send event

event listener

read config

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

grpc

thrift

mq framework:

activemq

rabbitmq

redis mq

hornetq

aliyun mq

cache framework

ehcache

redis

core framework:

jfinal

undertow

author

name:yangfuhai

qq:1506615067

email:[email protected]