티스토리 뷰

728x90

 

공식 가이드를 참고합니다.

 

Spring Boot Admin Reference Guide

It is possible to monitor Spring Boot 1.5.x applications with Spring Boot Admin 2.x. The old Spring Boot Admin Client is able to register at a newer server. Since the API has slight changes, you need to set the following property on old clients: Reconfigur

codecentric.github.io

 

 

codecentric의 SBA(Spring Boot Admin)은 스프링 부트 어플리케이션을 모니터링하고 관리하는 커뮤니티 프로젝트이다.

HTTP접속인 Spring Boot Admin Client 어플리케이션이나 Spring Cloud를 사용해서 뜨는 어플리케이션을 등록한다.

 

설명은 모르겟고..

 

1. 관리하는 용도의 Admin Server 프로젝트를 만들어준다. 라이브러리는 다음과 같다.

dependencies{
	implementation 'org.springframework.boot:spring-boot-starter-web'
	implementation 'de.codecentric:spring-boot-admin-starter-server:2.6.6'
}

 

2. 실행 파일에 어노테이션을 추가한다.

@SpringBootApplication
@Configuration
@EnableScheduling
@EnableJpaRepositories	
public class SBAApplication {

	public static void main(String[] args) {
		SpringApplication.run(SBAApplication.class, args);
	}

}

 

3. 관리하려는 프로젝트에 라이브러리를 추가해준다.

	implementation 'de.codecentric:spring-boot-admin-starter-client:2.6.6'

application.yaml에 설정해주고 각각 실행하면 끝

 spring:
  boot:
    admin:
      client:
        url: http://localhost:8080 # admin 프로젝트 url
management:
  endpoints:
    web:
      exposure:
        include:
        - "*"
  info:
    env:
      enabled: true

 

728x90
댓글
250x250
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함