Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 868 Bytes

File metadata and controls

26 lines (19 loc) · 868 Bytes

Description:

Simple customization of out-of-the-box ProductEndpoint

Goals:

  • Demonstrate a behavior tweak of a single endpoint method

Key Steps:

  • Create spring boot autoconfiguration class EndpointCustomization, which will be referenced from META-INF/spring.factories

  • Create new Rest Controller implementation that matches path and HTTP method of an existing endpoint from a Broadleaf framework Rest controller

  • Declare the @ComponentScan annotation on the autoconfiguration class

  • Declare the @AutoConfigureBefore annotation on the autoconfiguration class to prioritize your controller endpoint