03 2021 档案

摘要:文档原文地址: https://www.emqx.io/cn/blog/mqtt5-new-features-payload-format-indicator-and-content-type 有效载荷标识: 该属性只存在于 publish报文 和 connect报文的遗嘱属性中。 有效载荷标识只占 阅读全文
posted @ 2021-03-29 20:10 currentTimeMillis 阅读(279) 评论(0) 推荐(0)
摘要:由于emqx日志只打印某些错误日志,不能精确看到某个客户端的详细错误日志。 使用 trace 可以追踪某个clientid用户的连接情况。 追踪来自客户端(Client)的消息: 先把日志级别调整为 debug. $ ./bin/emqx_ctl log primary-level debug $ 阅读全文
posted @ 2021-03-29 20:07 currentTimeMillis 阅读(2021) 评论(0) 推荐(0)
摘要:Spring boot 中有时候需要控制配置类是否生效,使用 @ConditionalOnProperty 注解来控制 @Bean 是否生效。 例: @ConditionalOnProperty(prefix = "config",name = "enable",havingValue = "tru 阅读全文
posted @ 2021-03-16 19:52 currentTimeMillis 阅读(1059) 评论(0) 推荐(0)
摘要:一、最近使用 因为 @SpringBootApplication 已经集成了它,平时就不怎么用。 最近在搭建项目框架, 使用的 maven 子模块 @SpringBootApplication 在boot模块中。 主要业务代码在另外两个子模块中。 项目启动时发现, 只启动了boot模块。两外两个模块 阅读全文
posted @ 2021-03-12 17:22 currentTimeMillis 阅读(114) 评论(0) 推荐(0)