摘要: 按照网上的惯例,先给出静态代理到动态代理的例子吧;要不然后面的理论和源码分析没有铺垫,大家都有点迷糊。 静态代理: /** * 声音接口,用于代理接口 */ public interface IVoice { void song(); } /** * 歌手类 */ public class Sing 阅读全文
posted @ 2020-04-15 15:09 思思博士 阅读(573) 评论(0) 推荐(2) 编辑
摘要: 为了便于SEO搜索到,首先把报错内容贴出来吧 不同版本的Oracle驱动会报不同的错 1 <dependency> 2 <groupId>com.oracle</groupId> 3 <artifactId>ojdbc6</artifactId> 4 <version>1.0</version> 5 阅读全文
posted @ 2020-04-15 10:44 思思博士 阅读(1610) 评论(0) 推荐(0) 编辑
摘要: 为了便于测试,先给出Demo代码: mybatis-oracle-config.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0/ 阅读全文
posted @ 2020-04-15 10:41 思思博士 阅读(601) 评论(0) 推荐(0) 编辑