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:
parent
6eb586a8c6
commit
73bfdda38d
|
@ -2,4 +2,4 @@
|
||||||
.settings/
|
.settings/
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
/.apt_generated/
|
|
||||||
|
|
|
@ -3,7 +3,11 @@ package com.baeldung.keycloak;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
|
import com.baeldung.autoconfiguration.MySQLAutoconfiguration;
|
||||||
|
|
||||||
|
@SpringBootApplication(exclude = MySQLAutoconfiguration.class)
|
||||||
|
|
||||||
public class SpringBoot {
|
public class SpringBoot {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
|
@ -47,4 +47,5 @@ public class KeycloakConfigurationTest {
|
||||||
public void testGetKeycloakSecurityContext() throws Exception {
|
public void testGetKeycloakSecurityContext() throws Exception {
|
||||||
assertNotNull(keycloakPrincipal.getKeycloakSecurityContext());
|
assertNotNull(keycloakPrincipal.getKeycloakSecurityContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue