Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.2 KB

File metadata and controls

28 lines (22 loc) · 1.2 KB

Description:

Customization of an endpoint method in ProductEndpoint leveraging a customized service, repository, auto-projection, and domain

Goals:

  • Demonstrate a behavior tweak of a single endpoint method

  • Show leveraging a completely customized flow through to persistence

  • Demonstrate working with an auto projection in the endpoint

  • Builds On : 01000-businessLogicCustomizationAutoProjection

Key Steps:

  • Create spring boot autoconfiguration class EndpointCustomizationAutoProjection, 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