上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 阅读全文
posted @ 2020-09-26 15:37 Spring_Xian 阅读(666) 评论(0) 推荐(0)
摘要: 预览项目结构 导包 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <grou 阅读全文
posted @ 2020-09-26 13:19 Spring_Xian 阅读(257) 评论(0) 推荐(0)
摘要: String sql="select * from t_dept where id = ? and name = ?"; PreparedStatement ps=conn.prepareStatement(sql); ps.setInt(1,id); ps.setString(2,name); S 阅读全文
posted @ 2020-09-26 12:38 Spring_Xian 阅读(312) 评论(0) 推荐(0)
摘要: 第一种方案 修改form表单提交的地址 把 <form action="/logon">改为 <form action="${pageContext.request.contextPath}/logon"> 第二种方案 点开Tomcat 点击编辑配置 点Deployment 把下面的applicat 阅读全文
posted @ 2020-09-26 12:22 Spring_Xian 阅读(668) 评论(0) 推荐(0)
摘要: 回顾Mysql事务 原子性(要么全部完成,要么全部不起作用) 隔离性(操作同一个数据时,每一个事务应该隔离起来防止数据损坏) 持久性(事务一旦被提交就永久保存在服务器上) 一致性(所有事务动作全部完成,事务就要被提交,事务和资源保持一种满足业务规则的一致性) Spring 接管事务 注册beans 阅读全文
posted @ 2020-09-25 12:55 Spring_Xian 阅读(164) 评论(0) 推荐(0)
摘要: 1、导入jar包 junit <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> mybayis <dependency> <groupI 阅读全文
posted @ 2020-09-24 20:04 Spring_Xian 阅读(115) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-09-24 11:20 Spring_Xian 阅读(263) 评论(0) 推荐(0)
摘要: 第一种 1、User Service接口 package com.xian.dao; public interface UserService { public void add(); public void delete(); public void insert(); public void u 阅读全文
posted @ 2020-09-23 20:28 Spring_Xian 阅读(132) 评论(0) 推荐(0)
摘要: 尴尬 书写不规范 <aop:config> <!--第二种方式:使用AOP的标签实现--> <aop:aspect ref="diy"> <aop:pointcut id="diyPointCut" expression="execution(* com.xian.service.UserServi 阅读全文
posted @ 2020-09-23 17:51 Spring_Xian 阅读(1220) 评论(0) 推荐(0)
摘要: 大段大段的报错就不复制了,报错的最后有这样的一段话就说明有问题 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns 阅读全文
posted @ 2020-09-23 14:32 Spring_Xian 阅读(991) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页