我需要修改Redis代码,以便它可以使用新的SpringBoot 2.0.3,当前启动Tomcat9.0.12时(不是因为业务需要启动SpringBoot ),我得到以下错误: beans of type 'org.springframework.data.redis.connection.RedisConnectionFactory>spring-data-redis</artifactId>
抱歉,如果这是一个显而易见的事情,但我在编程方面非常新手。我已经让我的应用程序能够登录/注册用户,但只要我导航到应用程序中的另一个页面,然后返回到一个用户页面,它就会表现为我还没有登录。我不知道如何让它记住我已经登录了。我假设我需要将会话数据从我的User Controller传递到我的另一个Controller类。但老实说,我只是迷路了。任何帮助都将不胜感激。public static final String userSessionKey = "user";
public User getUserFromSession(HttpSession sessio