@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface FrameworkController
This means that if FrameworkControllerScan is included in the application configuration
(and FrameworkController is in its FrameworkControllerScan.includeFilters()),
then the classes annotated with this will be scanned and included in the application context. The
FrameworkMappings in these classes will be added to handler mappings
with a lower priority than RequestMappings found within a class annotated with Controller. This priority is
achieved through FrameworkMappingHandlerMapping having a higher order value than
RequestMappingHandlerMapping.
The intention is that you are able to specify MVC controllers and mappings within a framework module as the default MVC mappings and a client application can essentially override those mappings without causing an ambiguous mapping exception.
The site handler mappings in play in order of precedence from highest to lowest are:
RequestMappingHandlerMappingFrameworkMappingHandlerMapping
This concept was adapted from @FrameworkEndpoint from Spring Security OAuth 2.
FrameworkMapping,
FrameworkControllerScanpublic abstract String value
Copyright © 2019. All rights reserved.