Ask Your Question
4

Why is the listener not registered in Spring-Boot when using Spring-Session (Redis) and HttpSessionListener?

asked 2021-07-06 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-21 00:00:00 +0000

huitzilopochtli gravatar image

There may be several reasons why the listener is not registered in Spring-Boot when using Spring-Session (Redis) and HttpSessionListener. Some possible reasons are:

  1. The listener class is not properly registered in the Spring configuration. Make sure that the listener is registered through the @Component or @Bean annotation or by configuring it in the application.properties file.

  2. There may be a conflict between the Spring-Session and HttpSessionListener configuration. In this case, you may need to modify the Spring-Session configuration to adjust its behavior or customize its behavior to work with the HttpSessionListener.

  3. There may be a mismatch between the Spring version and the Spring-Session version. Check if the versions of the two frameworks are compatible and compatible with the deployed application server.

  4. There may be a problem with the Redis cache configuration. Check if the Redis configuration is properly set and Redis is properly running and accessible.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-06 11:00:00 +0000

Seen: 11 times

Last updated: Feb 21 '22