Non voglio creare un costruttore predefinito per la mia classe auditRecord
.Spring richiede che tutti i bean abbiano un costruttore predefinito?
ma la primavera sembra insistere su di esso:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'auditRecord' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]:
Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [com.bartholem.AuditRecord]:
No default constructor found;
nested exception is
java.security.PrivilegedActionException:
java.lang.NoSuchMethodException:
com.bartholem.AuditRecord
questo è davvero necessario?
Si prega di mostrare la vostra configurazione che carica il fagiolo - XML o annotazioni – atrain
https://stackoverflow.com/questions/25272543/no-default-constructor-found-nested-exception-is-java-lang-nosuchmethodexceptio – newday