Closed
Description
https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migrating mentions guice can be incorporated with:
public class FooEndpointsModule extends EndpointsModule {
@Override
public void configureServlets() {
bind(TestEndpoint.class).toInstance(new TestEndpoint());
configureEndpoints("/_ah/api/*", ImmutableList.of(TestEndpoint.class));
}
}
However, this doesn't explain what would go in web.xml
or configuring a GuiceServletContextListener
.
Can https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine/endpoints-frameworks-v2/migration-example add guice to be a more complete and realistic example?
I am unable to figure out how to do this. It seems others are also struggling with this https://stackoverflow.com/questions/45760488/example-for-using-guice-with-endpoints-frameworks-for-app-engine-version-2
Metadata
Metadata
Assignees
Labels
No labels