摘要:
1.最简单通知配置 /** * 测试AOP的配置 */ public class AOPTest { public static void main(String[] args) { //1.获取容器 ApplicationContext ac = new ClassPathXmlApplicati 阅读全文
posted @ 2020-08-26 23:23
从精通到陌生
阅读(328)
评论(0)
推荐(0)
摘要:
1.基于jdk动态代理实现方式 /** * 模拟一个消费者 */ public class Client { public static void main(String[] args) { final Producer producer = new Producer(); /** * 动态代理: 阅读全文
posted @ 2020-08-26 18:50
从精通到陌生
阅读(279)
评论(0)
推荐(0)
摘要:
1.强依赖关系 public class JdbcDemo1 { public static void main(String[] args) throws SQLException, ClassNotFoundException { //1.注册驱动 // DriverManager.regist 阅读全文
posted @ 2020-08-26 13:13
从精通到陌生
阅读(156)
评论(0)
推荐(0)
摘要:
1.基于xml的spring事务 /** * 使用Junit单元测试:测试我们的配置 */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:bean.xml") public c 阅读全文
posted @ 2020-08-26 00:46
从精通到陌生
阅读(332)
评论(0)
推荐(0)
浙公网安备 33010602011771号