Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

        
AI编程,程序员挑战年入30~100万高级指南 - 职业规划
SpringBoot+SpringSecurity+Vue权限系统高级实战课程        

IDEA永久激活

Java微信小程序电商实战课程(SpringBoot+VUe)

     

AI人工智能学习大礼包

     

PyCharm永久激活

66套java实战课程无套路领取

     

Cursor+Claude AI编程 1天快速上手视频教程

     
当前位置: 主页 > Java文档 > Java基础相关 >

Learning tomcat PDF 下载


时间:2024-06-19 08:27来源:http://www.java1234.com 作者:转载  侵权举报
Learning tomcat
失效链接处理
Learning tomcat  PDF 下载 
 
 
 
相关截图:
 

主要内容:

Remarks
Utilizing JNDI and JDBC also affords you to use ORMs like Hibernate or platforms like JPA to
define "persistence units" for object and table mapp
Examples
Configuring a server-wide JNDI reference
Inside of your {CATALINA_HOME}/conf/ folder exists a server.xml and context.xml file. Each one of
these contains similar code, but references different parts of Tomcat to complete the same
task.
server.xml is server-wide configuration. This is where you can set up HTTPS, HTTP2, JNDI
Resources, etc.
context.xml is specific to each context in Tomcat, taken from Tomcat's documentation it explains
this well:
The Context element represents a web application, which is run within a particular
virtual host. Each web application is based on a Web Application Archive (WAR) file, or
a corresponding directory containing the corresponding unpacked contents, as
described in the Servlet Specification (version 2.2 or later). For more information about
web application archives, you can download the Servlet Specification, and review the
Tomcat Application Developer's Guide.
Essentially, it's application-specific configuration.
In order to operate correctly, we'll need to set up a Resource in server.xml and a reference to that
resource inside of context.xml.


 

 
------分隔线----------------------------


锋哥推荐