添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Hi,

I have the following Spring Repository.



Getting this error.

Could not create query for public abstract int com.xyz.UserRepository.updateUser(java.lang.String,java.lang.String); Reason: Failed to create query for method public abstract int com.xyz.UserRepository.updateUser(java.lang.String,java.lang.String)! No property 'updateUser' found for type 'User';

Why?
I'm not a Spring/SpringData person, but don't you need to use the @Param annotation to bind the parameters to the placeholders in the query?


and should've used these:


Thanks anyway.
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser contact us | advertise |