입력

출력 결과

변환 결과 대기 중...

사용 예제

Properties 파일 예제

# 서버 설정
server.port=8080
server.servlet.context-path=/api

# 데이터베이스 설정
spring.datasource.url=jdbc:mysql://localhost:3306/mydb
spring.datasource.username=root
spring.datasource.password=password123

# JPA 설정
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect

# 로깅 설정
logging.level.com.example=DEBUG
logging.level.org.springframework.web=INFO

YAML 파일 예제

server:
  port: 8080
  servlet:
    context-path: /api

spring:
  datasource:
    url: jdbc:mysql://localhost:3306/mydb
    username: root
    password: password123
  jpa:
    hibernate:
      ddl-auto: update
    show-sql: true
    properties:
      hibernate:
        dialect: org.hibernate.dialect.MySQL8Dialect

logging:
  level:
    com:
      example: DEBUG
    org:
      springframework:
        web: INFO

Spring Boot 설정 예제

# 프로파일 설정
spring.profiles.active=dev
spring.application.name=my-app

# 웹 설정
spring.mvc.view.prefix=/WEB-INF/views/
spring.mvc.view.suffix=.jsp

# 메시지 설정
spring.messages.basename=messages
spring.messages.encoding=UTF-8

# 액추에이터 설정
management.endpoints.web.exposure.include=health,info,metrics
management.endpoint.health.show-details=always

사용법 및 도움말

Properties 형식

  • 키=값 형태로 구성됩니다
  • 점(.)으로 계층 구조를 표현합니다
  • # 기호로 주석을 작성할 수 있습니다
  • 한 줄에 하나의 속성을 정의합니다

YAML 형식

  • 들여쓰기로 계층 구조를 표현합니다
  • 콜론(:)으로 키와 값을 구분합니다
  • # 기호로 주석을 작성할 수 있습니다
  • 공백과 들여쓰기가 중요합니다

Spring Boot 활용

  • application.properties ↔ application.yml 변환
  • 프로파일별 설정 파일 관리
  • 환경별 설정 분리 및 관리
  • 복잡한 설정 구조 정리

변환 팁

  • 변환 전 형식이 올바른지 확인하세요
  • 특수 문자는 따옴표로 감싸주세요
  • 여러 줄 텍스트는 주의해서 처리하세요
  • 변환 후 결과를 검토해주세요