• [教程] DCS如何配合Spring_Session做Session共享?
    本帖最后由 husterindg 于 2018-5-10 17:17 编辑DCS的Redis缓存实例可以配合Spring_Session进行Session共享。出于安全考虑,DCS暂不支持客户端发起的CONFIG命令,因此需要按如下步骤进行操作: [*]通过管理控制台修改缓存实例的配置参数notify-keyspace-event,将值指定为“Egx”。 [*]在Spring框架的XML配置文件中,增加如下: static-field="org.springframework.session.data.redis.config.ConfigureRedisAction.NO_OP"/> [*]修改Spring相关代码,通过启用ConfigureRedisAction.NO_OP这个bean组件,禁止通过客户端调用CONFIG命令,避免报错。@Beanpublic static ConfigureRedisAction configureRedisAction() { return ConfigureRedisAction.NO_OP;} 更多说明,可参考Spring官方文档。