Skip to content

Commit 8a62a6f

Browse files
authored
Merge branch 'main' into now
2 parents 01afcdf + 6405daa commit 8a62a6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Release Notes.
55
Apollo Java 2.4.0
66

77
------------------
8-
*
8+
* [Fix the Cannot enhance @Configuration bean definition issue](https://github.com/apolloconfig/apollo-java/pull/82)
99

1010
------------------
1111
All issues and pull requests are [here](https://github.com/apolloconfig/apollo-java/milestone/4?closed=1)

apollo-client/src/main/java/com/ctrip/framework/apollo/spring/boot/ApolloAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
import com.ctrip.framework.apollo.spring.config.ConfigPropertySourcesProcessor;
2020
import com.ctrip.framework.apollo.spring.config.PropertySourcesConstants;
2121
import com.ctrip.framework.apollo.spring.config.PropertySourcesProcessor;
22+
import org.springframework.boot.autoconfigure.AutoConfiguration;
2223
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2324
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
2425
import org.springframework.context.annotation.Bean;
25-
import org.springframework.context.annotation.Configuration;
2626

27-
@Configuration
27+
@AutoConfiguration
2828
@ConditionalOnProperty(PropertySourcesConstants.APOLLO_BOOTSTRAP_ENABLED)
2929
@ConditionalOnMissingBean(PropertySourcesProcessor.class)
3030
public class ApolloAutoConfiguration {

0 commit comments

Comments
 (0)