gpt4 book ai didi

spring - Spring App 的自定义 tomcat context.xml

转载 作者:行者123 更新时间:2023-11-28 23:46:24 25 4
gpt4 key购买 nike

我有一个 Spring 应用程序,我想更改 session cookie 路径。我知道这可以在服务器的 context.xml 文件中完成,但我无权在我的服务器上编辑该文件。有没有另一种方法可以做到这一点,也许是在某处添加另一个 context.xml 文件?

顺便说一句,我在项目的 META-INF 文件夹中添加了一个 context.xml 文件,但它没有用。

最佳答案

将您的 context.xml 与您的 war 文件捆绑在一起。

关于spring - Spring App 的自定义 tomcat context.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13769921/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com