例如在mule-config.xml
文件中,如果我们有
- -开始
spring:bean id="objPool" class="org.apache.commons.pool.impl.GenericObjectPool"
spring:property name="whenExhaustedAction" value="#
{org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_GROW}"
- -结尾
这里,WHEN_EXHAUSTED_GROW 是公共静态最终字节,其值为 2。
现在当我这样做时mule -config mule-config.xml
,我收到以下错误
错误:
org.mule.api.lifecycle.InitialisationException: Initialisation Failure: Error creating bean with name 'videoRequestSAXParserObjectPool' defined in URL [file:/home/joshlabs/codebase/collider-server-tidal/src/main/resources/mule-config-pingback.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [byte] for property 'whenExhaustedAction'; nested exception is java.lang.NumberFormatException: For input string: "{org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_GROW}"
请帮助我如何将“字节”数据类型转换为“字符串”数据类型。
谢谢,王子