光阴似箭催人老,日月如移越少年。
1. Output the sessionID and see
2. Whether to use reverse proxy or something like that
I guess, after all, I am not very good at JavaThe session you obtained is o. What you return output is result. How come there is a value?
The person above is right. Since you want to get the logged-in user, you can directly return to User and convert the obtained object
Print the sessionId when requesting to check whether it is consistent. If they are inconsistent, it is possible that the browser has disabled cookies; if they are consistent, are they retrieved as mentioned above but not put into the result
Correct answer to the 1st floor: You can go to the user in your session. Please interrupt and look at your object o
It is possible that browser cookies are disabled
1. Output the sessionID and see
2. Whether to use reverse proxy or something like that
I guess, after all, I am not very good at Java

The session you obtained is o. What you return output is result. How come there is a value?
The person above is right. Since you want to get the logged-in user, you can directly return to User and convert the obtained object
Print the sessionId when requesting to check whether it is consistent. If they are inconsistent, it is possible that the browser has disabled cookies; if they are consistent, are they retrieved as mentioned above but not put into the result
Correct answer to the 1st floor: You can go to the user in your session. Please interrupt and look at your object o
It is possible that browser cookies are disabled