2019年3月7日

egg.js 启动时报 channel closed, nothing send stack: Error: channel closed

摘要: 无有效错误信息。 经排查是mongoose schema中定义了unique所导致的,估计egg-mongoose版本问题。 name: { type: String, unique: true } 后发现schema中写上index: true。也会出现上述问题 阅读全文

posted @ 2019-03-07 12:45 坚果zZ 阅读(247) 评论(0) 推荐(0) 编辑

2018年11月24日

java -jar 找不到或者无法加载主类

摘要: maven项目 在pom文件中写了一行 <packaging>pom</packaging> 导致出现 找不到主类的问题。 花了n个小时,先记着,后边再研究 阅读全文

posted @ 2018-11-24 14:29 坚果zZ 阅读(1489) 评论(0) 推荐(0) 编辑

2018年10月12日

git 忽略文件权限修改

摘要: git config core.filemode false 阅读全文

posted @ 2018-10-12 10:01 坚果zZ 阅读(610) 评论(0) 推荐(0) 编辑

2018年10月9日

zuul cookie透传

摘要: 全局设置: zuul.sensitive-headers= 指定路由设置: zuul.routes.<routeName>.sensitive-headers= zuul.routes.<routeName>.custom-sensitive-headers=true zuul.sensitive- 阅读全文

posted @ 2018-10-09 16:02 坚果zZ 阅读(352) 评论(0) 推荐(0) 编辑

@Controller/@RestController

摘要: @Controller配合视图解析器InternalResourceViewResolver @RestController会将return的对象已数据形式返回。如返回json数据 阅读全文

posted @ 2018-10-09 14:08 坚果zZ 阅读(99) 评论(0) 推荐(0) 编辑

2018年10月8日

POJO/javaBean/springBean

摘要: 所有属性为private。 这个类必须具有一个公共的(public)无参构造函数 private属性必须提供public的getter和setter来给外部访问,并且方法的命名也必须遵循一定的命名规范。 。 这个类应是可序列化的,要实现serializable接口。 阅读全文

posted @ 2018-10-08 13:02 坚果zZ 阅读(109) 评论(0) 推荐(0) 编辑

导航