Home > Back-end >  Springboot spring - spring - data - data - JDBC redis problem
Springboot spring - spring - data - data - JDBC redis problem

Time:11-10

Springboot + spring - the boot - starter - data - JDBC framework, mysql data, the latest want to cluster deployment, want to use redis store session information to do the contribution of the session, increased in accordance with the online article introduced:
The compile group: 'org. Springframework. Session', name: 'spring - the session - data - redis'
The compile group: 'org. Springframework. Boot, name:' spring - the boot - starter - data - redis'

But start the service after introducing an error, as because two spring - the boot - starter - data - XXXX, didn't find a solution, also try to add the spring in the configuration file. The data. Redis. Repositories. Enabled=false but still is invalid, I understand if it's time to start to persistent objects of binding, but actually I'm just trying to save the session with redis, sharing session, don't know how to modify the configuration
Error message:
The 2020-11-09 15:33:12, 620 INFO [main] RepositoryConfigurationExtensionSupport
Spring Data JDBC - Could not safely identify store the assignment for the repository candidate interface. Com hisign. Ffp4. Approval. ApplyApprovalRepository. If you want this repository to be a JDBC repository, consider annotating your entities with one of these annotations: org. Springframework. Data. Relational. Core. The mapping. Table.
. (more than every xxxxRepository class has a set of information)

The Application failed to start due to an exception
Org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type 'com. Hisign. Ffp4. Approval. ApplyApprovalRepository' available: expected at further 1 bean which qualifies as autowire candidate. The Dependency annotations: {}
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. RaiseNoMatchingBeanFound (DefaultListableBeanFactory. Java: 1700)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. DoResolveDependency (DefaultListableBeanFactory. Java: 1256)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. ResolveDependency (DefaultListableBeanFactory. Java: 1210)
The at org. Springframework. Beans. Factory. Support. ConstructorResolver. ResolveAutowiredArgument (ConstructorResolver. Java: 885)
The at org. Springframework. Beans. Factory. Support. ConstructorResolver. CreateArgumentArray (ConstructorResolver. Java: 789)

  • Related