Configuring connection support for spring social in XML

若如初见. 提交于 2019-12-11 02:27:23

问题


I am working spring mvc that integrated spring social. I cannot understand the following configuration that is provided by user guide at

http://static.springsource.org/spring-social/docs/1.0.x/reference/html/connecting.html (4.2.1 Configuring connection support in XML)

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

What does it means by "#{request.userPrincipal.name}" or what is the value of it. please help.


回答1:


It looks like a Spring EL - Expression.

Nerveless the reference documentation does not mention request as a special variable in spring el. But this must not mean anything: may I did not have a look at the right places or it is just one more poorly documented feature.


See this slides: so it is really a spring EL Expression.



来源:https://stackoverflow.com/questions/7885055/configuring-connection-support-for-spring-social-in-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!