You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use Spring Session in the Spring Security and Spring Authorization Server environments. Currently, I achieve this by configuring the following beans
This code can make Spring Security run normally without any issues.
My problem is that the above code has some flaws, which are in the idea, as shown in the following figure, Prompt error "No beans of 'FindByIndexNameSessionRepository' type found"
From the perspective of class inheritance, there is no problem with this approach now, and the code can also run normally.
However, from the configuration perspective of Spring beans, there is indeed a small issue, as only RedisIndexedSessionRepository (in org.springframework.session.data.redis.config.annotation.web.http.RedisIndexedHttpSessionConfiguration) beans were injected into the Spring session without FindByIndexNameSessionRepository beans, so the IDE prompts that FindByIndexNameSessionRepository beans cannot be found, which is also correct.
if change the access level of RedisSession in class RedisIndexedSessionRepository to public, can turn the code into the following way
Uh oh!
There was an error while loading. Please reload this page.
I want to use Spring Session in the Spring Security and Spring Authorization Server environments. Currently, I achieve this by configuring the following beans
This code can make Spring Security run normally without any issues.
My problem is that the above code has some flaws, which are in the idea, as shown in the following figure, Prompt error "No beans of 'FindByIndexNameSessionRepository' type found"
org.springframework.session.data.redis.config.annotation.web.http.RedisIndexedHttpSessionConfiguration
) beans were injected into the Spring session without FindByIndexNameSessionRepository beans, so the IDE prompts that FindByIndexNameSessionRepository beans cannot be found, which is also correct.if change the access level of RedisSession in class RedisIndexedSessionRepository to public, can turn the code into the following way
This seems more reasonable, and there will be no error prompts in the IDE.
However, RedisSession is currently inaccessible in RedisIndexedSessionRepository, so it cannot be configured using the above code.
The text was updated successfully, but these errors were encountered: