diff --git a/README.md b/README.md index a86084a..09a5f85 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ ISP)则要求我们确保流程中的任何接口实现都可以被替换, plus.jdk spring-smart-ioc-starter - 1.0.3 + 1.0.4 ``` diff --git a/pom.xml b/pom.xml index 6d74150..b4c84e4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ plus.jdk spring-smart-ioc-starter - 1.0.3 + 1.0.4 spring-smart-ioc-starter diff --git a/src/main/java/plus/jdk/smart/ioc/global/SmartIocGlobalConfiguration.java b/src/main/java/plus/jdk/smart/ioc/global/SmartIocGlobalConfiguration.java index 29ac23e..c28d948 100644 --- a/src/main/java/plus/jdk/smart/ioc/global/SmartIocGlobalConfiguration.java +++ b/src/main/java/plus/jdk/smart/ioc/global/SmartIocGlobalConfiguration.java @@ -8,7 +8,7 @@ @Configuration @EnableSmartInject -@ConditionalOnProperty(value = "smart.ioc.enable", havingValue = "true") +//@ConditionalOnProperty(value = "smart.ioc.enable", havingValue = "true") @EnableConfigurationProperties(GlobalInjectProperties.class) public class SmartIocGlobalConfiguration { diff --git a/src/main/java/plus/jdk/smart/ioc/global/SmartIocSelectorFactory.java b/src/main/java/plus/jdk/smart/ioc/global/SmartIocSelectorFactory.java index 6ded135..bd5fa7f 100644 --- a/src/main/java/plus/jdk/smart/ioc/global/SmartIocSelectorFactory.java +++ b/src/main/java/plus/jdk/smart/ioc/global/SmartIocSelectorFactory.java @@ -45,7 +45,7 @@ public class SmartIocSelectorFactory implements SmartLifecycle { /** * A flag indicating whether SmartIocSelectorFactory has been started. */ - private Boolean started; + private Boolean started = false; /** * Create a new SmartIocSelectorFactory instance. diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index 66ad370..ebc1554 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -1,4 +1,4 @@ -server.port= 8080 - -smart.ioc.enable=true \ No newline at end of file +#server.port= 8080 +# +#smart.ioc.enable=true \ No newline at end of file