- 博客(3)
- 收藏
- 关注
原创 Idea中Spring+Jpa爆如下错误:No persistence units parsed from {classpath*:META-INF/persistence.xml}
最近在Spring+Jpa的web项目中报如下错误:Caused by: java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml} at org.springframework.orm.jpa.persistenceunit.DefaultPer...
2019-12-07 16:01:05
2321
原创 使用SpringDataJpa进行高级查询
使用方法名称来指定高级查询的条件SpringDataJpa支持使用方法名称来指定高级查询的条件方法名称必须遵守以下格式要求: ① 方法名称必须以findBy或者findAllBy开头 ② findBy或者findAllBy后面紧跟domain实体类的字段名称(首字母大写) ③ 字段名称后面紧跟运算符单词 Like NotLike :用于名称的模糊查询 In NotI...
2019-12-07 14:20:47
990
原创 SpringMVC+Spring+Jpa集成
创建一个Maven项目,导入jar包<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation...
2019-12-07 13:50:26
226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅