Skip to content

Commit 1a542a0

Browse files
committed
support spring boot3
1 parent d0b5a6d commit 1a542a0

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+
* [support spring boot3](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)