catalina.properties在Tomcat重新启动时被覆盖 [英] catalina.properties gets overridden on Tomcat restart

查看:460
本文介绍了catalina.properties在Tomcat重新启动时被覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Catalina.properties中向common.loader添加了一个属性(例如,添加了C:/ apps / conf)
,并且在重新启动Tomcat 7时它会重置。尽管并非每次重新启动都如此。

I added a property to common.loader in Catalina.properties (eg. added C:/apps/conf) and it is getting reset when I restart Tomcat 7. Though this is not the case on every restart.

想知道为什么服务器反弹时有时会被覆盖,有什么想法吗?

Wonder why it's getting overridden sometimes when the server is bounced, any ideas?

推荐答案

如果使用的是Eclipse,请确保在重新启动之前更新工作空间中服务器项目中的catalina.properties。这是此文件的主版本,它将覆盖您在tomcat目录中可能进行的更改。

If you're using Eclipse, make sure you update catalina.properties in the "Servers" project in your workspace before you restart. This is the master version of this file and will overwrite anything you may have changed in your tomcat directory.

这篇关于catalina.properties在Tomcat重新启动时被覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆