问题描述:
在做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即可。
本文解答了在使用Spring框架进行应用开发时遇到的关于配置bean注入时,URL参数中字符编码设置引用错误的问题。通过示例代码展示了如何正确配置字符编码参数,避免了常见的配置错误。

被折叠的 条评论
为什么被折叠?



