首页 > 代码库 > Resource annotation is not supported on static fields

Resource annotation is not supported on static fields

 

 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘paramUtil‘ defined in URL [jar:file:/Users/exmyth/web/target/xxx/WEB-INF/lib/octopus-xxx-1.0-SNAPSHOT.jar!/cn/xxx/utils/ParamUtil.class]: Post-processing failed of bean type [class cn.xxx.utils.ParamUtil] failed; nested exception is java.lang.IllegalStateException: @Resource annotation is not supported on static fields

Resource annotation is not supported on static fields