1 package org.onap.portal.configuration;
3 import org.springframework.context.annotation.ComponentScan;
4 import org.springframework.core.Ordered;
5 import org.springframework.web.servlet.config.annotation.EnableWebMvc;
6 import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
7 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
10 @ComponentScan("org.springframework.security.samples.mvc")
11 public class WebMvcConfiguration implements WebMvcConfigurer {
14 public void addViewControllers(ViewControllerRegistry registry) {
15 registry.addViewController("login.html").setViewName("login.html");
16 registry.setOrder(Ordered.HIGHEST_PRECEDENCE);