- 博客(2)
- 问答 (1)
- 收藏
- 关注
原创 Can‘t convert value of class java.lang.String to class org.apache.kafka.common.serialization.ByteArr
换成这个依赖,不需要在写配置转换。把pom 这个依赖删除。
2023-04-23 14:48:00 912 1
原创 Java Spring工具类加载Serivce @PostConstruct注解在工具类的作用
这里写自定义目录标题1、 @PostConstruct 介绍@PostConstruct 是怎么把Service 注入的资源调用,而不是null。为什么要声明一个static 类静态属性 workSheetNoCodeRule = this 作用在方法里调用PostConstruct 在工具类的作用 保存注入Service资源也可以通过Spring 注入的方式,加载工具类,但是Spring注入的三种方式: 接口,set,构造器总结:1、 @PostConstruct 介绍@PostCon
2021-03-19 17:56:27 428
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人