fix startup
This commit is contained in:
parent
20fe964a9f
commit
48f4d29896
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ class ConfigurationDAOBatchService {
|
||||||
log.info("Registered MyBatis Mappers: {}",
|
log.info("Registered MyBatis Mappers: {}",
|
||||||
batchSqlSessionTemplate.getConfiguration().getMapperRegistry().getMappers());
|
batchSqlSessionTemplate.getConfiguration().getMapperRegistry().getMappers());
|
||||||
|
|
||||||
|
// NOTE: sometimes this mapper was not registered on startup. No reason why. Force loading if absent.
|
||||||
|
if (!batchSqlSessionTemplate.getConfiguration().hasMapper(ConfigurationNodeRecordMapper.class)) {
|
||||||
|
batchSqlSessionTemplate.getConfiguration().addMapper(ConfigurationNodeRecordMapper.class);
|
||||||
|
}
|
||||||
|
|
||||||
this.batchConfigurationNodeRecordMapper =
|
this.batchConfigurationNodeRecordMapper =
|
||||||
batchSqlSessionTemplate.getMapper(ConfigurationNodeRecordMapper.class);
|
batchSqlSessionTemplate.getMapper(ConfigurationNodeRecordMapper.class);
|
||||||
this.batchConfigurationValueRecordMapper =
|
this.batchConfigurationValueRecordMapper =
|
||||||
|
|
Loading…
Reference in a new issue