2011-10-25 49 views
2

我正在使用集成spring社交的spring mvc。我不明白這是由用戶指南在在XML中配置春季社交的連接支持

http://static.springsource.org/spring-social/docs/1.0.x/reference/html/connecting.html提供(4.2.1配置在XML連接支持)

<bean id="connectionRepository" factory-method="createConnectionRepository" factory-bean="usersConnectionRepository" scope="request"> 
<constructor-arg value="#{request.userPrincipal.name}" /> 

這是什麼意思是「#{request.userPrincipal以下配置.name}「或它的價值是什麼。請幫忙。

回答

0

它看起來像一個Spring EL - Expression

參考文獻沒有提及request作爲春季的一個特殊變量。但是,這絕不意味着什麼:我可能沒有看看正確的地方,或者它只是一個記錄不完善的特徵。


看到這個slides:所以它真的是一個春天的EL表達。

+0

我問過這個問題:http://stackoverflow.com/questions/7885847/list-of-spring-el-variables - 獲取預定義的Spring EL變量列表。 – Ralph