jsonUtils&&Json、Xml转换工具Jackson使用
摘要:1.jsonUtils package com.icil.utils; import java.util.List; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.dat
阅读全文
posted @
2018-03-31 23:24
lshan
阅读(882)
推荐(0) 编辑
restful 分风格
摘要:参考 https://blog.csdn.net/b671900/article/details/24478283
阅读全文
posted @
2018-03-31 22:45
lshan
阅读(131)
推荐(0) 编辑
bean-json-bean-json 工具
摘要:fastjson: ArrayList<Student> students = JSON.parseObject(JSON_ARRAY_STR, new TypeReference<ArrayList<Student>>() {}); package com.taotao.utils; import
阅读全文
posted @
2018-03-29 22:28
lshan
阅读(164)
推荐(0) 编辑
jpa summary
摘要:JPA Prepared by: John Tan 20 March, 2018 Contents 1 what is JPA 2 1.1 Introduction 2 1.2 architectrue 2 1.3 jpa-EntityManagers and Relationship 3 1.4
阅读全文
posted @
2018-03-27 18:33
lshan
阅读(159)
推荐(0) 编辑
web service 参考文档
摘要:web service 参考文档 https://www.tutorialspoint.com/webservices/index.htm
阅读全文
posted @
2018-03-27 18:25
lshan
阅读(117)
推荐(0) 编辑
jap 事务总结
摘要:参考: JPA事务总结 2010年4月13日 - 从表11-2中可以看出,对于不同的EntityManager类型与所运行的环境,所支持的事务类型是不一样的。 其中两种情况下最为简单,一种是容器托管的 EntityMana...
阅读全文
posted @
2018-03-27 17:11
lshan
阅读(221)
推荐(0) 编辑
jpa-spring -basic
摘要:applicationContent.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/
阅读全文
posted @
2018-03-25 23:41
lshan
阅读(248)
推荐(0) 编辑
jpa-jpql-basic-test
摘要:jpql 基本测试 //可以使用 JPQL 完成 UPDATE 和 DELETE 操作. @Test public void testExecuteUpdate(){ String jpql = "UPDATE Customer c SET c.lastName = ? WHERE c.id = ?
阅读全文
posted @
2018-03-25 23:36
lshan
阅读(266)
推荐(0) 编辑
jpa 一对多and 多对一
摘要:配置: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001
阅读全文
posted @
2018-03-25 17:24
lshan
阅读(221)
推荐(0) 编辑
jpa-入门.缓存配置ehcache.xml
摘要:<ehcache> <!-- Sets the path to the directory where cache .data files are created. If the path is a Java System Property it is replaced by its value i
阅读全文
posted @
2018-03-22 22:27
lshan
阅读(225)
推荐(0) 编辑
jpa-入门测试
摘要:package com.atguigu.jpa.test;import java.util.Date;import java.util.List;import javax.persistence.EntityManager;import javax.persistence.EntityManager
阅读全文
posted @
2018-03-22 22:25
lshan
阅读(235)
推荐(0) 编辑
JPA
摘要:JPA入门: 配置文件:<?xml version="1.0" encoding="UTF-8"?><persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.o
阅读全文
posted @
2018-03-22 17:48
lshan
阅读(136)
推荐(0) 编辑