Does anyone have a working sample of the following:
- Embedded Jetty 8.x app
- Using Spring MVC
- Zero XML configuration (i.e. using a Spring WebApplicationInitializer on the Servlet side and annotations/java configuration on the Spring side)
I have tried every possible combination, but I can't get this to work. Most embedded jetty examples I found are based on 7.x or still use XML configuration files. The best setup I got now is to create a WebAppContext and set the configuration to AnnotationConfiguration. This shows on the console that something is actually happening, but it cannot find my WebApplicationInitializer class while it definitely is on the classpath. This was based on Jetty 8.1.4 and Spring 3.1.2.
For testing purposes, the WebApplicationInitializer class doesn't do much, it only prints something in the onStartup method to check if this is being loaded.
Thanks!