gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
630 stars 131 forks source link

How do I inject spring bean into a job #118

Closed ijaychang closed 7 years ago

ijaychang commented 7 years ago

When I tried use @Autowired to inject a spring bean to Job,It show me org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'returProductStoreJob' defined in file [E:\EclipseWorkSpaceFolder\MyWorkspace\jesquedemo\target\classes\cn\jaychang\jesquedemo\ch03\ReturProductStoreJob.class]: Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)

Job class I use @Scope("prototype") and @Component annotation

berlinguyinca commented 7 years ago

Could we please have a response to this question?

kind regards