Nie chcę tworzyć domyślnego konstruktora dla mojej klasy auditRecord
.Czy Spring wymaga, aby wszystkie komponenty bean miały domyślny konstruktor?
Ale Wiosna wydaje się nalegać na to:
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
Czy to naprawdę konieczne?
Proszę pokazać swój config, który ładuje fasoli - XML lub adnotacje – atrain
https://stackoverflow.com/questions/25272543/no-default-constructor-found-nested-exception-is-java-lang-nosuchmethodexceptio – newday