프로젝트시 spring boot 버전을 확인해야 할 경우가 있다.
버전을 확인하는 방법은 여러 가지가 있으므로 아래의 방법 중 하나로 버전 확인.
1. build.gradle 파일에서 확인하는 방법(Gradle 사용 시)
Gradle을 사용할 경우 build.gradle 파일에서 spring boot version을 확인.

2. 커맨드 라인에서 확인
프로젝트 디렉토리에서 터미널을 열고 아래 명령어를 실행하여 확인.
./gradlew -v # Gradle을 사용할 경우
3. Project Structure에서 확인
File > Project Structure > Project Settings > Modules > main > Dependencies
Project Structure의 Dependencies 목록에서 버전을 확인.

동일한 방법으로 오른쪽 상단의 버튼으로도 Edit Configurations 설정이 가능하며, 단축키로는 cmd + ; 사용.

4. External Libraries에서 확인
Intellij 왼쪽 파일 목록에서 External Libraries 항목에서 버전 확인.

5. Spring boot 실행 시, 콘솔창에서 확인

6. Spring Boot Actuator 사용 시 엔드포인트에서 버전 정보 확인
spring boot actuator를 사용하면 /actuator 엔드포인트에서 애플리케이션 정보를 조회할 수 있다.
이 경우 /actuator/info 또는 /actuator/health 엔드포인트에서 버전 정보를 확인할 수 있다.
management.endpoints.web.exposure.include=info,health //properties
'Back > Intellij' 카테고리의 다른 글
| [Intellij] Intellij 자동 빌드(Auto Compile) 옵션 설정 / DevTools (0) | 2025.03.27 |
|---|---|
| [Intellij] Intellij 자동 완성 해결 방법 (0) | 2025.03.13 |