我面临一个问题,即未选择测试/资源,而是挑选jar的主/资源
场景如下:Myproject src/test/resources ---具有config.xml w,abc.jar应该需要它,这是Myproject中的依赖.
当为Myproject运行测试用例时,它加载abc.jar的config.xml而不是Myproject test/resources. - 我需要知道maven选择资源的顺序. - 或者我正在努力尝试是不可能的.
谢谢.
我面临的问题是,记录从我所做的查询和分页配置中返回,给出了错误的记录数。分页配置是否不正确。分页返回减去记录数。
select *
from SOME_TABLE
where CLIENT_FILE_NM= 'process_abc.20150617024850' AND TXN_ID IS NOT NULL AND SOME_DATA IS NOT NULL order by CREATE_DT ASC;
<bean id="postItemReader"
class="org.springframework.batch.item.database.JdbcPagingItemReader"
scope="step">
<property name="dataSource" ref="dataSource" />
<property name="queryProvider">
<bean
class="org.springframework.batch.item.database.support.SqlPagingQueryProviderFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="selectClause" value="select *" />
<property name="fromClause" value="from SOME_TABLE" />
<property name="whereClause"
value="CLIENT_FILE_NM= :fileName AND TXN_ID IS NOT NULL AND SOME_DATA IS NOT NULL" />
<property name="sortKey" value="CREATE_DT" />
<!-- CARD_SETTL_STG_ID_PK ASC -->
</bean>
</property>
<property …Run Code Online (Sandbox Code Playgroud)