この内容は古いバージョンです。最新バージョンを表示するには、戻るボタンを押してください。
バージョン:1
ページ更新者:guest
更新日時:2018-04-27 06:07:12

タイトル: java.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [...]

エラー内容

java.lang.IllegalStateException: CGLIB is required to process @Configuration classes.

Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [...]

 

発生条件/原因

CGLIBライブラリが不足しているのが原因。

CGLIBはInterfaceを介さないbeanをInjectionする際に必要となるライブラリ。

 

対処法

pom.xmlに以下を追記して、maven ビルドを実行する。

<dependency>
    <groupId>cglib</groupId>
    <artifactId>cglib</artifactId>
    <version>3.2.6</version>
</dependency>