public XbddApplication() { packages(getClass().getPackage().getName()); // MVC feature property(JspMvcFeature.TEMPLATE_BASE_PATH, "/WEB-INF/jsp"); register(JspMvcFeature.class); register(MultiPartFeature.class); // Logging. // register(LoggingFilter.class); property(ServerProperties.TRACING, TracingConfig.ON_DEMAND.name()); register(new AbstractBinder() { @Override protected void configure() { bindFactory(ServletContextMongoClientFactory.class).to(MongoDBAccessor.class).in(Singleton.class); } }); }
public WebConfig() { packages("fr.maugern.skeleton.web"); register(JspMvcFeature.class); registerSecurity(); // Tracing support. property(ServerProperties.TRACING, TracingConfig.ON_DEMAND.name()); }
public MyApplication() { // Resources. packages(Bookstore.class.getPackage().getName()); // MVC. register(JspMvcFeature.class); // Logging. register(LoggingFilter.class); // Tracing support. property(ServerProperties.TRACING, TracingConfig.ON_DEMAND.name()); }