我已经找到解决此问题的方法。它取决于tomcat中的配置问题。tomcat的服务器配置文件server.xml位于“ tomcat-
folderlocation /
conf”,具有许多配置元素,如connector,lobalNamingResources,listeners。为解决我的问题,我将连接器元素的emtysessionpath属性设置为true。用于启用空会话路径。

我已经找到解决此问题的方法。它取决于tomcat中的配置问题。tomcat的服务器配置文件server.xml位于“ tomcat-
folderlocation /
conf”,具有许多配置元素,如connector,lobalNamingResources,listeners。为解决我的问题,我将连接器元素的emtysessionpath属性设置为true。用于启用空会话路径。