#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:
1
redis/reactive/lombok.config
Normal file
1
redis/reactive/lombok.config
Normal file
@@ -0,0 +1 @@
|
||||
lombok.anyConstructor.addConstructorProperties=true
|
||||
@@ -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() {
|
||||
|
||||
1
web/example/src/main/resources/application.properties
Normal file
1
web/example/src/main/resources/application.properties
Normal file
@@ -0,0 +1 @@
|
||||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration,org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
|
||||
Reference in New Issue
Block a user