多数据源切换注解在Oauth2Realm引用后失效

提问 1 632
xiafei
xiafei VIP2 2020-11-15
版本:renren-security 2.5.0 开发环境:idea,jdk8
img[//cdn.renren.io/4ec8a202011151630164484.png] img[//cdn.renren.io/cad9120201115163213193.png] 只要IotDeviceService在Oauth2Realm中 @Autowired后,会不执行@DataSource,其他接口调用IotDeviceService也是一样失败,不会切换。 注释了Oauth2Realm的IotDeviceService,其他地方调用IotDeviceService就没问题了。这是什么原因。
回帖