【发布时间】:2011-08-17 09:53:42
【问题描述】:
我需要一个 ANT 任务来验证 spring 配置。我需要在运行前的构建时发现问题吗?例如,在 spring 上下文文件中包含一个属性一个 bean,但是这个 bean 没有这个属性。 在 Eclipse 中,有一个工具 Spring Explorer 可以进行此验证。
谢谢,
org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'readController' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'productOperations' of bean class [com.bee.view.json.ReadController]: Bean property 'productOperations' is not writable or has an invalid setter method。
setter的参数类型和getter的返回类型是否匹配?
【问题讨论】:
标签: spring ant validation