我想獲得與春季社會工作的Facebook登錄。 我在Facebook上創建了一個應用程序。春季社交ConnectController /連接/ Facebook給出了一個404錯誤
調度的Servlet
<servlet-mapping>
<servlet-name>ABC</servlet-name>
<url-pattern>*.cs</url-pattern>
</servlet-mapping>
configfured了個XML
<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錯誤。
謝謝:)
用戶在嘗試訪問映射到「連接到Facebook」按鈕的connect/facebook時正在獲取404 – Sategroup