BAEL-1238 Quick Guide to Using Keycloak with a Spring Boot Application (#2908)

* michael.good703@gmail.com

michael.good703@gmail.com

* michael.good703@gmail.com

michael.good703@gmail.com

* michael.good703@gmail.com

michael.good703@gmail.com

* update

* michael.good703@gmail.com

Had to add @SpringBootApplication(exclude = MySQLAutoconfiguration.class)
This commit is contained in:
Michael C Good 2017-10-29 23:09:22 -04:00 committed by maibin
parent 6eb586a8c6
commit 73bfdda38d
3 changed files with 7 additions and 2 deletions

View File

@ -2,4 +2,4 @@
.settings/
.classpath
.project
/.apt_generated/

View File

@ -3,7 +3,11 @@ package com.baeldung.keycloak;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
import com.baeldung.autoconfiguration.MySQLAutoconfiguration;
@SpringBootApplication(exclude = MySQLAutoconfiguration.class)
public class SpringBoot {
public static void main(String[] args) {

View File

@ -47,4 +47,5 @@ public class KeycloakConfigurationTest {
public void testGetKeycloakSecurityContext() throws Exception {
assertNotNull(keycloakPrincipal.getKeycloakSecurityContext());
}
}