Check that WAR apps work in a container
This commit is contained in:
@@ -45,6 +45,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
|
||||
}
|
||||
|
||||
@Bean
|
||||
// Only used when running in embedded servlet
|
||||
public DispatcherServlet dispatcherServlet() {
|
||||
return new DispatcherServlet();
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>org.springframework.issues.config</param-value>
|
||||
<param-value>sample.traditional.config</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
Reference in New Issue
Block a user