This topic provides the steps for installing Spring Application Advisor.
To start, download and extract the Spring Application Advisor binary on your workstation. After this is done, you are ready to follow the steps.
Spring Application Advisor Server is a Spring Boot application. It requires Java 17 or higher.
To download Spring Application Advisor Server, download the following artifact from the Spring Enterprise Maven repository.
curl -L -H "Authorization: Bearer $ARTIFACTORY_TOKEN" -o upgrade-service.jar -X GET https://packages.broadcom.com/artifactory/spring-enterprise/com/vmware/tanzu/spring/application-advisor-server/1.0.2/application-advisor-server-1.0.2.jar
Note For information about syncing your internal repository with Spring Enterprise Maven repository, see [Spring Enterprise Subscription for Artifact Repository Administrators](../guide-artifact-repository-administrators.html).
After the server is downloaded and renamed, you can start the server by running the following command, which by default, will start the service listening on port 8080:
java -jar upgrade-service.jar
If you have other services that are listening on the same port on the same machine, you can append -Dserver.port=DESIRED_PORT_NUMBER
to run the the Spring Application Advisor service using a different port.
After the process starts, you can check the status in http://localhost:8080/actuator/health
.
This solution does not require Internet connectivity.
Note If you need to expose the endpoints in a particular route, you can run the server with the property spring.advisor.server.prefix
set to a specific path. Remember to include this path as part of the server URL (referenced in this documentation as APP_ADVISOR_SERVER
) when executing advisor's CLI.
java -jar upgrade-service.jar --spring.advisor.server.prefix="/api/advisor"