mirror of https://gitee.com/makejava/EasyCode.git
修复细节,优化代码。
This commit is contained in:
parent
56884b6f78
commit
a20dc7d071
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue