基于maven
freemarker 2.3.20
spirngmvc 3.2.9.RELEASE
spring 3.2.9.RELEASE
Hiberante 3.6.9.Final(自动建表)
mybatis 3.2.7 数据交互
druid 连接池
cxf3.0.0 发布webservice
quartz 2.2.1 定时任务
jquery
jquery-datatable
artdailog v6
ace UI的封装
主要实现
dao层 mybatis的动态sql
service层
controller层
常用工具类的封装
jquery-datatable get和post请求的实现
下载地址http://pan.baidu.com/s/1kTsnDWz
系列文章慢慢添加
1) 框架的POM文件
2)框架的web.xml文件
a)基于druid连接池的数据源配置
b)mybatis的sqlSessionFactory配置和mybatis-config的引用
c)声明式事务的配置
d)hibernate3 自动建表的配置
e)spring quartz 的配置与规则详解
f)druid 监控jdbc的配置
4) mybatis-config.xml的配置
5) springmvc的配置
a)springmvc拦截器的配置
b)静态资源访问的配置
c)注解扫描的配置
d)默认首页的配置
e)多视图的配置
实现了jsp和freemarker的配置
ps:回复:想问下,如何同时配置hibernate 和mybatis的事物
<!-- 事务配置(已验证) --> <!-- 配置事务管理器 --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> <!-- 定义 Autowired 自动注入 bean --> <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/> <!-- 事务切入点 --> <bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor" abstract="false"> <property name="transactionManager"> <ref bean="transactionManager" /> </property> <property name="transactionAttributes"> <props> <prop key="insert*">PROPAGATION_REQUIRED</prop> <prop key="append*">PROPAGATION_REQUIRED</prop> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="add*">PROPAGATION_REQUIRED</prop> <prop key="batch*">PROPAGATION_REQUIRED</prop> <prop key="create*">PROPAGATION_REQUIRED</prop> <prop key="exe*">PROPAGATION_REQUIRED</prop> <prop key="import*">PROPAGATION_REQUIRED</prop> <prop key="update*">PROPAGATION_REQUIRED</prop> <prop key="modify*">PROPAGATION_REQUIRED</prop> <prop key="edit*">PROPAGATION_REQUIRED</prop> <prop key="delete*">PROPAGATION_REQUIRED</prop> <prop key="del*">PROPAGATION_REQUIRED</prop> <prop key="remove*">PROPAGATION_REQUIRED</prop> <prop key="repair*">PROPAGATION_REQUIRED</prop> <prop key="delAndRepair*">PROPAGATION_REQUIRED</prop> <prop key="*NoTran">PROPAGATION_SUPPORTS</prop> <prop key="*">PROPAGATION_REQUIRED, readOnly</prop> </props> </property> </bean> <bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="interceptorNames"> <list> <idref bean="transactionInterceptor" /> </list> </property> <property name="beanNames"> <list> <value>*Service</value> <value>*ServiceImpl</value> </list> </property> <!-- <property name="proxyTargetClass"> <value>true</value> </property> --> </bean>
文章评论
有没有数据库的脚本啊
@匿名 里面带有数据脚本
想问下,有最新版本的下载地址吗
@匿名 非maven版的项目,没改完,最近比较忙,没时间写了
http://pan.baidu.com/s/1c0gypyw
谢谢
想问下,如何同时配置hibernate 和mybatis的事物
@匿名 已经把事务配置加入到文章中了,这里标签都没了
项目里面,好像没有用到 hibernate ,虽然有配置;
@匿名 这一版只是用到hibernate建表了,最新版已经集成了进去,hibernate和mybatis并行
ERROR DefaultListableBeanFactory:513 - Destroy method on bean with name 'qQUserInfoService' threw an exception。
完整错误信息 请留邮箱 后发。
@匿名 5ycode@sina.com
启动服务时报错。
mxy221122@163.com
@匿名 什么错误?