@Component
public class GenericAndJson {
private static ObjectMapper mapper;
@Autowired
public void setMapper(ObjectMapper mapper) {
GenericAndJson.mapper = mapper;
}
public static xxx (){}
}
静态类变量的注入
最新推荐文章于 2023-01-19 23:22:02 发布