我使用XML尝试了Spring Social Showcase,但它似乎在XML中有错误.
fig app-id="${facebook.clientId}" app-secret="${facebook.clientSecret}" app-namespace="socialshowcase" />
fig app-id="${twitter.consumerKey}" app-secret="${twitter.consumerSecret}"/>
fig app-id="${linkedin.consumerKey}" app-secret="${linkedin.consumerSecret}"/>
我尝试检查架构(http://www.springframework.org/schema/social/)并将其粘贴到URL中,但它说它找不到.
我试图检查springframework.org/schema/的根目录,但我找不到与Spring Social相关的孩子.
是否有针对spring社交的xmnls或架构位置的新链接?
这是我的XML文件:
spring-beans.xsd
http://www.springframework.org/schema/social/twitter http://www.springframework.org/schema/social/spring-social-twitter.xsd
http://www.springframework.org/schema/social http://www.springframework.org/schema/social/spring-social.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
property-placeholder location="classpath:/org/springframework/social/showcase/config/application.properties" />
fig app-id="${facebook.clientId}" app-secret="${facebook.clientSecret}" app-namespace="socialshowcase" />
fig app-id="${twitter.consumerKey}" app-secret="${twitter.consumerSecret}"/>
fig app-id="${linkedin.consumerKey}" app-secret="${linkedin.consumerSecret}"/>
.social.security.AuthenticationNameUserIdSource" />
.social.connect.web.ConnectController" autowire="constructor">
.social.showcase.facebook.PostToWallAfterConnectInterceptor" />
.social.showcase.twitter.TweetAfterConnectInterceptor" />
.social.connect.web.ProviderSignInController" autowire="constructor" />
.social.showcase.signin.SimpleSignInAdapter" autowire="constructor" />
disconnectController" class="org.springframework.social.facebook.web.disconnectController"
c:_0-ref="usersConnectionRepository" c:_1="${facebook.clientSecret}" />
最佳答案
问题问题已经有一段时间了,但我现在遇到了同样的问题.
我只是通过在我的构建路径中添加Spring-Social-Security jar来修复它.随着maven:
.socialecurity.social-version}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。