Spring 如何注入值到静态变量

Spring 如何注入值到静态变量 Spring不容许直接将值注册到静态变量中,能够间接完成 在任意类中注入配置文件中的常量 import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Value; public class Strong
相关文章
相关标签/搜索