webservice
parent
a9e2f3cba0
commit
bc772bf471
@ -0,0 +1,18 @@
|
||||
package com.weaver.custom.configcenter;
|
||||
|
||||
import com.weaver.framework.client.annotation.WeaverConfigCenter;
|
||||
import lombok.Data;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Data
|
||||
@Component
|
||||
@WeaverConfigCenter(sources = {
|
||||
@WeaverConfigCenter.ConfigProperty(
|
||||
dataId = "weaver-secondev-htwsaccount.properties",
|
||||
group = "DEFAULT_GROUP",
|
||||
refresh = "true")
|
||||
})
|
||||
public class htwsaccountConfig {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.weaver.seconddev.njwebservice.prop;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Data
|
||||
@Configuration
|
||||
@RefreshScope
|
||||
public class ConfigProp {
|
||||
//htcmsoasync
|
||||
@Value("${ZWZDYW}")
|
||||
private String ZWZDYW;
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue