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
init-param>
This servlet can have the corresponding start order, if not, it is random. Such as
1
It is the first program executed.
init-param>
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.