package cz.muni.fi.pa165.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
@EnableWebMvc
@Import(ServiceConfiguration.class)
@ComponentScan(basePackages = "cz.muni.fi.pa165.controller")
class WebConfiguration extends WebMvcConfigurerAdapter {

}
@@ -27,16 +27,68 @@
 onfig;%0A%0A
+import org.springframework.context.annotation.Bean;%0A
 import o
@@ -136,24 +136,24 @@
 ponentScan;%0A
-
 import org.s
@@ -255,16 +255,69 @@
 Import;%0A
+import org.springframework.web.servlet.ViewResolver;%0A
 import o
@@ -460,16 +460,90 @@
 Adapter;
+%0Aimport org.springframework.web.servlet.view.InternalResourceViewResolver;
 %0A%0A@Confi
@@ -719,10 +719,272 @@
 apter %7B%0A
+    @Bean%0A    public ViewResolver viewResolver() %7B%0A        InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();%0A        viewResolver.setPrefix(%22/WEB-INF/jsp/%22);%0A        viewResolver.setSuffix(%22.jsp%22);%0A        return viewResolver;%0A    %7D
 %0A%7D

Configure jsp lookup