Commit 4c8669e0 by 陶光胜

二维码

parent 0cb32e60
package com.gic.enterprise.web;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.gic.dubbo.util.DubboContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
......@@ -14,6 +15,7 @@ import org.springframework.context.annotation.ImportResource;
*
* @author zhurz
*/
@EnableApolloConfig
@SpringBootApplication(
scanBasePackages = "com.gic",
exclude = {
......
package com.gic.enterprise.web.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class Config {
@Value("${host}")
private String host;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
}
package com.gic.operation.web.config;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class Config {
@Value("${host}")
private String host;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
}
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