Configuring connection support for spring social in XML
Asked Answered
U

1

2

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.

Utas answered 25/10, 2011 at 5:29 Comment(0)
C
0

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.

Caputo answered 25/10, 2011 at 6:49 Comment(1)
I have asked this question: https://mcmap.net/q/1289716/-list-of-spring-el-variables - to get get a list of the predefined Spring EL variables.Caputo

© 2022 - 2024 — McMap. All rights reserved.