После обновления до 4.0.2 управление сеансами перестало работать. После тщательного устранения неполадок я обнаружил, что теперь мне нужно явно добавить @EnableRedisHttpSession, чтобы сеансы Redis работали правильно.
В документации Spring указано, что
Код: Выделить всё
After adding the required dependencies, we can create our Spring Boot configuration. Thanks to first-class auto-configuration support, just by adding the dependency Spring Boot will set up Spring Session backed by Redis for us.
Under the hood, Spring Boot applies configuration that is equivalent to manually adding @EnableRedisHttpSession annotation. This creates a Spring bean with the name of springSessionRepositoryFilter that implements Filter. The filter is in charge of replacing the HttpSession implementation to be backed by Spring Session.
Это преднамеренное изменение в конфигурации Spring Boot 4.x или Spring Session?
Будем очень признательны за любые идеи или ссылки. Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/798 ... ot-working
Мобильная версия