Eclipse4.6で
SpringSTSを使いSpringFrameworkの開発をしていますが
Eclipse上のテストサーバ(TOMCA7)にてデバッグをすると以下のエラーがでます。
調べてみた結果controlクラスとserviceクラス、Daoクラスを別フォルダにして作成しているのですが、どうもserviceクラスが見つからない様です。
この時のアノテーションをどのようにすればよいか(多分間違っていると思われるので)ご指導いただけるとありがたく思っております。
よろしく尾根唖ぎします
エラーメッセージ
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private jp.vikingegg.VESales.service.LoginService jp.vikingegg.VESales.control.LoginController.loginService; nested exception is java.lang.IllegalStateException: Autowired annotation requires at least one argument: public jp.vikingegg.VESales.service.LoginService()
###該当のソースコード
ここにご自身が実行したソースコードを書いてください
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。