问题描述:
在做spring注入的时候,
<bean id="storageYKT" class="com.talkweb.ecard.storage.action.StorageYKTMonitor" >
<property name="url" value="http://116.55.248.117:8090/HelloWorldService/services/HW?useUnicode=true&characterEncoding=utf8"/>
<property name="nameSpaceUri" value=""/>
</bean>
报The reference to entity "characterEncoding" must end with the ';' delimiter错误。
解决方案:
把http://116.55.248.117:8090/HelloWorldService/services/HW?useUnicode=true&characterEncoding=utf8改成 http://116.55.248.117:8090/HelloWorldService/services/HW?useUnicode=true&characterEncoding=utf8即可。
在做spring注入的时候,
<bean id="storageYKT" class="com.talkweb.ecard.storage.action.StorageYKTMonitor" >
<property name="url" value="http://116.55.248.117:8090/HelloWorldService/services/HW?useUnicode=true&characterEncoding=utf8"/>
<property name="nameSpaceUri" value=""/>
</bean>
报The reference to entity "characterEncoding" must end with the ';' delimiter错误。
解决方案:
把http://116.55.248.117:8090/HelloWorldService/services/HW?useUnicode=true&characterEncoding=utf8改成 http://116.55.248.117:8090/HelloWorldService/services/HW?useUnicode=true&characterEncoding=utf8即可。
这是因为
&代表
&这里是转义