摘要: linux 查看端口的命令为: netstat 常用的参数有 anp,如: netstat -anp 查看指定的端口,如查看端口 80 是否开启中: netstat -anp | grep 80 备注:Windows 的 CMD 查看端口的命令也是 netstat,如查看所有的 TCP 端口: ne 阅读全文
posted @ 2017-02-17 14:40 hapday 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 1、访问控制层(Controller 层)中的方法命名方向是简洁明了,向着自然化语言方向靠拢,比如“更新用户”,建议命名为“updateUser”,而非“updateUserById”,实际上我们更新用户一般都是根据主键 ID 来实现的,所以“updateUserById”更适宜放在 service 阅读全文
posted @ 2017-02-17 11:07 hapday 阅读(6262) 评论(0) 推荐(2) 编辑