在弹出批处理管理员ui上单击作业链接时出现404错误

时间:2014-06-27 07:06:25

标签: spring spring-batch spring-batch-admin

我是弹簧弹簧新手。我正在尝试创建批处理应用程序并与批处理管理员ui集成。我使用的版本是spring-batch-2.2.7和spring-batch-admin-1.3.0.M1。我能够使用junit运行我的工作,并且能够在admin ui上查看我的所有工作。当我点击工作时,我收到404错误。

Home Page - 
http://myServer/ApplicationName
List of jobs link - 
http://myServer/ApplicationName/batch/jobs

When i click on the job link url is missing 'batch' in the url.
http://myServer/ApplicationName/jobs/JOBNAME

Can anyone please help me resolve this issue? Thanks!

1 个答案:

答案 0 :(得分:0)

请使用春季批量管理员(http://spring.io/blog/2014/07/28/spring-batch-admin-1-3-0-release-is-available)的1.3.0发行版。这应该适用于当前的春季批量版本(2.2.x和3.0.x)。我使用spring batch version 3.0.1成功测试了这个。

使用spring boot配置spring batch admin也是一个很好的起点:https://blog.codecentric.de/en/2014/08/spring-batch-admin-spring-boot-2/