slyak / spring-data-jpa-extra

spring data jpa with template dynamic query (eg: freemarker,velocity etc.) like mybatis. The master branch already support springboot2+ spring5+
Apache License 2.0
400 stars 116 forks source link

自定义的方法名spring 的Repository会报错 #13

Closed zhoujinliang closed 6 years ago

zhoujinliang commented 6 years ago

在integer中定义一个方法如下:

@TemplateQuery public Map<String,String> queryEmpidFromUserids(List<String> ids, int tid); 启动时 spring报错: Caused by: org.springframework.data.mapping.PropertyReferenceException: No property queryEmpidFromUserids found for type Employee!