问题描述:

I have back end Spring experience however, I don't have great experience deploying applications on web containers (for e.g Tomcat). I was able to run Spring Batch Admin using Eclipse STS tools. However, after following this I was somehow confused on how to create my own spring batch application and deploy them on tomcat and manage them from Spring Batch Admin UI.

In the Spring Batch project I created on IntelliJ I couldn't find any war files at all. I have also read the above documentation and it leads you to this so that you can download the war files. But all of the files are jar files. I am a bit confused and a step by step guide on how to create Spring Batch jobs and deploy them on Spring Batch Admin would be great. I appreciate that.

网友答案:

Spring Batch Admin has two ways of creating a WAR deployment as of right now:

  1. Copy the sample application and use it (https://github.com/spring-projects/spring-batch-admin/tree/master/spring-batch-admin-sample). That will provide a fully functional Spring Batch Admin web app that can be deployed to any servlet container.
  2. Embed the jar files provided by the framework into an existing web application. You can read more about this option in the getting started guide found here: http://docs.spring.io/spring-batch-admin/getting-started.html
相关阅读:
Top