Builds a graph of Spring beans in Graphviz format.

build.gradle:
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
}
application.properties:
management.endpoints.web.exposure.include=beans
./gradlew bootRun
# 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
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/)