- First, clone this repo to local. Example c:\gitrepos\spring-boot-admin-project
- rm -rf c:\gitrepos\spring-boot-admin-project.idea (i should not have checked this in, delete it for now)
- In IntelliJ create a new empty project with path c:\gitrepos\spring-boot-admin-project
- Next setup Project SDK to JDK 11.
- Intellij -> File -> Project Structure -> Project -> Project SDK = JDK 11
- Then add spring-boot-admin app (in c:\gitrepos\spring-boot-admin-project) as a module.
- Make sure you import the module as gradele. It is best to select directory spring-boot-admin. Here are the specific steps.
- Intellij -> File -> Project Structure -> Modules
- Add module (click +)
- Import Module (as gradle)
- navigate to c:\gitrepos\spring-boot-admin-project\spring-boot-admin
- click OK
- IMPORTANT: to make the project work within 53 VPN you need to go through JFrog (skip this step if you are running this in home netowrk)
- build.gradle (need buildscript to use jfrog.gradle) (see other existing projects as reference)
- copy down jfrog.gradle
- settings.gradle. copy everything but rootaProject.name
- Then add my-app (in c:\gitrepos\spring-boot-admin-project) as a module.
- Intellij -> File -> Project Structure -> Modules
- Add module (click +)
- Import Module (as gradle)
- navigate to c:\gitrepos\spring-boot-admin-project\my-app
- click OK
- IMPORTANT: to make the project work within 53 VPN you need to go through JFrog (skip this step if you are running this in home netowrk)
- build.gradle (need buildscript to use jfrog.gradle) (see other existing projects as reference)
- copy down jfrog.gradle
- settings.gradle. copy everything but rootaProject.name
- Intellij -> File -> Project Structure -> Modules
if all goes well, both apps should build properly
SBA=spring-boot-admin
to start SBA right click on src/main/java/com/example/demo/springbootadmin/SpringBootAdminApplication.java and hit Run
then in the browser http://localhost:8080
SBA starts and begins to listen to apps Since no apps are running, SBA now should show application count as 0
next start my-app. this app represents the application managed by SBA. to do this, right click src/main/java/com/example/demo/myapp/MyAppApplication.java and hit Run
SBA now should show application count as 1
If you are curious what my-app does, go to http://localhost:8082. it prints hello world.
in SBA you can change logger level etc
our apps use gradle to build but these use maven. no big deal just saying..
Created new project following SBA maintainer’s instructions here
use sprint initializer with spring boot admin server
use sprint initializer with web and spring boot admin client