Java
Java
晒太阳的咸鱼0.0
这个作者很懒,什么都没留下…
展开
-
springboot整合logback日志
SpringBoot整合logback日志 - 简书 (jianshu.com)转载 2022-01-28 11:06:27 · 137 阅读 · 0 评论 -
idea生成注释模板
IDEA 配置注释模板 | Jitwxs转载 2022-01-28 10:31:12 · 135 阅读 · 0 评论 -
安装虚拟机(centos 7)
VMware 虚拟机安装 Linux(CentOS7) - 累成一条狗 - 博客园 (cnblogs.com)转载 2022-01-25 10:59:02 · 73 阅读 · 0 评论 -
idea中快速创建变量名的快捷键
ctrl+alt+v原创 2021-10-29 22:11:42 · 1479 阅读 · 0 评论 -
普通类注入
普通类中使用@Autowired等注入会失败,常见的注入:Controller层中使用@Controller将类加入容器,再自动注入Service层的实例;Service层使用@Service将类加入到容器,再自动注入DAO层的实例;DAO层使用@Mapper将类加入到容器中,或者使用@MapperScan将dao包下类扫描在spring容器中进行注册。解决方法:@Componentpublic class CustomProtocolDecoder extends Cumulati原创 2021-10-14 15:52:19 · 307 阅读 · 0 评论