I\'m trying to create a simple webapp without any XML configuration using Spring 3.1 and an embedded Jetty 8 server.
However, I\'m struggling to get Jetty to recogni
To those experiencing this lately, it appears this gets around the issue:
@Component
public class Initializer implements WebApplicationInitializer {
private ServletContext servletContext;
@Autowired
public WebInitializer(ServletContext servletContext) {
this.servletContext = servletContext;
}
@PostConstruct
public void onStartup() throws ServletException {
onStartup(servletContext);
}
public void onStartup(ServletContext servletContext) throws ServletException {
System.out.println("onStartup");
}
}