摘要: Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceConte 阅读全文
posted @ 2017-02-23 19:58 玉曲风 阅读(1572) 评论(0) 推荐(0) 编辑
摘要: mybatis官方网站:http://www.mybatis.org/mybatis-3/zh/configuration.html <!--第一步:加载配置数据库相关参数--> <context:property-placeholder location="classpath:jdbc.prope 阅读全文
posted @ 2017-02-23 15:04 玉曲风 阅读(258) 评论(0) 推荐(0) 编辑
摘要: spring,mybatis事务管理配置与@Transactional注解使用[转] spring,mybatis事务管理配置与@Transactional注解使用 概述事务管理对于企业应用来说是至关重要的,即使出现异常情况,它也可以保证数据的一致性。Spring Framework对事务管理提供了 阅读全文
posted @ 2017-02-23 11:41 玉曲风 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Druid连接池及监控在spring配置如下: [html] view plaincopy <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method=" 阅读全文
posted @ 2017-02-23 10:54 玉曲风 阅读(1654) 评论(0) 推荐(0) 编辑