jax-rs+spring+spring mybatis事务注解整合 整个谁有发我个邮箱

谁有《地藏经》全文,拼音注解TXT电子书? 麻烦发到我的邮箱,,谢谢了_百度知道
谁有《地藏经》全文,拼音注解TXT电子书? 麻烦发到我的邮箱,,谢谢了
提问者采纳
已经发到你邮箱,请根据需要转换。 阿弥陀佛!
提问者评价
多谢师兄,阿弥陀佛
其他类似问题
txt电子书的相关知识
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁三菱plc指令大全(梯形图使用的指令和符号) 要带注解,有编程实例可以发给我吗?邮箱是_百度知道
三菱plc指令大全(梯形图使用的指令和符号) 要带注解,有编程实例可以发给我吗?邮箱是
我有更好的答案
按默认排序
什么系列的?我可以给你一个标准的工厂设备程序图。有要求可以发邮件给我:
百度上面有的,在百度文库里面,可以下载!
其他类似问题
三菱plc的相关知识
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁SpringMVC+Mybatis整合注解_小组_ThinkSAAS
SpringMVC+Mybatis整合注解
SpringMVC+Mybatis整合注解
Spring.xml配置
&?xml version="1.0"encoding="UTF-8"?&
&beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"
xmlns:p="http://www.springframework.org/schema/p"xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
&mvc:annotation-driven/&
&!--引入属性文件 --&
&context:property-placeholder location="classpath:jdbc.properties"/&
&!-- service和dao包(自动注入) --&
&context:component-scan base-package="com.meng.service,com.meng.dao"/&
SpringMVC.xml配置
&?xml version="1.0"encoding="UTF-8"?&
&beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"
xmlns:p="http://www.springframework.org/schema/p"xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
&mvc:annotation-driven /& &!-- 支持spring3.0新的mvc注解 --&
&context:component-scan base-package="com.meng"/&
&!-- 避免IE执行AJAX时,返回JSON出现下载文件 --&
&bean id="mappingJacksonHttpMessageConverter"class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"&
&property name="supportedMediaTypes"&
&value&text/charset=UTF-8&/value&
&/property&
&!-- 启动Spring MVC 的注解功能,完成请求和注解POJO的映射 --&
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"&
&property name="messageConverters"&
&ref bean="mappingJacksonHttpMessageConverter"/& &!-- json转换器 --&
&/property&
&!-- 页面View层基本信息设定 --&
&bean id="viewResolver"p:prefix="/WEB-INF/jsp/"p:suffix=".jsp"class="org.springframework.web.servlet.view.InternalResourceViewResolver"&
&property name="viewClass"
value="org.springframework.web.servlet.view.JstlView"/&
&bean id="multipartResolver"class="org.springframework.monsMultipartResolver"&
&property name="defaultEncoding"value="UTF-8"/&
&property name="maxUploadSize"value=""/&&!-- 上传文件大小限制为31M,31* --&
&property name="maxInMemorySize"value="4096"/&
Spring-Mybatis.xml配置
&?xml version="1.0"encoding="UTF-8"?&
&beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
&!--开启注解支持 --&
&mvc:annotation-driven/&
&!--创建jdbc数据源 --&
&bean id="dataSource"class="mons.dbcp.BasicDataSource"
destroy-method="close"&
&property name="driverClassName"value="${driver}"/&
&property name="url"value="${url}"/&
&property name="username"value="${username}"/&
&property name="password"value="${password}"/&
&!-- 初始化连接大小 --&
&property name="initialSize"value="0"/&
&!-- 连接池最大使用连接数量 --&
&property name="maxActive"value="20"/&
&!-- 连接池最大空闲 --&
&property name="maxIdle"value="20"/&
&!-- 连接池最小空闲 --&
&property name="minIdle"value="0"/&
&!-- 获取连接最大等待时间 --&
&property name="maxWait"value="60000"/&
&!-- mybatis文件 --&
&bean id="sqlSessionFactory"class="org.mybatis.spring.SqlSessionFactoryBean"&
&property name="dataSource"ref="dataSource"/&
&!-- 自动扫描entity目录,省略Configuration.xml里手工配置 --&
&property name="mapperLocations"value="classpath:com/meng/po/*.xml"/&
&bean id="sqlSession"class="org.mybatis.spring.SqlSessionTemplate"&
&constructor-arg index="0"ref="sqlSessionFactory"/&
&!-- 配置事务管理器 --&
&bean name="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&
&property name="dataSource"ref="dataSource"/&
&!-- 注解方式配置事物 --&
&tx:annotation-driven transaction-manager="transactionManager"/&
&!-- 拦截器方式配置事物 --&
&tx:advice id="transactionAdvice"transaction-manager="transactionManager"&
&tx:attributes&
&tx:method name="save*"propagation="REQUIRED"/&
&tx:method name="update*"propagation="REQUIRED"/&
&tx:method name="insert*"propagation="REQUIRED"/&
&tx:method name="delete*"propagation="REQUIRED"/&
&tx:method name="find*"propagation="REQUIRED"read-only="true"/&
&tx:method name="select*"propagation="REQUIRED"read-only="true"/&
&tx:method name="search*"propagation="REQUIRED"read-only="true"/&
&tx:method name="datagrid*"propagation="REQUIRED"
read-only="true"/&
&tx:method name="*"propagation="REQUIRED"/&
&/tx:attributes&
&/tx:advice&
&aop:config&
&!--定义在service包和所有子包里的任意类的任意方法的执行 --&
&aop:pointcut id="transactionPointcut"
expression="execution(* com.meng.service..*Impl.*(..))"/&
&aop:advisor pointcut-ref="transactionPointcut"
advice-ref="transactionAdvice"/&
&/aop:config&
运行环境:windows7+myeclipse 8.5+Tomcat 6.x
数据库:mysql
DEMO经过测试运行没问题,功能比较简单,只是进行整合练习,哪些地方不好大家可以提提意见
下载链接:/s/1mgkLABI
用户评论(0)
开发技术学习小组列表
PHP开发框架
缓存Memcache
服务器环境
ThinkSAAS商业授权:
ThinkSAAS为用户提供有偿个性定制开发服务
ThinkSAAS将为商业授权用户提供二次开发指导和技术支持
手机客户端
ThinkSAAS接收任何功能的Iphone(IOS)和Android手机的客户端定制开发服务
让ThinkSAAS更好,把建议拿来。全注解,演示Struts2 + Spring + MyBatis整合 - 下载频道
- CSDN.NET
&&&&全注解,演示Struts2 + Spring + MyBatis整合
全注解,演示Struts2 + Spring + MyBatis整合
全注解,演示Struts2 + Spring + MyBatis整合,开发环境为Eclipse,数据库为mysql。
若举报审核通过,可奖励20下载分
被举报人:
huangcongmin
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
您可能还需要
开发技术下载排行

我要回帖

更多关于 spring mybatis事务 的文章

 

随机推荐