其他
简单,体积小,入手快,功能强大 附:easyui最佳实践
Guide
数据源配置
配置数据源:db.cfg.xml
## 业务配置 ##
业务配置文件格式在config.properties中配置
默认配置业务类配置文件: **-service.xml
<component name="engine" class="com.gjframe.commen.db.provider.AnnotaionEngine"> <service interface="com.gjframe.commen.db.Engine" /></component>
是内置的引擎类,封装了常用的各种数据操作方法,可在dao中注入使用;
<intercepter class="com.gjframe.commen.service.TransactionHandler" />
是包级别的全局事务拦截器,事务遇到异常自动回滚,正常情况下自动提交!
## ACTION层配置 ##
在web.xml中增加过滤
<filter> <filter-name>actionFilter</filter-name> <filter-class> com.gjframe.commen.web.DispatcherFilter </filter-class> <init-param> <param-name>configFile</param-name> <param-value>action.xml</param-value> </init-param></filter>
参数configFile是action的配置文件.
action.xml的配置很简单
<module package="com.gjframe.example.
框架
企业
暂无评论