06 2019 档案

摘要: 阅读全文
posted @ 2019-06-22 16:18 MyCreep 阅读(119) 评论(0) 推荐(0)
摘要:"id":1, "title":"Elasticsearch是一个基于Lucene的搜索服务器", "content":"它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的 阅读全文
posted @ 2019-06-05 21:04 MyCreep 阅读(480) 评论(0) 推荐(0)
摘要://对象编程json字符串 ObjectMapper objectMapper=new ObjectMapper(); string s1 = objectMapper.writeValueAsString(user); redisTemplate.opsForValue().set("user",s1) 阅读全文
posted @ 2019-06-04 18:38 MyCreep 阅读(1986) 评论(0) 推荐(0)
摘要: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 阅读(196) 评论(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 阅读(233) 评论(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 阅读(1903) 评论(0) 推荐(0)
摘要:MethodTest 阅读全文
posted @ 2019-06-01 17:57 MyCreep 阅读(334) 评论(0) 推荐(0)
摘要:applicationContext.xml dao接口 实现 注解:@Entity//这是个实体类@Id主键@Column@Transactional事物@Rollback(false)回滚关闭 Bean工厂: 注入的UserDao接口继承JpaRepository<User,Integer>Jp 阅读全文
posted @ 2019-06-01 17:19 MyCreep 阅读(198) 评论(0) 推荐(0)