在 XML 中配置 Spring Social 的连接支持
我正在工作集成 Spring Social 的 Spring MVC。 用户指南提供的以下配置
我无法理解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}”是什么意思或者它的值是什么。请帮忙。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它看起来像 Spring EL - Expression< /a>.
令人不安的是,参考文档没有提到
request
作为 spring el 中的特殊变量。但这并不意味着什么:可能我没有看对正确的地方,或者这只是一个记录不足的功能。请参阅此幻灯片:所以它确实是一个spring EL 表达式。
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.