Spring and passing parameters to factory-method in runtime
问题 The documentation of method context.getBean(name, user) says Allows for specifying explicit constructor arguments / factory method arguments but no matter what I do (tried everything), with the most logical setting I get this when the beans are being loaded up during initialization: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fileValidator' defined in PortletContext resource [/WEB-INF/classes/context/customer-form-portlet.xml]: Unsatisfied