Шаблонизатор Freemarker
This commit is contained in:
@@ -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-контекст
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user