<SpEL사용예>

​* Spring XML 설정파일

<bean id="numberGuess" class="org.spring.samples.NumberGuess">
    <property name="randomNumber" value="#{ T(java.lang.Math).random() * 100.0 }"/>
 
    <!-- other properties -->
</bean>



 

 

 

+ Recent posts