I am using a third party library class XYZ as an argument in my model. XYZ does not have a default constructor. So spring is not able to create bean for it giving error message
You can define it in the XML file as a spring bean passing all necessary parameters to instantiate it.
sample: