rev 更新线程无法启动问题
This commit is contained in:
@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
|
|||||||
@Component
|
@Component
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Order(50)
|
@Order(50)
|
||||||
@ConditionalOnProperty(value = "spring.profiles.active",havingValue = "prod")
|
//@ConditionalOnProperty(value = "spring.profiles.active",havingValue = "prod")
|
||||||
public class AcsInit implements ApplicationRunner {
|
public class AcsInit implements ApplicationRunner {
|
||||||
private final ApplicationAutoInitialExecuter applicationAutoInitialExecuter;
|
private final ApplicationAutoInitialExecuter applicationAutoInitialExecuter;
|
||||||
private final WebAutoInitialExecuter webAutoInitialExecuter;
|
private final WebAutoInitialExecuter webAutoInitialExecuter;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class ItemProtocol {
|
|||||||
public int getOpcIntegerValue(String protocol) {
|
public int getOpcIntegerValue(String protocol) {
|
||||||
Integer value = this.driver.getIntegeregerValue(protocol);
|
Integer value = this.driver.getIntegeregerValue(protocol);
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
log.error("读取错误!");
|
// log.error("读取错误!");
|
||||||
} else {
|
} else {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class ItemProtocol {
|
|||||||
public int getOpcIntegerValue(String protocol) {
|
public int getOpcIntegerValue(String protocol) {
|
||||||
Integer value = this.driver.getIntegeregerValue(protocol);
|
Integer value = this.driver.getIntegeregerValue(protocol);
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
log.error("读取错误!");
|
// log.error("读取错误!");
|
||||||
} else {
|
} else {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user