摘要: Spring--连接数据库 Spring提供了JdbcTemplate模板类 依赖的引入: i. Spring-context ii. Spring-jdbc iii. Mysql iv. dbcp(连接池) <!--spring基础依赖--> <dependency> <groupId>org.s 阅读全文
posted @ 2023-11-22 19:55 Kbaor 阅读(18) 评论(0) 推荐(0) 编辑
摘要: AspectJ(面向切面编程框架)-- 注解版 AspectJ常用的注解 @Aspect 标注当前类为切面类 @Before 前置执行 @After 后置执行 @AfterReturning 后置返回数据执行 @AfterThrowing 后置异常处理执行 @Pointcut 切入点 依赖的引入 < 阅读全文
posted @ 2023-11-22 16:06 Kbaor 阅读(8) 评论(0) 推荐(0) 编辑
摘要: AspectJ(面向切面编程框架) Aspectj是一个基于java的、面向切面的AOP框架。Spring2.0之后增加了对Aspectj切点表达式的支持。而实际开发中一般都使用Aspectj方式来实现AOP。a56爆大奖在线娱乐还要导入Aspectj相关jar包。 aspectJ 包含通知类型: before:前 阅读全文
posted @ 2023-11-22 11:41 Kbaor 阅读(4) 评论(0) 推荐(0) 编辑