jfinal route bind,查看其他插件-> Maven
maven 引用 ${jfinal-routebind.version}替换为相应的版本如:0.1
<dependency>
<groupId>cn.dreampie</groupId>
<artifactId>jfinal-routebind</artifactId>
<version>${jfinal-routebind.version}</version>
</dependency>
使用非常简单的,自动注册所有controller的路由绑定工具
/**
* 配置路由
*/
public void configRoute(Routes routes) {
RouteBind routeBind = new RouteBind();
//排除扫描部分包
//routeBind.addExcludePaths("cn.dreampie.exc");
//扫描部分包
//routeBind.addIncludePaths("cn.dreampie.inc");
routes.add(routeBind);
}
使用注解自定义controller的相关属性,可选使用,需要定制controllerkey的时候使用
@ControllerKey(key|(key,path))