摘要: 1.原理 利用 来实现。 1.1 创建自定义AutoConfigurationImportListener 1.2 新建配置文件 1.3 创建引导启动类 2.测试结果 阅读全文
posted @ 2019-11-06 21:30 snower1995 阅读(804) 评论(0) 推荐(0)
摘要: 本地测试SpringBoot,启动报错如下: 最后发现是 文件的编码问题,从 改为 就好了。 阅读全文
posted @ 2019-11-06 21:12 snower1995 阅读(2480) 评论(0) 推荐(1)
摘要: 1.传统应用服务的几种交互方式: + ESB总线:WebService等SOA架构 + 数据共享缓存:Redis + 数据共享数据库:Oracle、MySQL等 2.传统交互方式的缺点 + 存在多种契约:接口契约和数据存储契约 + 上游数据格式变化,影响下游处理逻辑 + 共享资源服务,运维难划清职责 阅读全文
posted @ 2019-11-06 13:07 snower1995 阅读(345) 评论(0) 推荐(0)
摘要: 原因是 SpringBoot2.1 之后,调整了 Spring MVC or Spring WebFlux 的日志级别,使得升级后日志输出少了,需要手动修改 ,具体参考 [Spring Boot 2.1 Release Notes][1] 修改配置的日志级别如下: 这样就能和往常一样打印出URL映射 阅读全文
posted @ 2019-11-05 21:44 snower1995 阅读(377) 评论(0) 推荐(0)
摘要: ![](https://img2018.cnblogs.com/blog/608900/201911/608900-20191105140011226-1702593569.png) 阅读全文
posted @ 2019-11-05 14:00 snower1995 阅读(89) 评论(0) 推荐(0)
摘要: + Core development patterns + Service granularity + Communication protocols + Interface design + Configuration management + Event processing + Routing 阅读全文
posted @ 2019-11-05 11:08 snower1995 阅读(125) 评论(0) 推荐(0)
摘要: What is REST? Representational State Transfer What is the core concept? Your services should embrace the use of the HTTP verbs(like GET, POST, PUT, an 阅读全文
posted @ 2019-11-04 09:45 snower1995 阅读(132) 评论(0) 推荐(0)
摘要: 1.问题缘由 使用官方提供的 提供的例子写 时候,修改了配置文件中的 配置,改成了和 一样的值: 2.问题描述 贴上了堆栈信息: 3.问题解决 根据报错提示, 不能设置为和上面 一样的值,改为不一样即可解此问题: 阅读全文
posted @ 2019-11-02 23:34 snower1995 阅读(1782) 评论(0) 推荐(0)
摘要: 1.可以通过 来设置生产者发送消息时候失败重试的次数,默认值是 ,即失败一次后,会重试两次,总共发送三次消息 2.生产者发送消息重试机制 贴上源码,客户端版本号是: java com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImp 阅读全文
posted @ 2019-10-29 19:59 snower1995 阅读(1015) 评论(0) 推荐(0)
摘要: org.springframework.boot.actuate.health.HealthEndpoint health org.springframework.boot.actuate.health.HealthIndicator health org.springframework.boot. 阅读全文
posted @ 2019-10-28 15:17 snower1995 阅读(610) 评论(0) 推荐(0)