Restlet server resource with constructor parameters needed
问题 Getting this error in restlet: ForwardUIApplication ; Exception while instantiating the target server resource. java.lang.InstantiationException: me.unroll.forwardui.server.ForwardUIServer$UnsubscribeForwardUIResource And I know exactly why. It's because my constructor looks like this: public UnsubscribeForwardUIResource(MySQLConnectionPool connectionPool) { And Restlet accesses the resource like so: router.attach(Config.unsubscribeUriPattern(), UnsubscribeForwardUIResource.class); Problem is