摘要: 初始化:git init 签名 项目级别/仓库级别:git config 名字:git config user.name tom_pro email:git config user.email good_pro 系统级:git config -global 名字:git config user.na 阅读全文
posted @ 2021-11-29 16:06 江南0o0 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 错误 Error updating database. Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed ### The error 阅读全文
posted @ 2021-11-27 10:59 江南0o0 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 错误 Error creating bean with name 'transactionManager' defined in class path resource [spring-dao.xml]: Invocation of init method failed; nested except 阅读全文
posted @ 2021-11-27 10:56 江南0o0 阅读(1459) 评论(0) 推荐(0) 编辑
摘要: 两种方式 声明式事物:aop 编程式事物:就是在代码中手动添加事物 声明式事物 只需要在spring-dao.xml配置即可(注意需要假如相关约束) <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframe 阅读全文
posted @ 2021-11-27 10:49 江南0o0 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 错误 Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-dao.xml]: Invocation of init method failed; nested excepti 阅读全文
posted @ 2021-11-27 09:46 江南0o0 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 需要导入的依赖 <dependencies> <!-- spring整合mybatis导入的依赖--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scop 阅读全文
posted @ 2021-11-26 17:43 江南0o0 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 这个错误废了我好多时间,记录一下 错误 原因: spring自带的name属性和配置文件的name属性重合了,然后配置文件的name就被覆盖掉了 解决办法 1.在导入配置文件的标签后面添加一个属性:system-properties-mode="FALLBACK" <context:property 阅读全文
posted @ 2021-11-26 17:00 江南0o0 阅读(55) 评论(0) 推荐(0) 编辑
摘要: @Aspect表明这是一个切面类 package com.kuang.diy; /** * @author Administrator * @description: TODO * @date 2021/11/26 13:46 */ import org.aspectj.lang.Proceedin 阅读全文
posted @ 2021-11-26 14:07 江南0o0 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 通过自定义类,切面来实现aop 要切入的方法类 package com.kuang.diy; public class DiyPoint { public void before(){ System.out.println(" 再方法之前执行了 "); } public void after(){ 阅读全文
posted @ 2021-11-26 12:17 江南0o0 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 使用aop需要导入的依赖 <!-- 使用aop需要导入的依赖--> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.4</version> </depend 阅读全文
posted @ 2021-11-26 11:53 江南0o0 阅读(90) 评论(0) 推荐(0) 编辑