Let Tomcat run to start calling a Java class

zhaozj2021-02-16  46

How to make Tomcat run to start calling a Java class I don't know which setting is set? -------------------------------------------------- ------------- There are two places that can be set: 1. In Tomcat_Home / conf / web.xml 2. WEB-INF / Web in the directory of our website under our website. Interface in XML. I am setting it here because the website is so moving. :) Add in Web.xml to add as follows

Initconfiguarion

com.zoice.timeidle.phs.initconfigure

cfg_imgsave_path

../ Upimgs /

1 settings

This servlet can have the corresponding start order, if not, it is random. Such as

1

It is the first program executed.

cfg_imgsave_path

../ Upimgs /

This is the parameters in the transfer program. It is a servletconfig object, which can remove the parameters in the InitConfigure class, which can remove the parameters in Public VoidPtion {SavePath = Conf.GetInitParameter (Save_path); // From Web.xml.

转载请注明原文地址:https://www.9cbs.com/read-20573.html

New Post(0)