增加缓存地图数据异常处理
This commit is contained in:
parent
2d78ed3d0d
commit
1868fe20b6
@ -118,7 +118,11 @@ public class MapService implements IMapService, ApplicationRunner {
|
||||
//缓存所有地图数据
|
||||
log.info("开始缓存地图数据");
|
||||
for (MapVO mapVO : listOnline()) {
|
||||
getMapDetail(mapVO.getId());
|
||||
try {
|
||||
getMapDetail(mapVO.getId());
|
||||
} catch (Exception e) {
|
||||
log.error(String.format("[id:%s]的地图缓存失败", mapVO.getId()), e);
|
||||
}
|
||||
}
|
||||
log.info("缓存地图数据结束");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user