0

Шаблонизатор Freemarker

This commit is contained in:
2017-12-26 14:15:23 +03:00
parent 682cd47a54
commit 87e0ffe0de
5 changed files with 69 additions and 17 deletions

View File

@@ -7,13 +7,10 @@ import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Slf4jLog;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import java.net.InetSocketAddress;
@@ -23,15 +20,6 @@ public class WebApp {
private final String host;
private final int port;
/**
* Данный класс является файлом настройки контекста для Spring
* однако, т.к. мы никакие бины не объявляем, то красс пустует
*/
@Configuration
@EnableWebMvc
public static class SpringConfigMVC extends WebMvcConfigurerAdapter {
}
/**
* Создаем Spring-контекст
*