user2933738
user2933738

Reputation: 75

How to use UserResource for Jdbi in Dropwizard

I'm setting up a Dropwizard project that leverages a mysql database. I'm starting fairly basically, using the example code on the Dropwizard site itself (found here). However, my code fails to compile because it is unable to locate the class UserResource.

Is this a dependency that I'm supposed to be pulling from somewhere? My pom pulls in version 1.3.5 of dropwizard-core and dropwizard-jdbi3. Is there something else missing? Or is "UserResource" a placeholder for a resource class that I am supposed to implement?

Upvotes: 1

Views: 559

Answers (1)

LiorH
LiorH

Reputation: 18824

Yes, UserResource is just an example of a resource one might implement, it's not part of the Dropwizard library

Upvotes: 5

Related Questions