Spring 3.2 を使用するアプリに Spring Batch Admin を統合しました。
ここで、メソッドに で注釈を付け、@Scheduled
これを でアクティブ化しようとしてい<task:annotation-driven/>
ます。webapp を起動すると、次の例外が発生します。
Caused by: java.lang.IllegalStateException: @Scheduled method 'removeInactiveExecutions'
found on bean target class 'SimpleJobService', but not found in any interface(s) for bean
JDK proxy. Either pull the method up to an interface or switch to subclass (CGLIB) proxies
by setting proxy-target-class/proxyTargetClass attribute to 'true'
Spring Batch AdminのSimpleJobService
は、メソッドでこのアノテーションを使用します。
春に 3.2。cglib をクラスパスに入れる必要はないようで、spring-asm も廃止されています。spring-asm
spring-batch-integration から依存関係を除外しました。
どこで設定できますかproxy-target-class=true
(私はすでに試着しました<tx:annotation-config>
が<aop:config>
?
アプリケーションでどのように使用でき@Scheduled
ますか?