How to change database settings for a deployed war file?

前端 未结 2 1141
长发绾君心
长发绾君心 2021-01-25 11:19

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

相关标签:
2条回答
  • 2021-01-25 11:44

    The tomcat instance should be set up to provide a datasource through JNDI.

    0 讨论(0)
  • 2021-01-25 11:57

    The proper way is to use a datasource at the application level and to administer it at the application server level. Check the MySQL DBCP Example in the Tomcat documentation.

    0 讨论(0)
提交回复
热议问题