REM:
1.  添加必要注释内容
This commit is contained in:
HuangXin 2021-10-28 09:19:12 +08:00
parent 2ede6d0503
commit cba9c78698
2 changed files with 12 additions and 0 deletions

View File

@ -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 {

View File

@ -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[]{""})) {