摘要: package com.itheima; import com.itheima.dao.RoleDao;import com.itheima.dao.UserDao;import com.itheima.domain.Role;import com.itheima.domain.User;impor 阅读全文
posted @ 2019-06-03 20:00 MyCreep 阅读(178) 评论(0) 推荐(0)
摘要: package com.itheima.domain; import javax.persistence.*;import java.util.ArrayList;import java.util.List; @Entity@Table(name="t_role")public class Role 阅读全文
posted @ 2019-06-03 19:59 MyCreep 阅读(200) 评论(0) 推荐(0)
摘要: package com.itheima; import com.itheima.dao.UserDao;import com.itheima.domain.User;import org.junit.Test;import org.junit.runner.RunWith;import org.sp 阅读全文
posted @ 2019-06-03 19:54 MyCreep 阅读(1884) 评论(0) 推荐(0)
摘要: MethodTest 阅读全文
posted @ 2019-06-01 17:57 MyCreep 阅读(319) 评论(0) 推荐(0)
摘要: applicationContext.xml dao接口 实现 注解:@Entity//这是个实体类@Id主键@Column@Transactional事物@Rollback(false)回滚关闭 Bean工厂: 注入的UserDao接口继承JpaRepository<User,Integer>Jp 阅读全文
posted @ 2019-06-01 17:19 MyCreep 阅读(174) 评论(0) 推荐(0)
摘要: 动态代理两个重要的组成: Proxy 与 InvocationHandler Hello1 hello = (Hello1) Proxy.newProxyInstance(Hello.class.getClassLoader(),new Class[]{Hello1.class},new Hello 阅读全文
posted @ 2019-05-31 21:52 MyCreep 阅读(380) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-05-22 15:53 MyCreep 阅读(0) 评论(0) 推荐(0)
摘要: {"id":"002","title":"水浒传"} 阅读全文
posted @ 2019-05-21 20:10 MyCreep 阅读(78) 评论(0) 推荐(0)
摘要: 1. 数据库, 因为将数据持久化到硬盘上, 所以查询数据是从硬盘中读取 所以数据库查询的速度快慢与磁盘的IO效率也有很大关系 硬盘分类: 机械硬盘: 5400转 7200转 12000转 单块硬盘最快读取速度500多M每秒写入速度最快300多M每秒 固态硬盘: 比较贵, 不使用 2. 数据库优化: 阅读全文
posted @ 2019-05-19 21:16 MyCreep 阅读(218) 评论(0) 推荐(0)
摘要: 微信提供 HttpClient.java 工具类 OrderServiceImpl PayServiceImpl PayController OrderController 阅读全文
posted @ 2019-05-19 20:05 MyCreep 阅读(487) 评论(0) 推荐(0)