Skip to content

Commit

Permalink
#335 - Adapt to Spring Boot 2.0 snapshots.
Browse files Browse the repository at this point in the history
Exclude SecurityAutoConfiguration via application.properties as class was moved across packages. Add lombok.config to add @ConstructorProperties to Redis JSON objects.
  • Loading branch information
mp911de committed Jan 23, 2018
1 parent 69c2c2a commit 8eebca9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions redis/reactive/lombok.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lombok.anyConstructor.addConstructorProperties=true
10 changes: 5 additions & 5 deletions web/example/src/main/java/example/Application.java
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -26,7 +26,6 @@
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;
Expand All @@ -45,10 +44,11 @@
* <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) {
Expand All @@ -71,7 +71,7 @@ public void init() {
/**
* A Spring Security {@link PasswordEncoder} to encrypt passwords for newly created users, used in
* {@link UserManagement}.
*
*
* @return
*/
public @Bean PasswordEncoder passwordEncoder() {
Expand Down
1 change: 1 addition & 0 deletions web/example/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration,org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration

0 comments on commit 8eebca9

Please sign in to comment.