Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beans Gviz

Builds a graph of Spring beans in Graphviz format. xdot_000

Usage

1. Add the Spring actuator dependency to the Spring Boot project

build.gradle:

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-actuator'
}

2. Activate the actuator/beans endpoint

application.properties:

management.endpoints.web.exposure.include=beans

3. Launch a Spring Boot project

./gradlew bootRun

4. Build graph

# to generate *.gv files in the current directory
./BeansGviz http://localhost:8080/actuator/beans .

# to generate single.gv file
./BeansGviz http://localhost:8080/actuator/beans single.gv

# to open xdot for view graph (linux bash)
./BeansGviz http://localhost:8080/actuator/beans | xdot /dev/stdin

5. View graph

Use any graphviz viewer

xdot file.gv
# or
dot file.gv > file.svg

or copy content from file.gv to any Graphviz online viewer. (ex. https://edotor.net/)

About

Spring Bean dependency graph builder

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages