Java Spring

The bean 'piyo' could not be injected as a 'hello.piyo' because it is a JDK dynamic proxy that implements ...

投稿日:

??? という感じだったのですが、

***************************
APPLICATION FAILED TO START
***************************

Description:

The bean 'piyo' could not be injected as a 'hello.piyo' because it is a JDK dynamic proxy that implements:
	hello.piyp
	reactor.fn.Consumer


Action:

Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching.

:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootRun'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

下記のサイトに対応内容が説明されていました。なるほどなるほど。

http://kamatama41.hatenablog.com/entry/20140327/1395928048

-Java, Spring

Copyright© hirooka.pro , 2013-2018 All Rights Reserved.