With Spring 2.6.0 this helped in my case:
@EnableAutoConfiguration(exclude = { org.springframework.boot.autoconfigure.security.SecurityDataConfiguration.class }) And additional I had to remove the dependency in the pom.xml:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>