Fix social property binding
Update Spring Social auto-configurations to read properties using the `dashed` notation and with the appropriate prefixes. This allows properties to be specified in any of the relaxed forms. Also minor refactor to extract common logic to a new SocialAutoConfigurerAdapter base class. See gh-941
This commit is contained in:
@@ -25,7 +25,7 @@ import org.springframework.boot.cli.compiler.DependencyCustomizer;
|
||||
|
||||
/**
|
||||
* {@link CompilerAutoConfiguration} for Spring Social Facebook.
|
||||
*
|
||||
*
|
||||
* @author Craig Walls
|
||||
* @since 1.1.0
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.boot.cli.compiler.DependencyCustomizer;
|
||||
|
||||
/**
|
||||
* {@link CompilerAutoConfiguration} for Spring Social LinkedIn.
|
||||
*
|
||||
*
|
||||
* @author Craig Walls
|
||||
* @since 1.1.0
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.boot.cli.compiler.DependencyCustomizer;
|
||||
|
||||
/**
|
||||
* {@link CompilerAutoConfiguration} for Spring Social Twitter.
|
||||
*
|
||||
*
|
||||
* @author Craig Walls
|
||||
* @since 1.1.0
|
||||
*/
|
||||
@@ -42,7 +42,7 @@ public class SpringSocialTwitterCompilerAutoConfiguration extends
|
||||
throws CompilationFailedException {
|
||||
dependencies
|
||||
.ifAnyMissingClasses("org.springframework.social.twitter.api.Twitter")
|
||||
.add("spring-boot-starter-social-twitter");
|
||||
.add("spring-boot-starter-social-twitter");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user