Commit a5b32658 by lepdou

change default namespace name to application

parent 35db3822
......@@ -9,6 +9,7 @@ import org.springframework.transaction.annotation.Transactional;
import com.ctrip.apollo.biz.entity.AppNamespace;
import com.ctrip.apollo.biz.entity.Audit;
import com.ctrip.apollo.biz.repository.AppNamespaceRepository;
import com.ctrip.apollo.core.ConfigConsts;
import com.ctrip.apollo.core.exception.ServiceException;
@Service
......@@ -33,7 +34,7 @@ public class AppNamespaceService {
}
AppNamespace appNs = new AppNamespace();
appNs.setAppId(appId);
appNs.setName(appId);
appNs.setName(ConfigConsts.NAMESPACE_DEFAULT);
appNs.setComment("default app namespace");
appNs.setDataChangeCreatedBy(createBy);
appNs.setDataChangeLastModifiedBy(createBy);
......
......@@ -91,7 +91,7 @@ public class NamespaceService {
Namespace ns = new Namespace();
ns.setAppId(appId);
ns.setClusterName(ConfigConsts.CLUSTER_NAME_DEFAULT);
ns.setNamespaceName(appId);
ns.setNamespaceName(ConfigConsts.NAMESPACE_DEFAULT);
ns.setDataChangeCreatedBy(createBy);
ns.setDataChangeLastModifiedBy(createBy);
namespaceRepository.save(ns);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment