2018年7月9日

spring boot 集成 rabbitmq

摘要: 1、使用默认的AmqpTemplate生产消费pojo时,pojo需要implement Serializable,否则会抛出org.springframework.amqp.AmqpException: No method found for class [B。 2、当需要使用其他package或 阅读全文

posted @ 2018-07-09 17:04 重八 阅读(160) 评论(0) 推荐(0) 编辑

2018年7月6日

mybatis generator 用法

摘要: 如果使用maven, 另外,生成的mapper.xml中,insert如果有默认值(如自增序列或创建时间等),需要使用insertSelective才能正确插入默认值。 阅读全文

posted @ 2018-07-06 21:29 重八 阅读(326) 评论(0) 推荐(0) 编辑

2018年7月4日

spring mvc helloworld 和表单功能、页面重定向

摘要: Spring MVC Hello World 例子 这里有个很好的教程:https://www.cnblogs.com/wormday/p/8435617.html 下面的例子说明了如何使用 Spring MVC 框架来编写一个简单的基于 web 的 Hello World 应用程序。下面让我们使用 阅读全文

posted @ 2018-07-04 10:55 重八 阅读(219) 评论(0) 推荐(0) 编辑

2018年5月31日

框架设计

摘要: 方案设计: 从上而下介绍方案,依次为: 1.框架架构图。 2.介绍框架能做什么,开发者能做什么,怎么用。 3.介绍各个模块功能,及模块之间的关系。 4.模块具体实现,可以是伪代码。 注意:1.框架与业务无关,考虑重用和扩展性,常量不要使用枚举。 2.所有的Model需要有说明,并介绍字段含义。 总体 阅读全文

posted @ 2018-05-31 19:41 重八 阅读(210) 评论(0) 推荐(0) 编辑

2018年5月14日

resharper activate

摘要: K03CHKJCFT-eyJsaWNlbnNlSWQiOiJLMDNDSEtKQ0ZUIiwibGljZW5zZWVOYW1lIjoibnNzIDEwMDEiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN 阅读全文

posted @ 2018-05-14 09:22 重八 阅读(172) 评论(0) 推荐(0) 编辑

2018年4月25日

linux c++ rabbitMq Demo

摘要: 1.在vs上实现远程调试Linux c++程序:https://www.jianshu.com/p/8b51a795cb92。 2.调试需要c++11,升级redhat上的gcc版本,虚拟机gcc版本4.4.7,使用yum只能升级到4.4.7,所以需要手动完成: 一、查看当前系统以及gcc版本号 1 阅读全文

posted @ 2018-04-25 16:20 重八 阅读(681) 评论(0) 推荐(0) 编辑

2018年4月13日

c# 各种tips

摘要: 1.lock 类似于 java中的synchronized,对对象或代码块加上互斥锁。 2.c#中的lambda表达式, ForEach(x => f(n)) 3.c# 中的 something?.method 的含义是 如果something是null,返回null, 否则返回something的 阅读全文

posted @ 2018-04-13 13:39 重八 阅读(298) 评论(0) 推荐(0) 编辑

2018年2月22日

java mutilThread

摘要: 可以参考https://www.cnblogs.com/wxd0108/p/5479442.html 这里补充一下我理解多线程这部分的一些要点。 1、首先是java的monitor概念:https://www.cnblogs.com/tomsheep/archive/2010/06/09/17544 阅读全文

posted @ 2018-02-22 17:55 重八 阅读(246) 评论(0) 推荐(0) 编辑

2018年1月12日

Lagom production deployment

摘要: tutorial:https://developer.lightbend.com/guides/lagom-kubernetes-k8s-deploy-microservices/ 一、harbor deployment: https://blog.frognew.com/2017/06/insta 阅读全文

posted @ 2018-01-12 18:17 重八 阅读(587) 评论(0) 推荐(0) 编辑

2017年12月25日

springboot

摘要: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL 阅读全文

posted @ 2017-12-25 20:51 重八 阅读(122) 评论(0) 推荐(0) 编辑

导航