腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(8507)
视频
沙龙
1
回答
Spring
Batch
jobExecution.getStepExecutions
为
空
、
我使用的是
Spring
Batch
4.3.2。。我正在写测试,发现了一些奇怪的东西,检查下面的代码。jobExecution.getJobId() " + jobExecution.getJobId());Syste
浏览 35
提问于2021-06-17
得票数 0
回答已采纳
4
回答
如何在
Spring
批处理中获得写入DB的条目数?
、
、
我有一个JobExecutionListener,它在执行后将作业状态写入日志文件。如何才能得到处理的项目数?public class JobListener implements JobExecutionListener { public void afterJob(JobExecution task) { //number of entries??}
浏览 1
提问于2014-04-23
得票数 0
回答已采纳
1
回答
Spring
批处理无法在我的集成测试中加载JobBuilderFactory。
、
正如您将从我的配置中看到的,我确实使用委托给
Spring
的Lombok加载了JobBuilderFactory和StepBuilderFactory。application-test.yml sql: schema-locations: classpath:jobMetaDataSource) { } } 这里是
S
浏览 8
提问于2021-12-12
得票数 3
回答已采纳
2
回答
可以从
spring
batch
的JobExecutionContext访问微线程吗
、
我试图在不取消整个步骤/作业的情况下取消执行微线程。我已经实现了这个微线程,它可以根据一个标志被取消。但是JobExecutionContext没有提供任何访问微线程的媒介?有什么方法可以访问微线程实例吗?
浏览 54
提问于2019-03-11
得票数 1
回答已采纳
1
回答
Spring
batch
jobParameters值
为
空
、
、
、
在春季批处理中,我尝试传递jobParameters并在我的JdbcCursorItemReader中使用它们。同一文件中的代码片段如下: @Configuration return demoVar; public void setDemoVar(@Value("#{jobParameters[
浏览 35
提问于2020-10-05
得票数 1
回答已采纳
1
回答
加上
Spring
创建Jar并只运行特定的作业
、
、
、
我正在尝试使用
spring
批处理应用程序启动
spring
,这将有多个作业。
spring
.datasource.username=username
spring
.<
浏览 7
提问于2020-06-05
得票数 1
回答已采纳
2
回答
监控
spring
批处理作业的进度
、
我正在使用
spring
batch
和java配置编写各种作业。谢谢。
浏览 0
提问于2016-12-28
得票数 2
2
回答
spring
batch
+
spring
boot+java config+test病例
、
、
spring
batch
+
spring
boot+java config+test病例 //@RunWith(SpringJUnit4ClassRunner.class) //@ContextConfiguration(classes = {JobConfi
浏览 9
提问于2017-09-26
得票数 1
1
回答
对OpenEdge数据库的春季批处理支持?
、
:222) ~[
spring
-
batch
-core-4.0.1.RELEASE.jar!:126) ~[
spring
-
batch
-core-4.0.1.RELEASE.jar!) ~[
spring
-
batch
-core-4.0.1.RELEASE.jar!
spring
-
batch
-core-4.0.1.RELEASE.jar!~[
spring
-
batch
-core-4.0.1.RELEASE.jar!
浏览 0
提问于2020-01-23
得票数 0
1
回答
如果项目读取器不返回任何内容,如何跳过
Spring
批处理块中的项目写入器?
、
、
所以我有一个
Spring
项目,有一个重复的步骤。<
batch
:job id="fooJob"> <
batch
:tasklet> commit-interval=
浏览 1
提问于2016-01-08
得票数 2
回答已采纳
2
回答
使用mysql SQLSyntaxErrorException表batchJOB_INSTANCE的
Spring
批处理不存在,并且属性
Spring
.
batch
.jdbc.initialization-batchJOB_INSTANCE
、
、
、
、
我使用MySQL8.0和
spring
4.3.5和
spring
2.x。我在运行我的批处理时得到了这个异常。
spring
.datasource.url=jdbc:mysql://localhost:3306/dsm-
batch
?useUnicode=yes
spring
.datasource.password=root
spring
.datasource.driver-clas
浏览 5
提问于2022-06-22
得票数 -1
1
回答
想要在没有自定义编写器(Delegate Pattern)的情况下获得春季批次页脚中的总行数
、
、
this.stepExecution = stepExecution; 这是我的xml:-- <bean id="writer" class="org.springframework.
batch
.item.file.FlatFileItemWriteroutputResource" /> <property name="lineAggregator"> <bean class="org.springframe
浏览 5
提问于2017-08-07
得票数 0
2
回答
使用
spring
batch
存储空字符串
、
、
、
我的csv将包含空字符串(“")和
空
值(”“)。目前,所有的
空
值和空字符串都是以空字符串的形式存储在SQL中,使用的是
spring
batch
。现在,我想将
空
值替换为null,而不是空字符串。1|raj |N|N|Y|Y 第三列
为
空
,第四列
为
空
。|是分隔符。
浏览 2
提问于2016-01-11
得票数 0
1
回答
Spring
Batch
-MySQL问题
、
、
、
、
当我测试我的
spring
batch
(v4.0.1)应用程序时。dependencies> <groupId>org.springframework.boot</groupId>
spring
.jpa.show-sql=true
spring
.jpa.open
浏览 1
提问于2018-07-07
得票数 0
1
回答
将
Spring
批处理作业存储库数据库切换到MySQL时,序列不起作用
、
我在生产环境中有一个
Spring
批处理部署,它最初是使用作业存储库的H2数据源开发的。最初的工作一切正常,但随着
Spring
Batch
的使用范围扩大,我们希望用更传统的数据库替换H2。当我第一次运行批处理作业时,
Spring
batch
会创建存储库表并正常运行我的作业。当我将我的日志设置
为
"debug“级别时,我在后续执行中看到以下异常: org.springframework.dao.DuplicateKeyException: PreparedStatementCallb
浏览 0
提问于2013-01-14
得票数 1
回答已采纳
4
回答
将
Spring
Batch
Admin集成到现有应用程序中
、
、
、
我有一个使用
Spring
Batch
和
Spring
MVC的应用程序。我可以将
Spring
Batch
Admin部署
为
一个单独的war,并在我的应用程序使用的同一个DB上使用它,尽管我希望将它集成到我自己的应用程序中,可能还会修改一些视图。
浏览 0
提问于2011-06-22
得票数 11
回答已采纳
3
回答
在没有
Spring
的情况下防止上下文创建后的
Spring
批处理自动作业触发器
、
、
、
、
我正在使用
Spring
批处理设置一个项目,而不使用
Spring
。当创建
Spring
应用程序上下文时,所有的作业都会被执行。为了防止这种情况,我尝试将
spring
.
batch
.job.enbled=false添加到application.properties中,但它仍然不起作用。还有其他方法阻止
Spring
在开始时执行作业吗?package com.project.
batch
; System.out
浏览 4
提问于2017-11-02
得票数 14
2
回答
Spring
-
batch
不同模式中的元数据表
、
是否可以通过此数据源访问包含
Spring
-
batch
元数据表的另一个模式?此数据源的用户具有访问其他架构的所有权限。我已经尝试过JobRepository的"tablePrefix“属性,比如"Schema.
batch
_”。但它不起作用。简单地说,我搜索告诉
Spring
-
batch
访问元数据表的方法,比如"select ....from Schema.
batch
_..“不是"select ...from
batch
_...“。
浏览 1
提问于2015-06-23
得票数 9
1
回答
春季批处理作业完成后重新启动
Spring
引导应用程序
、
我有一个
spring
引导应用程序,它应该将数据库(产品)中的一个表导出
为
csv文件,所以我使用
spring
批处理来完成这个任务,我的问题是,当作业完成时,这个应用程序被重新启动了--我想是因为
spring
注释4:我在应用程序属性中使用
spring
.
batch
.job.enabled=false停止了作业的自动午餐-
batch
配置:
浏览 3
提问于2020-01-05
得票数 2
3
回答
@EnableBatchProcessing出现未满足的依赖异常
、
、
、
$$EnhancerBySpringCGLIB$$29ded91a.jobBuilders(<generated>) ~[
spring
-
batch
-core-4.1.0.RELEASE.jar:4.1.0-- https://mvnrepository.com/artifact/org.springframework.
batch
/
spring
-
batch
-core -->
浏览 0
提问于2018-11-21
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券