Should you set up database connection properties in server.xml or context.xml

后端 未结 5 1221
情书的邮戳
情书的邮戳 2020-12-02 04:56

I am trying to set up the database connection properties using JNDI for a Spring web application.

I am considering two approaches as below:

Approach

5条回答
  •  隐瞒了意图╮
    2020-12-02 05:28

    You also can use JNDI URL support for different application configuration for test, integration test, production.

    
    ...
    
    ...
    
    
    
    

    Check out the GitHub project Tomcat JNDI URL Support to enable JNDI URL support for Tomcat servers.

提交回复
热议问题