spring batch admin 嵌入web访问
来源:互联网 发布:java主方法入口 编辑:程序博客网 时间:2024/05/20 09:46
1、配置依赖
<dependency> <groupId>org.springframework.batch</groupId> <artifactId>spring-batch-admin-resources</artifactId></dependency><dependency> <groupId>org.springframework.batch</groupId> <artifactId>spring-batch-admin-manager</artifactId></dependency>
2、配置web.xml
<context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:/org/springframework/batch/admin/web/resources/webapp-config.xml </param-value></context-param><filter> <filter-name>shallowEtagHeaderFilter</filter-name> <filter-class>org.springframework.web.filter.ShallowEtagHeaderFilter</filter-class></filter><filter-mapping> <filter-name>shallowEtagHeaderFilter</filter-name> <url-pattern>/*</url-pattern></filter-mapping>
3、覆盖batch admin 配置[如果需要]
<!-- override --><bean id="jobExplorer" class="org.springframework.batch.core.explore.support.JobExplorerFactoryBean" p:dataSource-ref="dataSource" p:tablePrefix="PREFIX_" /><!-- override --><bean id="jobService" class="org.springframework.batch.admin.service.SimpleJobServiceFactoryBean"> <property name="jobRepository" ref="jobRepository" /> <property name="jobLauncher" ref="jobLauncher" /> <property name="jobLocator" ref="jobRegistry" /> <property name="dataSource" ref="dataSource" /> <property name="tablePrefix" value="PREFIX_" /></bean>
4、访问
http://ip:port/
5、注意事项
webapp-config.xml这个配置会引入spring batch 内部定义的jobRepository,注意覆盖问题
0 0
- spring batch admin 嵌入web访问
- spring batch admin 嵌入web访问
- spring batch admin的安装配置基础
- 搭建批处理框架问题总结Spring Batch + Spring Batch Admin + Quartz
- spring batch
- Spring batch
- Spring Batch
- Spring Batch
- spring-batch
- Spring batch
- Spring Batch
- Spring Batch
- spring batch
- spring batch
- spring batch
- Spring Batch
- Spring batch
- Spring Batch 之 Spring Batch 简介(一)
- 深入理解拉格朗日乘子法(Lagrange Multiplier) 和KKT条件
- HDU5237- Base64
- 物流运交管理系统 MVC框架的搭建(一)
- jmeter源码编译(eclipse)
- loadView/viewDidLoad/initWithNibName/awakeFromNib/initWithCoder的用法
- spring batch admin 嵌入web访问
- 【爱分享,爱Java】一个java程序员给新入行师弟师妹的一些建议
- VC里的编码问题
- 提高篇第20-21课第三题
- 旋转数组的最小数字
- HashMap的工作原理及性能分析
- 跨进程调用Service(AIDL Service)流程2(复杂数据)
- The user specified as a definer ('res'@'%') does not exist 解决方法
- 凯云水利水电工程造价管理系统 MVC框架的搭建(一)