类似这种findByAccount的方法 都不需要实现类 Spring自己会分析方法名和参数 自己加一个where account=的参数
spring data中的dao 大部分代码不需要写
原文:https://blog.51cto.com/8832695/2436674