Home > Back-end >  Java project deployed in Tomcat
Java project deployed in Tomcat

Time:03-30

Company has two functions can not on old tomcat deployment, to deploy new tomcat,
These two functions are written in Java, is the main method for running, one is a regular task, a task is triggered,
Is now to be deployed to tomcat, beat him to the aaa. The war file into the webapps here, but I run in the tomcat webapps
Aaa folder only a WEB - INF, what can I do to let these two methods of operation, task will have been running regularly, trigger tasks to artificial operation,
How to do?

CodePudding user response:

There is no page interactions?

CodePudding user response:

I'm in the web. Add the XML servlet:

This is a thread - job
This is a thread - job
JobStarter
Com. DZD. Servlet. JobStarter
1 & lt;/load - on - startup>

CodePudding user response:

Task is to use a servlet to solve regularly, another task is to write a page interaction,

CodePudding user response:

Javac Java??????? Main run directly??

There is an annotation called @ PostConastruct
  • Related