Spring: Configuring Bean with a two argument setter
问题 I would like to configure a HttpParams using spring setter injection but HttpParams has a two argument setter ( setParameter(String name, Object object) ). Is anyone aware of a way to configure this in spring? The closest I can think of is like you would do a List, Set, or Property configuration: http://www.mkyong.com/spring/spring-collections-list-set-map-and-properties-example/ Thanks! 回答1: Strictly speaking: A setter with two parameters is not a setter. It violates the JavaBeans convention