-
Create spring boot autoconfiguration class
BusinessLogicCustomization, which will be referenced from META-INF/spring.factories -
Create extension (
ExtendedProductService) ofDefaultProductServiceoverriding a method from the parent service -
Use the
@Componentannotation on the extended service -
Declare the
@ComponentScanannotation on the autoconfiguration class (avoid the larger constructor injection requirements of declaring a bean for the service extension) -
Declare
@AutoConfigureBeforeon the autoconfiguration class to prioritize the service extension over Broadleaf’s own declaration