Skip to content

Commit d464ff0

Browse files
committed
📝 完善文档
1 parent 4bef5b9 commit d464ff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/solon/server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public class MqttServerCustomizerConfiguration {
128128
```java
129129
@Component
130130
public class ServerService {
131-
@Autowired
131+
@Inject
132132
private MqttServerTemplate server;
133133

134134
public boolean publish(String body) {
@@ -139,7 +139,7 @@ public class ServerService {
139139
```
140140

141141
### 2.6 客户端上下线监听
142-
使用 Solon event 解耦客户端上下线监听,注意:会跟自定义的 `IMqttConnectStatusListener` 实现冲突,取一即可
142+
使用 Solon event 解耦客户端上下线监听,注意:会跟自定义的 `IMqttConnectStatusListener` 实现冲突,取一种即可
143143

144144
```java
145145
@Component

0 commit comments

Comments
 (0)