From 9dacdfb2e2a2895650692d3d3607f1fea06761f8 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 4 Feb 2019 17:05:39 +0100 Subject: [PATCH] fix spring config --- .../webservice/weblayer/oauth/RevokeTokenEndpoint.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java index bb855b84..d082001d 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java @@ -12,7 +12,9 @@ import java.util.Collection; import javax.servlet.http.HttpServletRequest; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.context.ApplicationEvent; +import org.springframework.context.annotation.Import; import org.springframework.context.event.EventListener; import org.springframework.http.HttpStatus; import org.springframework.security.oauth2.common.OAuth2AccessToken; @@ -27,6 +29,7 @@ import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile; @Controller @WebServiceProfile +@Import(DataSourceAutoConfiguration.class) public class RevokeTokenEndpoint { private final ConsumerTokenServices tokenServices;