LoginSignup
2
0

More than 5 years have passed since last update.

SpringBoot × doma2でimplが作成されない

Posted at

環境

SpringBoot 2.0.0
kotlin 1.2.20
doma 2.16.1
doma-spring-boot-starter 1.1.1

implが作成されない

IntelliJを使ってチュートリアルを参考に進めていたがコンパイル時にImplが自動作成されずDIに失敗、tomcatが立ち上がらない
以下エラー内容

Parameter 0 of constructor in xxx.xxx.xxxService required a bean of type 'xxx.xxx.xxxRepository' that could not be found.

解決

IntelliJの注釈処理設定をONにする
Settngs>Build、Execution、Deployment>Compiler>Annotation Processors

無題.png

ビルドした後、generatedディレクトリが作成されるので
generatedディレクトリをSource Foldersとして認識させる

プロジェクト右クリック>Open Module Settings>Modules

setting.png

完了

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0