Class OperatonBpmWebappAutoConfiguration
java.lang.Object
org.operaton.bpm.spring.boot.starter.webapp.neo.OperatonBpmWebappAutoConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@AutoConfiguration
@ConditionalOnProperty(prefix="operaton.bpm.webapp",
name="neo.enabled",
havingValue="true")
@ConditionalOnBean(OperatonBpmProperties.class)
@ConditionalOnWebApplication
@AutoConfigureAfter(OperatonBpmAutoConfiguration.class)
public class OperatonBpmWebappAutoConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Auto configuration for the new web apps (webapps-neo). The SPA is served as a
static resource bundle, by default from the application root (
/). It is
gated independently from the legacy webapps via operaton.bpm.webapp.neo.enabled
so both can run side by side.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDocument the SPA fetches at boot to learn how it was configured. -
Constructor Summary
ConstructorsConstructorDescriptionOperatonBpmWebappAutoConfiguration(org.springframework.core.io.ResourceLoader resourceLoader, OperatonBpmProperties properties, org.springframework.core.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) voidaddViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addReturnValueHandlers, configureApiVersioning, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Field Details
-
CONFIG_PATH
Document the SPA fetches at boot to learn how it was configured.- See Also:
-
-
Constructor Details
-
OperatonBpmWebappAutoConfiguration
public OperatonBpmWebappAutoConfiguration(org.springframework.core.io.ResourceLoader resourceLoader, OperatonBpmProperties properties, org.springframework.core.env.Environment environment)
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addViewControllers
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) - Specified by:
addViewControllersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-