摘要: 虽然ribbon默认为我们提供了多钟负载均衡策略,但有时候我们仍然需要自定义符合自身业务逻辑的规则 使用配置文件的方式:我们只需要在配置文件中添加配置 serviceId.ribbon.NFLoadBalancerRuleClassName=自定义的负载均衡策略类 其中 serviceId 为具体服 阅读全文
posted @ 2018-12-20 22:01 微笑点燃希望 阅读(800) 评论(0) 推荐(0) 编辑
摘要: mysql中的CURRENT_TIMESTAMP和ON UPDATE CURRENT_TIMESTAMP 设置默认值 now(3) datetime 长度 3 保存精确到秒 阅读全文
posted @ 2018-12-20 11:56 微笑点燃希望 阅读(561) 评论(0) 推荐(0) 编辑
摘要: public class Apple { private Integer id; private String name; private BigDecimal money; private Integer num; public Apple(Integer id, String name, Big 阅读全文
posted @ 2018-12-20 10:59 微笑点燃希望 阅读(2781) 评论(0) 推荐(0) 编辑
font=white