1

EJB である UserT クラスから拡張された Grails ドメイン クラス User がある場合、User() インスタンス化でエラーがスローされます。この問題の原因がわかりません。助けてください。init メソッドが必要な理由とその場所を説明してください。以下はエラーコードです。

Error creating bean with name 'gn.User': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [gn.User]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.jobs.users.UserT: method <init>()V not found
4

1 に答える 1

0

スーパークラスにはデフォルトのコンストラクターがありますか? 必要だと思います。

于 2011-01-07T15:26:28.377 に答える