-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring-boot版本 1.5.4.RELEASE 使用出错 #40
Comments
应该没问题,因为这个类已经标注了@NoRepositoryBean |
你可以配置: 或者直接使用spring-boot-starter-jpa-extra |
本地跑单元测试是可以的正常请求的,但是通过服务启动就跪了,会报No property mgetOneByOne found for type错误。 |
忽略上述问题,是我自己调试的问题。如果按照正常引入是没有问题。 @EnableJpaRepositories(basePackages = "com.qianmi.oms", repositoryBaseClass = GenericJpaRepositoryImpl.class, repositoryFactoryBeanClass = GenericJpaRepositoryFactoryBean.class) 只做了上述配置,就能够正常启动。如果不能正常启动,大概率是spring版本的问题。 |
你好,我的项目spring-boot版本为1.5.4.RELEASE,jpa的版本也是一样,spring-data-jpa-extra版本使用2.1.1.RELEASE,启动时候报错 : No property mgetOneByOne found for type。
看了源码mgetOneByOne 是GenericJpaRepository里面的一个方法,项目把方法当成实体的属性了,请问有办法解决吗
The text was updated successfully, but these errors were encountered: