parent
2ede6d0503
commit
cba9c78698
|
@ -27,8 +27,10 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The type Peng xin ability.
|
* The type Peng xin ability.
|
||||||
|
* @author xajhu
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class PengXinAbilityImpl implements DisposeAbility {
|
public class PengXinAbilityImpl implements DisposeAbility {
|
||||||
|
|
|
@ -11,14 +11,24 @@ import javax.annotation.PostConstruct;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type Device log configure.
|
||||||
|
* @author xajhu
|
||||||
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@Component
|
@Component
|
||||||
@ConfigurationProperties(prefix = "device")
|
@ConfigurationProperties(prefix = "device")
|
||||||
@Configuration
|
@Configuration
|
||||||
public class DeviceLogConfigure {
|
public class DeviceLogConfigure {
|
||||||
|
/**
|
||||||
|
* The Log hosts.
|
||||||
|
*/
|
||||||
private String[] logHosts;
|
private String[] logHosts;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Init global value.
|
||||||
|
*/
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
private void initGlobalValue() {
|
private void initGlobalValue() {
|
||||||
for (String s : Optional.ofNullable(logHosts).orElse(new String[]{""})) {
|
for (String s : Optional.ofNullable(logHosts).orElse(new String[]{""})) {
|
||||||
|
|
Loading…
Reference in New Issue