日期:2014-05-16  浏览次数:20439 次

struts2 json JSONException IllegalAccessException 数组/集合表示

错误:?

Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public"

?

解决:?

excludeProperties:

\S+.hibernateLazyInitializer

<result name="success" type="json">
	<param name="root">replies</param>
	<param name="excludeNullProperties">true</param>
	<param name="excludeProperties">
		data\[\d+\].author.password,
		data\[\d+\].author.posts,
		data\[\d+\].author.replies,
		\S+.hibernateLazyInitializer
	</param>
</result>

?

参考:?http://147175882.iteye.com/blog/380823