Update dependencies and add springdoc-openapi-starter-webmvc-ui dependency
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -108,7 +108,11 @@
|
|||||||
<artifactId>gson</artifactId>
|
<artifactId>gson</artifactId>
|
||||||
<version>2.8.8</version>
|
<version>2.8.8</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springdoc</groupId>
|
||||||
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||||
|
<version>2.5.0</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.olympus</groupId>
|
<groupId>com.olympus</groupId>
|
||||||
<artifactId>common</artifactId>
|
<artifactId>common</artifactId>
|
||||||
|
|||||||
@@ -5,19 +5,21 @@ import com.olympus.feign.SourceCodeModule;
|
|||||||
import com.olympus.hermione.services.SourceCodeService;
|
import com.olympus.hermione.services.SourceCodeService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
public class ApplicationBrowserController {
|
public class ApplicationBrowserController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
SourceCodeService sourceCodeService;
|
private SourceCodeModule sourceCodeModule;
|
||||||
|
|
||||||
@GetMapping
|
|
||||||
public TreeNode getApplicationNode(String applicationName){
|
@GetMapping("/source-viewer/getApplicationTreeNode")
|
||||||
return sourceCodeService.getApplicationNode(applicationName);
|
public TreeNode getApplicationNode(@RequestParam() String applicationName){
|
||||||
|
return sourceCodeModule.getTreeFromNode(applicationName,"application");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,4 +28,5 @@ logging.level.org.springframework.ai.chat.client.advisor=DEBUG
|
|||||||
eureka.client.serviceUrl.defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
|
eureka.client.serviceUrl.defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
|
||||||
eureka.instance.preferIpAddress: true
|
eureka.instance.preferIpAddress: true
|
||||||
|
|
||||||
hermione.fe.url = *
|
hermione.fe.url = *
|
||||||
|
ariadne.fe.url = *
|
||||||
Reference in New Issue
Block a user