#335 - Adapt to Spring Boot 2.0 snapshots.

Exclude SecurityAutoConfiguration via application.properties as class was moved across packages. Add lombok.config to add @ConstructorProperties to Redis JSON objects.
This commit is contained in:
Mark Paluch
2018-01-23 11:29:28 +01:00
parent 69c2c2aef4
commit 8eebca96d3
3 changed files with 7 additions and 5 deletions

View File

@@ -0,0 +1 @@
lombok.anyConstructor.addConstructorProperties=true

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2016 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,6 @@ import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.config.EnableSpringDataWebSupport;
@@ -45,10 +44,11 @@ import org.springframework.security.crypto.password.PasswordEncoder;
* <li>The ability to use proxy-backed interfaces to bind request payloads (see
* {@link example.users.web.UserController.UserForm})</li>
* </ol>
*
*
* @author Oliver Gierke
* @author Mark Paluch
*/
@SpringBootApplication(exclude = SecurityAutoConfiguration.class)
@SpringBootApplication
public class Application {
public static void main(String... args) {
@@ -71,7 +71,7 @@ public class Application {
/**
* A Spring Security {@link PasswordEncoder} to encrypt passwords for newly created users, used in
* {@link UserManagement}.
*
*
* @return
*/
public @Bean PasswordEncoder passwordEncoder() {

View File

@@ -0,0 +1 @@
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration,org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration