wiselyman / uaa-zuul

使用OAUTH2+Zuul实现认证和授权
770 stars 420 forks source link

Where is the implementation of findOneWithRolesByUsername function? #4

Open andy24 opened 7 years ago

andy24 commented 7 years ago

請問一下,我看SysUserRepository需要implement findOneWithRolesByUsername function,但我找不到實作的程式,可以請教你一下,在哪呢?

hahaho commented 7 years ago

@andy24 这就是spring data的用法啊,只要写接口spring 根据接口的名字帮你实现的。。。。

andy24 commented 7 years ago

根據spring data的說法,並沒有findOneWith的用法,請問這哪裡有寫呢?

https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods.query-creation