Home  >  Article  >  Database  >  JNDI在tomcat中的配置_MySQL

JNDI在tomcat中的配置_MySQL

WBOY
WBOYOriginal
2016-06-01 13:06:161680browse

Tomcat

英文能力好,就直接参考下面的网址:

http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

首先说明:

配置的是Tomcat+mysql,如果你想用Tomcat+oracle,在上面的网址中有,下面也会提到点:

首先创建数据库:




Tomcat + mysql的JNDI的在Tomcat中的参数配置:

其次在Tomcat中的conf文件下的content.xml文件中配置如下参数:

Tomcat + oracle 的JNDI的在Tomcat的conf文件下的content.xml文件中参数配置:,如下:

/


做一个测试的界面:(这个测试界面是基于Tomcat+mysql)



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn