我需要獲取bean id logConfig的屬性名稱logLvl的值,並對錶達式進行比較。如何在表達式上進行Spring aop比較?
<bean id="logConfig"
class="com.celfocus.ufe.base.logging.domains.LoggingConfiguration">
<property name="logDetails" value="STANDARD" />
<property name="logLvl" value="COMPLET" />
</bean>
<aop:config>
<aop:aspect ref="ufeLogger">
<aop:pointcut id="complete" expression="execution(* *.*(..)) and ($logConfig.logLvl=STANDARD)" />
這段代碼給出了一個非法標識符字符=
。我能做些什麼來做這個檢查?
hes,我曾嘗試但給我一個非法的標識符字符.. –