From de93ebf913ab635ad6d9829fa5ff6a7bee27593d Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 4 Feb 2019 16:46:32 +0100 Subject: [PATCH] spring config --- .../webservice/weblayer/ClientSessionWebSecurityConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java index ef9e5e03..df099a59 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java @@ -19,8 +19,10 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Import; import org.springframework.core.annotation.Order; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -66,6 +68,7 @@ import ch.ethz.seb.sebserver.webservice.weblayer.oauth.WebResourceServerConfigur @EnableGlobalMethodSecurity(prePostEnabled = true) @EnableWebSecurity @Order(5) +@Import(DataSourceAutoConfiguration.class) public class ClientSessionWebSecurityConfig extends WebSecurityConfigurerAdapter { private static final Logger log = LoggerFactory.getLogger(ClientSessionWebSecurityConfig.class);