Class UrlPrefixingConfiguration
java.lang.Object
com.foreach.across.modules.web.config.UrlPrefixingConfiguration
Registers the
PrefixingPathRegistry
.
Two default prefixes are registered:
- resource: will resolve to the general resources path
- static: will resolve to the static folder under general resources, short-hand for @resource:/static/<path>
- Since:
- 2.0.0
- Author:
- Arne Vandamme
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprefixingPathRegistry
(ResourceConfigurationProperties resourcesConfiguration) webAppLinkBuilder
(PrefixingPathRegistry prefixingPathRegistry, jakarta.servlet.ServletContext servletContext)
-
Field Details
-
RESOURCE
- See Also:
-
STATIC
- See Also:
-
WEBJARS
- See Also:
-
-
Constructor Details
-
UrlPrefixingConfiguration
public UrlPrefixingConfiguration()
-
-
Method Details
-
prefixingPathRegistry
@Bean @Primary @Exposed public PrefixingPathRegistry prefixingPathRegistry(ResourceConfigurationProperties resourcesConfiguration) -
webAppLinkBuilder
@Bean @Exposed public WebAppLinkBuilder webAppLinkBuilder(PrefixingPathRegistry prefixingPathRegistry, jakarta.servlet.ServletContext servletContext)
-