When using spring data JPA, create your own interface and implement it, respectively, by naming:
Interface:moduledaocustom
Implement:moduledaocustomimpl
Then create Moduledao extends Pagingandsortingrepository<t, Long> moduledaocustom
The result is an error: Java.lang.IllegalArgumentException:No property finding found for type class domain. Module
Baidu on how to search also do not search out the results, the last Google, see an article, like this, incredibly with the file name, after the implementation of the file Moduledaocustomimpl renamed as Moduledaoimpl, incredibly passed, crazy.
This bug is too torture. Give me the hint is the following article:
https://jira.springsource.org/browse/DATACMNS-114
Add: The name of the problem, see another article today to find out more clearly, the address is as follows:
http://haolx.iteye.com/blog/1575411
I also reproduced this article into my blog:
http://blog.csdn.net/yyzhq/article/details/8006923