Hi, is it possible to produce beans using a factory method with struts2 default ioc container? I want to inject an ObjectMapper but I want to configure the bean before inserting it in the container (similar to spring's @Bean method inside a @Configuration class)
@Bean public ObjectMapper objectMapper() { return new ObjectMapper(new JavaTimeModule()); } the <bean> tag of struts.xml invokes only the empty constructor without giving any arguments Thanks for your help