auditRecord
クラスのデフォルトコンストラクタを作成したくありません。SpringはすべてのBeanにデフォルトのコンストラクタが必要ですか?
しかし、春には、それを主張するようだ:
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
は、これは本当に必要ですか?
Beanをロードし、あなたの設定を表示してください - XMLまたは注釈 – atrain
https://stackoverflow.com/questions/25272543/no-default-constructor-found-nested-exception-is-java-lang-nosuchmethodexceptio – newday