Executing task after deployment of Java EE application

后端 未结 4 1060
天命终不由人
天命终不由人 2021-02-04 04:52

I have a Java EE application which should start a synchronization process with an external system once after its deployment.

How could I implement this requirement?

4条回答
  •  情歌与酒
    2021-02-04 05:09

    You can use the @Startup and @PostConstruct annotations to perform tasks on application startup.

提交回复
热议问题