Browse Source

fix bug: 修复关联的bean报初始化问题

lijie 2 years ago
parent
commit
6f26c09260

+ 2 - 1
labsl/src/main/kotlin/com/persagy/labsl/controller/GraphController.kt

@@ -16,6 +16,7 @@ import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
 import io.swagger.v3.oas.annotations.Operation
 import io.swagger.v3.oas.annotations.tags.Tag
+import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
 import org.springframework.web.bind.annotation.RequestMapping
@@ -30,7 +31,7 @@ import org.springframework.web.bind.annotation.RestController
 @RestController
 @RequestMapping("/graph")
 class GraphController {
-
+    @Autowired
     lateinit var graphLogicService: GraphLogicService
 
     /**

+ 2 - 1
labsl/src/main/kotlin/com/persagy/labsl/controller/MarkersController.kt

@@ -11,6 +11,7 @@ import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
 import io.swagger.v3.oas.annotations.Operation
 import io.swagger.v3.oas.annotations.tags.Tag
+import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
 import org.springframework.web.bind.annotation.RequestMapping
@@ -25,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController
 @RestController
 @RequestMapping("/marker")
 class MarkersController {
-
+    @Autowired
     lateinit var markersLogicService: MarkersLogicService
 
 

+ 2 - 1
labsl/src/main/kotlin/com/persagy/labsl/controller/NodeController.kt

@@ -12,6 +12,7 @@ import com.persagy.service.models.responses.SQueryResponse
 import io.swagger.v3.oas.annotations.Operation
 import io.swagger.v3.oas.annotations.tags.Tag
 import lombok.extern.slf4j.Slf4j
+import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
 import org.springframework.web.bind.annotation.RequestMapping
@@ -27,7 +28,7 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping("/node")
 @Slf4j
 class NodeController {
-
+    @Autowired
     lateinit var nodeLogicService: NodeLogicService
 
     /**

+ 2 - 1
labsl/src/main/kotlin/com/persagy/labsl/controller/RelationController.kt

@@ -11,6 +11,7 @@ import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
 import io.swagger.v3.oas.annotations.Operation
 import io.swagger.v3.oas.annotations.tags.Tag
+import org.springframework.beans.factory.annotation.Autowired
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
 import org.springframework.web.bind.annotation.RequestMapping
@@ -25,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController
 @RestController
 @RequestMapping("/relation")
 class RelationController {
-
+    @Autowired
     lateinit var relationLogicService: RelationLogicService
 
     /**