本文整理汇总了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);
}
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:7,代码来源:SocialConfig.java
示例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);
}
开发者ID:spring-sprout,项目名称:osoon,代码行数:6,代码来源:SocialConfig.java
示例3: socialConfigurerAdapter
import org.springframework.social.config.annotation.SocialConfigurer; //导入依赖的package包/类
@Bean
public SocialConfigurer socialConfigurerAdapter(DataSource dataSource) {
return new DatabaseSocialConfigurer(dataSource);
}
开发者ID:sapmentors,项目名称:lemonaid,代码行数:5,代码来源:SocialConfiguration.java
示例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);
}
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:13,代码来源:SocialConfig.java
注:本文中的org.springframework.social.config.annotation.SocialConfigurer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论