我有一个简单的Spring Cloud微服务系统。 我在应用程序中有一个Cloud Gateway服务器。 它在Eureka中注册,获取Config Server的地址并自行下载配置。
该网关服务将是登录的地方,并且还会找到正确的微服务,即客户真正想要调用的服务。 它使用Redis进行会话处理和分发。
但是在启动过程中,我看到此失败:
***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'sessionRepository', defined in class path resource [org/springframework/boot/autoconfigure/session/RedisReactiveSessionConfiguration$SpringBootRedisWebSessionConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
[WARNING]