如何更改已部署的war文件的数据库设置? [英] How to change database settings for a deployed war file?
本文介绍了如何更改已部署的war文件的数据库设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们有一个部署的WAR文件但是我们想要更改数据库设置。我该如何做到这一点?我在IDE中打开了WAR文件,有2-3个地方有数据库设置。改变它的正确方法是什么?
We have a WAR file that is deployed however we want to change the database settings. How do I get about doing that? I opened the WAR file in an IDE and there are like 2-3 places that have the database settings. What is the proper way of changing it?
谢谢
推荐答案
应设置tomcat实例以通过JNDI提供数据源。
The tomcat instance should be set up to provide a datasource through JNDI.
这篇关于如何更改已部署的war文件的数据库设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文