英文:
Spring boot and Tomcat handling users
问题
所以我正在使用Java Spring Boot和Tomcat构建一个Web应用程序,我遇到了一个问题,即如何让多个用户同时在此Web应用程序上拥有各自的账户。我目前遇到的问题是,一旦我用第二个账户登录后,使用第一个账户的设备也变成了第二个账户。因此,最终两个设备都有了第二个账户... 是否需要采取特殊措施使其正常工作?我对所有这些都相当新。
英文:
So I am building a web app with java spring boot, and tomcat, and I am stuck trying to figure out how to have multiple users, with their separate accounts on this web app at the same time. My current problem is that once I am logged in with the second account, device with the first account becomes second account. So at the end, both devices have a second account on them.... is there anything special I need to do in order for this to work? I am pretty new to all this.
专注分享java语言的经验与见解,让所有开发者获益!
评论