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