我正在尝试让 facebook 登录与 spring social 一起使用。 我在 facebook 上创建了一个应用程序。
调度程序 Servlet
<servlet-mapping>
<servlet-name>ABC</servlet-name>
<url-pattern>*.cs</url-pattern>
</servlet-mapping>
配置了xmls
<servlet-mapping>
<servlet-name>ABC</servlet-name>
<url-pattern>*.cs</url-pattern>
</servlet-mapping>
<!-- Configure a connection repository through which account-to-provider connections will be stored -->
<beans:bean id="connectionRepository" class="org.springframework.social.connect.jdbc.JdbcConnectionRepository">
<beans:constructor-arg ref="dataSource" />
<beans:constructor-arg ref="textEncryptor" />
</beans:bean>
<!-- Configure a Facebook service provider -->
<beans:bean class="org.springframework.social.facebook.connect.FacebookServiceProvider">
<beans:constructor-arg index="0" value="564846465216" />
<beans:constructor-arg index="1" value="f4554iojfjh9iu7km54f54pok5ok4" />
<beans:constructor-arg index="2" ref="connectionRepository" />
</beans:bean>
<beans:bean id="textEncryptor" class="org.springframework.security.crypto.encrypt.Encryptors" factory-method="noOpText" />
<beans:bean class="org.springframework.social.web.connect.ConnectController">
<beans:constructor-arg index="0" value="http://localhost:8080/CitySpanks/" />
</beans:bean>
我指的是这个链接 http://static.springsource.org/spring-social/docs/1.0.0.M2/reference/html/connecting.html
在我的jsp中
<a href="<c:url value="connect/facebook" />">Connect to Facebook</a>
有什么我想念的吗???单击上面的链接时,我不断收到 404 错误。
谢谢 :)