本文整理汇总了Java中org.springframework.social.config.annotation.SocialConfigurer类的典型用法代码示例。如果您正苦于以下问题:Java SocialConfigurer类的具体用法?Java SocialConfigurer怎么用?Java SocialConfigurer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SocialConfigurer类属于org.springframework.social.config.annotation包,在下文中一共展示了SocialConfigurer类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: socialConfigurerAdapter
import org.springframework.social.config.annotation.SocialConfigurer; //导入依赖的package包/类
@Bean
@SuppressWarnings("SpringJavaAutowiringInspection")
public SocialConfigurer socialConfigurerAdapter(final DataSource dataSource) {
// https://github.com/spring-projects/spring-social/blob/master/spring-social-config/src/main/java/org/springframework/social/config/annotation/SocialConfiguration.java#L87
return new DatabaseSocialConfigurer(dataSource);
}
示例2: socialConfigurerAdapter
import org.springframework.social.config.annotation.SocialConfigurer; //导入依赖的package包/类
@Bean
public SocialConfigurer socialConfigurerAdapter(DataSource dataSource) {
// https://github.com/spring-projects/spring-social/blob/master/spring-social-config/src/main/java/org/springframework/social/config/annotation/SocialConfiguration.java#L87
return new DatabaseSocialConfigurer(dataSource);
}
示例3: socialConfigurerAdapter
import org.springframework.social.config.annotation.SocialConfigurer; //导入依赖的package包/类
@Bean
public SocialConfigurer socialConfigurerAdapter(DataSource dataSource) {
return new DatabaseSocialConfigurer(dataSource);
}
示例4: socialConfigurerAdapter
import org.springframework.social.config.annotation.SocialConfigurer; //导入依赖的package包/类
/**
* Defines callback methods to customize Java-based configuration enabled by {@code @EnableWebMvc}.
* {@code @EnableWebMvc}-annotated classes may implement this interface or
* extend {@link SocialConfigurerAdapter}, which provides some default configuration.
* In this initialization we are configuring the {@link SocialConfigurer} to use our local
* database to store OAuth provider details for a given user.
*/
@Bean
public SocialConfigurer socialConfigurerAdapter(final DataSource dataSource) {
// https://github.com/spring-projects/spring-social/blob/master/spring-social-config/src/main/java/org/springframework/social/config/annotation/SocialConfiguration.java#L87
return new DatabaseSocialConfigurer(dataSource);
}