spring data jpa 操作数据库时No property toPredicate found for type Customer!

本文介绍了在使用Spring Data JPA进行数据库操作时遇到的'No property toPredicate found for type Customer!'错误。该错误通常发生在尝试通过自定义查询接口时。解决方法包括检查实体类的定义、接口方法命名和返回类型是否正确。
摘要由CSDN通过智能技术生成
"D:\Program Files\Java\jdk1.8.0_151\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2018.02.02\IntelliJ IDEA 2018.2.2\lib\idea_rt.jar=51600:D:\Program Files\JetBrains\IntelliJ IDEA 2018.02.02\IntelliJ IDEA 2018.2.2\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\JetBrains\IntelliJ IDEA 2018.02.02\IntelliJ IDEA 2018.2.2\lib\idea_rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2018.02.02\IntelliJ IDEA 2018.2.2\plugins\junit\lib\junit-rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2018.02.02\IntelliJ IDEA 2018.2.2\plugins\junit\lib\junit5-rt.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\deploy.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\access-bridge-64.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\cldrdata.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\dnsns.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\jaccess.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\jfxrt.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\localedata.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\nashorn.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunec.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunjce_provider.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunmscapi.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunpkcs11.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\zipfs.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\javaws.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\jfxswt.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\management-agent.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\plugin.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8.0_151\jre\lib\rt.jar;H:\IDEA\ExtCoder\SpringDataJPA_day02\target\test-classes;H:\IDEA\ExtCoder\SpringDataJPA_day02\target\classes;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\junit\junit\4.12\junit-4.12.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-test\5.0.7.RELEASE\spring-test-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-core\5.0.7.RELEASE\spring-core-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-jcl\5.0.7.RELEASE\spring-jcl-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-context\5.0.7.RELEASE\spring-context-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-aop\5.0.7.RELEASE\spring-aop-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-beans\5.0.7.RELEASE\spring-beans-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-expression\5.0.7.RELEASE\spring-expression-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\springframework\spring-aspects\5.0.7.RELEASE\spring-aspects-5.0.7.RELEASE.jar;D:\JavaWeb\Apache-maven\apache-maven-3.5.2-bin\apache-maven-3.5.2\Repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值