修复细节,优化代码。

This commit is contained in:
javas 2018-01-11 13:16:34 +08:00
parent 56884b6f78
commit a20dc7d071
1 changed files with 3 additions and 3 deletions

View File

@ -43,14 +43,14 @@ public class ConfigServiceImpl implements ConfigService {
@Nullable
@Override
public ConfigService getState() {
if (this.encode==null && !init) {
initDefault();
}
return this;
}
@Override
public void loadState(ConfigService configService) {
if (configService==null || configService.getTemplateGroupMap()==null || configService.getTypeMapperGroupMap()==null) {
return;
}
//重点没有数据时不要序列化
if (configService.getTypeMapperGroupMap().isEmpty()) {
return;