Home > Database > Mysql Tutorial > body text

JNDI在tomcat中的配置_MySQL

WBOY
Release: 2016-06-01 13:06:16
Original
1530 people have browsed it

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)



source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!