Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@yukiyoshimura

IntelliJ x Kotlin x SpringBoot Could not autowire. No beans of 'xxx' type found.

More than 1 year has passed since last update.

事象

IntelliJ x SpringBoot x Kotolin で、autowiredを使用とすると以下エラーがでた。

Could not autowire. No beans of 'xxx' type found.

画面キャプチャ
image.png

対応

  • IntelliJを最新にしてみたけど変わらなかった
  • エラーは出ているが問題なく起動できるので放置でも良さそう
  • エラーが気になる場合は、以下でエラーではなくWarning表示するように切り替える。

Preference > Inspections > Spring > Spring Core > Code > Autowiring for Bean Class
image.png

まとめ

IDEは便利だけど、ライブラリに対応できてないこともある。
コードだけに着目するのではなく、IDEを使っている場合はそこも考慮して落ち着いて対応する。

1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?