Fixed health check issue
[portal.git] / portal-BE / src / main / java / org / onap / portal / configuration / WebMvcConfiguration.java
index 90b0256..9360984 100644 (file)
 
 package org.onap.portal.configuration;
 
+import org.onap.portal.service.function.FnFunctionService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
 import org.springframework.core.Ordered;
 import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
@@ -50,9 +53,17 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 @ComponentScan("org.springframework.security.samples.mvc")
 public class WebMvcConfiguration implements WebMvcConfigurer {
 
+       private final FnFunctionService fnFunctionService;
+
+       @Autowired
+       public WebMvcConfiguration(FnFunctionService fnFunctionService) {
+              this.fnFunctionService = fnFunctionService;
+       }
+
        @Override
        public void addViewControllers(ViewControllerRegistry registry) {
               registry.addViewController("login.html").setViewName("login.html");
               registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
        }
+
 }