Skip to content

Commit df4a2e3

Browse files
committed
Fix WebFlux default enabled constant
Rename the default enabled constant to DEFAULT_MICROSPHERE_SPRING_BOOT_WEBFLUX_ENABLED and use it as the defaultValue for the WebFlux 'enabled' configuration property. This corrects an incorrect reference to the WEBMVC constant and aligns the constant name with the WebFlux module.
1 parent 6db9004 commit df4a2e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • microsphere-spring-boot-webflux/src/main/java/io/microsphere/spring/boot/webflux/constants

microsphere-spring-boot-webflux/src/main/java/io/microsphere/spring/boot/webflux/constants/PropertyConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public interface PropertyConstants {
3838
/**
3939
* The default value of 'enabled' property of Microsphere Spring Boot WebFlux : "true"
4040
*/
41-
String DEFAULT_MICROSPHERE_SPRING_BOOT_WEBMVC_ENABLED = "true";
41+
String DEFAULT_MICROSPHERE_SPRING_BOOT_WEBFLUX_ENABLED = "true";
4242

4343
/**
4444
* The 'enabled' property name of Microsphere Spring Boot WebFlux : "microsphere.spring.boot.webflux.enabled"
4545
*/
4646
@ConfigurationProperty(
4747
type = boolean.class,
48-
defaultValue = DEFAULT_MICROSPHERE_SPRING_BOOT_WEBMVC_ENABLED,
48+
defaultValue = DEFAULT_MICROSPHERE_SPRING_BOOT_WEBFLUX_ENABLED,
4949
source = APPLICATION_SOURCE
5050
)
5151
String MICROSPHERE_SPRING_BOOT_WEBFLUX_ENALBED_PROPERTY_NAME = MICROSPHERE_SPRING_BOOT_WEBFLUX_PROPERTY_NAME_PREFIX + ENABLED_PROPERTY_NAME;

0 commit comments

Comments
 (0)