后端配置简化

This commit is contained in:
kerwincui
2025-05-15 12:07:16 +08:00
parent 7079610ee4
commit 7f58d3e12b
7 changed files with 16 additions and 26 deletions

View File

@@ -44,7 +44,6 @@ public class MQTTBootStrap {
* 启动mqttBroker
* @return server
*/
@ConditionalOnProperty(value = "server.broker.enabled", havingValue = "true")
@Bean(initMethod = "start", destroyMethod = "stop")
public Server mqttBroker() {
return NettyConfig.custom()
@@ -56,7 +55,6 @@ public class MQTTBootStrap {
.build();
}
@ConditionalOnProperty(value = "server.broker.enabled", havingValue = "true")
@Bean(initMethod = "start",destroyMethod = "stop")
public Server webSocket(){
return NettyConfig.custom()