본문 바로가기

JeongMin-dev

검색하기
JeongMin-dev
프로필사진 클딧

  • All (21)
    • Java (2)
      • Spring boot (1)
      • JPA (0)
    • Programing (2)
      • IntelliJ (1)
      • Putty (1)
    • Sql (2)
      • Mysql (2)
    • Server (15)
      • AWS (7)
      • Tomcat (1)
      • Let's'Encrypt (2)
    • Etc (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
일 월 화 수 목 금 토
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
Tags
  • https
  • 도메인
  • server
  • 서버
  • 로그
  • 발급
  • 인증서
  • HTTP
  • ssl
  • 재시작
  • reboot
  • Certbot
  • Let's Encrypt
  • 재부팅
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Java/Spring boot (1)

JeongMin-dev

[Spring Boot] application.properties 값 가져오는 방법

Spring Boot에서 application.properties 파일에 정의되어 있는 값을 자바로 가져오는 방법입니다. 값을 가져올 때에는 여러가지 방법이 있는데 그중 application.properties 에서 가져오는 방법을 적어놓았습니다. 1. application.properties 값 세팅 test.url = http://test.com/test test.key = false application.properties 파일에 test.url이라는 프로퍼티를 설정 후 url주소를 입력해 줍니다. 프로퍼티는 여러 가지 값을 세팅할 수 있습니다. 2. 프로퍼티 값 가져오기 @Service @RequiredArgsConstructor @PropertySource("classpath:applicatio..

Java/Spring boot 2023. 7. 11. 14:48
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바