基于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文件
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>