豆类.xml
<bean id="duke" class="Juggler">
<constructor-arg value="#{T(java.util.Random).nextInt(10)}"/>
</bean>
例外:
原因:org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 20): Method call: Method nextInt(java.lang.Integer) can not be found on java.util.Random type