mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
format code with maven plugins
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 the original author or authors.
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,8 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alibaba.cloud.nacos.config.server;
|
||||
|
||||
import com.alibaba.cloud.nacos.config.server.environment.NacosEnvironmentRepository;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.cloud.config.server.EnableConfigServer;
|
||||
@@ -23,17 +26,15 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import com.alibaba.cloud.nacos.config.server.environment.NacosEnvironmentRepository;
|
||||
|
||||
/**
|
||||
* Nacos Config Server Auto-Configuration
|
||||
* Nacos Config Server Auto-Configuration.
|
||||
*
|
||||
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
|
||||
* @since 0.2.0
|
||||
*/
|
||||
@ConditionalOnClass(EnableConfigServer.class) // If class of @EnableConfigServer is
|
||||
// present in class-path
|
||||
@ComponentScan(basePackages = { "com.alibaba.nacos.config.server", })
|
||||
@ComponentScan(basePackages = { "com.alibaba.nacos.config.server" })
|
||||
@AutoConfigureBefore(ConfigServerAutoConfiguration.class)
|
||||
@Configuration
|
||||
public class NacosConfigServerAutoConfiguration {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 the original author or authors.
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,25 +13,26 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.cloud.nacos.config.server.environment;
|
||||
|
||||
import static com.alibaba.nacos.config.server.constant.Constants.DEFAULT_GROUP;
|
||||
package com.alibaba.cloud.nacos.config.server.environment;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
import java.util.Properties;
|
||||
|
||||
import com.alibaba.nacos.config.server.model.ConfigInfo;
|
||||
import com.alibaba.nacos.config.server.service.PersistService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cloud.config.environment.Environment;
|
||||
import org.springframework.cloud.config.environment.PropertySource;
|
||||
import org.springframework.cloud.config.server.environment.EnvironmentRepository;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import com.alibaba.nacos.config.server.model.ConfigInfo;
|
||||
import com.alibaba.nacos.config.server.service.PersistService;
|
||||
import static com.alibaba.nacos.config.server.constant.Constants.DEFAULT_GROUP;
|
||||
|
||||
/**
|
||||
* Nacos {@link EnvironmentRepository}
|
||||
* Nacos {@link EnvironmentRepository}.
|
||||
*
|
||||
* @author <a href="mailto:mercyblitz@gmail.com">Mercy</a>
|
||||
* @since 0.2.0
|
||||
@@ -87,4 +88,5 @@ public class NacosEnvironmentRepository implements EnvironmentRepository {
|
||||
private static String[] of(String... values) {
|
||||
return values;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 the original author or authors.
|
||||
* Copyright 2013-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.alibaba.cloud.nacos.config.server.bootstrap;
|
||||
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
@@ -43,4 +44,5 @@ public class NacosConfigServerBootstrap {
|
||||
System.out.println("Running...");
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,2 +1,2 @@
|
||||
spring.application.name=nacos-config-server
|
||||
management.endpoints.web.exposure.include=*
|
||||
management.endpoints.web.exposure.include=*
|
||||
|
Reference in New Issue
Block a user