Skip to content

SequenceDiagram plugin cannot resolve Spring interface implementations #197

@jfzhao

Description

@jfzhao

When using the SequenceDiagram plugin to analyze a Spring Boot project, the plugin fails to resolve the relationship between interfaces and their implementations. For example, given the following code:

// IDemoService.java
public interface IDemoService {
    String sayHello(String name);
}

// DemoService.java
@Service
public class DemoService implements IDemoService {
    @Override
    public String sayHello(String name) {
        return "Hello, " + name + "!";
    }
}

// DemoCtrl.java
@RestController
public class DemoCtrl {
    @Autowired
    IDemoService demoService;

    public String sayHello(String name) {
        return demoService.sayHello(name);
    }
}

The plugin does not automatically associate IDemoService with its implementation DemoService, nor does it show the dependency injection in DemoCtrl.

Feature request:
Please enhance the plugin to support Spring's dependency injection and auto-wiring, so that it can automatically identify and display the relationships between interfaces and their implementations in Spring projects.

Thank you!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions