Class MvcConfig
java.lang.Object
uk.ac.manchester.spinnaker.alloc.web.MvcConfig
- All Implemented Interfaces:
WebMvcConfigurer,WebSocketConfigurer
@EnableWebMvc
@EnableWebSocket
@Configuration
@Role(1)
public class MvcConfig
extends Object
implements WebMvcConfigurer, WebSocketConfigurer
Sets up the login page and static resource mappings. Note that paths in here
are relative to Spring's idea of the root of the webapp (as they're used to
program path matchers).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceHandlers(ResourceHandlerRegistry registry) voidMethods 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, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
MvcConfig
public MvcConfig()
-
-
Method Details
-
addResourceHandlers
- Specified by:
addResourceHandlersin interfaceWebMvcConfigurer
-
registerWebSocketHandlers
- Specified by:
registerWebSocketHandlersin interfaceWebSocketConfigurer
-