Fight With Me!!!

导航

2017年6月5日 #

spring data jpa删除的使用方式

摘要: Derivation of delete queries using given method name is supported starting with version 1.6.0.RC1 of Spring Data JPA. The keywords remove and delete a 阅读全文

posted @ 2017-06-05 21:56 nickTimer 阅读(1588) 评论(0) 推荐(0) 编辑

javax.persistence.TransactionRequiredException: No transactional EntityManager available

摘要: 在操作中加上@Transcational注解,一般是用于修改或者删除操作。 阅读全文

posted @ 2017-06-05 21:51 nickTimer 阅读(707) 评论(0) 推荐(0) 编辑

java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result异常的解决方法

摘要: 今天在写一个JAVA程序的时候出现了异常:java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result。发现报错的语句是: 1 foo.divide(ba 阅读全文

posted @ 2017-06-05 21:49 nickTimer 阅读(1008) 评论(0) 推荐(0) 编辑

JS比较两个数组是否相等 是否拥有相同元素

摘要: Javascript怎么比较两个数组是否相同?JS怎么比较两个数组是否有完全相同的元素?Javascript不能直接用==或者 来判断两个数组是否相等,无论是相等还是全等都不行,以下两行JS代码都会返回false <script type="text/javascript"> alert([]==[ 阅读全文

posted @ 2017-06-05 21:45 nickTimer 阅读(11852) 评论(0) 推荐(0) 编辑