app教程网 学习教程 tomcat9配置postgresql数据库(tomcat配置数据库查询语句)

tomcat9配置postgresql数据库(tomcat配置数据库查询语句)

方法2:在Tomcat的conf/server.xml中配置

Open the conf/server.xml file of Tomcat and find the global naming resource/global naming resource node. The default content is as follows.

GlobalNamingResources

资源名称='用户数据库'身份验证='容器'类型='组织。阿帕奇。卡特琳娜。用户数据库“描述=”可以更新和保存的用户数据库工厂='组织。阿帕奇。卡特琳娜。用户。memoryuserdatabase factory ' pathname=' conf/Tomcat-users。XML '//GlobalNamingResources在该节点中加入相关的池配置信息,如下

GlobalNamingResources

Resource name=' user database' auth=' container' type=' org.apache.catalina.user database' description=' user database that can be updated and saved' factory=' org. . Apache . catalina . users . memoryuserdatabase factory ' pathname=' conf/Tomcat-users . XML ' -To configure the connection pool of relational database, the additional step to be done is to put the Java language driver class of relational database (a computer language, especially for creating websites) in the directory of Tomcat's liberation movement-Reso

本文来自网络,不代表本站立场,转载请注明出处:https: