Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Did you see this question : <a href="https://stackoverflow.com/questions/13222071/spring-3-1-webapplicationinitializer-embedded-jetty-8-annotationconfiguration">Spring 3.1 WebApplicationInitializer &amp; Embedded Jetty 8 AnnotationConfiguration</a> ?</p> <p>I can't share my code but here is some code that may help you : </p> <p>Web.xml</p> <pre><code>&lt;!-- Java-based Spring container definition --&gt; &lt;context-param&gt; &lt;param-name&gt;contextClass&lt;/param-name&gt; &lt;param-value&gt;org.springframework.web.context.support.AnnotationConfigWebApplicationContext&lt;/param-value&gt; &lt;/context-param&gt; &lt;!-- Location of Java @Configuration classes that configure the components that makeup this application --&gt; &lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;com.workable.config&lt;/param-value&gt; &lt;/context-param&gt; </code></pre> <p>Empty application-config.xml :</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"&gt; &lt;/beans&gt; </code></pre> <p>Spring WebMVCConfig : </p> <pre><code>/** * Spring MVC Configuration. * */ @Configuration @EnableWebMvc @EnableAsync @EnableScheduling public class WebMvcConfig extends WebMvcConfigurerAdapter { } /** * Main configuration class for the application. * Turns on @Component scanning, loads externalized application.properties. */ @Configuration @ComponentScan(basePackages = { "com.workable" }, excludeFilters = {@Filter(Configuration.class)}) public class MainConfig { ... } </code></pre> <p>Lib versions : </p> <pre><code>&lt;spring.version&gt;3.1.2.RELEASE&lt;/spring.version&gt; &lt;jetty.version&gt;8.1.5.v20120716&lt;/jetty.version&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload