# jfinal-dubbo **Repository Path**: xmoo/jfinal-dubbo ## Basic Information - **Project Name**: jfinal-dubbo - **Description**: No description available - **Primary Language**: Java - **License**: MulanPSL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-09-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jfinal-dubbo #### 介绍 jfinal-dubbo 是为了解决jfinal项目调用dubbo服务的功能 本项目基于 dubbo2.7+ jfinal4.3+ maven地址(并未提交到中央仓库),目前功能还比较简陋 ``` com.maika jfinal-dubbo 0.0.1-SNAPSHOT ``` #### 使用说明 1. jfinal 项目的 JFinalConfig中配置 ``` public void configConstant(Constants me) { loadConfig(); me.setControllerFactory(new ReferenceServiceAutowiredControllerFactory()); } ``` 2. controller引用服务地方加注解 @ReferenceService ``` public class IndexController extends Controller { @ReferenceService DemoService myService; public void index() { render("index.html"); } public void test() { renderText(myService.sayHello("hello")); } } ```