上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页
摘要: 为了方便开发人员设置状态码,REST framework在rest_framework.status 模块中提供了常用的状态码 但我们其实是可以看源代码,查看状态码,只不过都是英文。 所以,我用了一点时间整理,翻译,总结了 若有错,还望大牛指出 1.信息告知状态码--1xx 这类状态代码表示临时的响 阅读全文
posted @ 2019-09-24 11:17 M号开发者 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 只启动kafka监听,云平台下发命令,会收到 但是同时启动 数据模拟推送 和kafka监听,云平台下发命令,会收到 state不同 应该和内部逻辑有关,附上state状态截图 阅读全文
posted @ 2019-09-20 15:19 M号开发者 阅读(185) 评论(0) 推荐(0) 编辑
摘要: spring中有时候一个类上面标记很多注解。 实际上Java注解可以进行继承(也就是把多个注解合并成1个) 比如说SpringMVC的注解 @RestController@RequestMapping("/person") 可以合并为一个 @PathRestController("/user") 实 阅读全文
posted @ 2019-09-20 11:44 M号开发者 阅读(5175) 评论(0) 推荐(0) 编辑
摘要: return "xxx{" + "xxx='" + xxx+ '\'' + ", ggg='" + ggg+ '\'' + ", jjj='" + jjj+ '\'' + ", time=" + time + ", rrr='" + rrr+ '\'' + ", eee=" + eee+ ", da 阅读全文
posted @ 2019-09-20 11:22 M号开发者 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 特别时写框架的时候, 注意依赖引用,类的成员变量不要随便new,看spring容器中是否管理过,new出来的时其他的对象了 阅读全文
posted @ 2019-09-20 11:04 M号开发者 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 只有runtimeexception并且没有被try catch处理的异常才会回滚。 想要回滚,不要去try 还有一个坑时逻辑上的问题,之前总以为插入,更新后,返回值为0,@Transactional会回滚,其实并不会,他只对runtimeexception和error(两者叫不可检查异常) 进行回 阅读全文
posted @ 2019-09-20 11:01 M号开发者 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/21f3e074e91a 阅读全文
posted @ 2019-09-19 16:26 M号开发者 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 参考 https://www.iteye.com/blog/huangyunbin-2179144 阅读全文
posted @ 2019-09-18 15:34 M号开发者 阅读(4858) 评论(0) 推荐(0) 编辑
摘要: public static void executebindParam(PreparedStatement pstmt,Object ...os){ public static void executebindParam(PreparedStatement pstmt,Object ...os){ 阅读全文
posted @ 2019-09-18 15:12 M号开发者 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/codebj/p/10994748.html 阅读全文
posted @ 2019-09-18 13:51 M号开发者 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页