![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端开发
大大的世界,小小的我
因为记不住,我就写下来!菜鸟有梦,如影随行!
展开
-
bug笔记_01
在通过httpClient调用某个接口时,报错 No route to host 我们首先查看 linux版本,不同的版本,指令有些差异, cat /etc/centos-release 或 uname -a 可以查看到 随后,查看防火墙状态 systemctl status firewalld 防火墙关闭 如果没有关闭是 active systemctl stop firewalld 关闭防...原创 2019-12-25 15:48:18 · 84 阅读 · 0 评论 -
数据库配置
db.properties jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/pinyougoudb_pro?characterEncoding=utf-8 jdbc.username=root jdbc.password=123456 dao层 applicationContext-dao.xml 读取配...原创 2018-10-24 14:38:04 · 119 阅读 · 0 评论 -
单元测试模板
1 准备工作 1.1 applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <!-- 扫描service包下所有使用注解的类型 --> <context:component-scan base-package="www.longshine.baidu.service"/> ...原创 2019-08-19 08:33:07 · 961 阅读 · 0 评论 -
代码生成器_1.3.7产生带字段描述的实体类
一共记录2种有效方法,进行记录 第一种: 自定义代码生成器 public class MyCommentGenerator extends DefaultCommentGenerator { // 默认开启注解 private boolean suppressAllComments = true; //此时需要处理 get /set方法注解 以及mapper文件注解 通过重写相应的方法只保存 ...原创 2019-08-13 10:00:36 · 288 阅读 · 0 评论