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

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

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

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!
当前位置: 主页 > 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.


 

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

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐