06 2019 档案
摘要:"id":1, "title":"Elasticsearch是一个基于Lucene的搜索服务器", "content":"它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口。Elasticsearch是用Java开发的,并作为Apache许可条款下的开放源码发布,是当前流行的
阅读全文
摘要://对象编程json字符串 ObjectMapper objectMapper=new ObjectMapper(); string s1 = objectMapper.writeValueAsString(user); redisTemplate.opsForValue().set("user",s1)
阅读全文
摘要:package com.itheima; import com.itheima.dao.RoleDao;import com.itheima.dao.UserDao;import com.itheima.domain.Role;import com.itheima.domain.User;impor
阅读全文
摘要:package com.itheima.domain; import javax.persistence.*;import java.util.ArrayList;import java.util.List; @Entity@Table(name="t_role")public class Role
阅读全文
摘要: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
阅读全文
摘要:applicationContext.xml dao接口 实现 注解:@Entity//这是个实体类@Id主键@Column@Transactional事物@Rollback(false)回滚关闭 Bean工厂: 注入的UserDao接口继承JpaRepository<User,Integer>Jp
阅读全文

浙公网安备 33010602011771号