mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
后端配置简化
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user