Skip to content

在 Spring 中,@Resource 或 @Autowired 注解不能直接用于静态字段上。你需要通过一个非静态的方法来设置静态字段。你可以通过以下的方法来解决这个问题:

本站总访问 — 次