Ver código fonte

mqtt认证返回算法id

李进 1 ano atrás
pai
commit
009d38a54a

+ 2 - 1
device-api-service/src/main/java/com/xy/service/MqttUserServiceImpl.java

@@ -17,6 +17,7 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,8 +38,8 @@ import static com.xy.utils.Beans.copy;
  */
 @Slf4j
 @Service
-@AllArgsConstructor
 @Api(tags = "mqtt认证")
+@AllArgsConstructor(onConstructor_ = @Lazy)
 public class MqttUserServiceImpl extends ServiceImpl<MqttUserMapper, MqttUser> implements MqttUserService {
 
     private DeviceInfoServiceImpl deviceInfoService;