{"id":930,"date":"2025-07-04T13:18:21","date_gmt":"2025-07-04T04:18:21","guid":{"rendered":"http:\/\/www.freesens.com\/x\/?p=930"},"modified":"2025-07-04T13:18:22","modified_gmt":"2025-07-04T04:18:22","slug":"properties-to-yml-%eb%b3%80%ed%99%98","status":"publish","type":"post","link":"http:\/\/www.freesens.com\/x\/?p=930","title":{"rendered":"properties to yml \ubcc0\ud658"},"content":{"rendered":"\n<p>Spring Boot\ub85c \ucd08\uac04\ub2e8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc9c4\ud589\ud560 \uc77c\uc774 \uc788\uc5b4\uc11c&nbsp;<a href=\"https:\/\/start.spring.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">spring initializr<\/a>\uc5d0\uc11c Gradle + Java 21 + Spring Boot 4.0.0\uc73c\ub85c \uae30\ubcf8\uc14b \uad6c\uc131 \ud6c4 \ud30c\uc77c\uc744 \ubc1b\uc558\ub294\ub370, application.properties \ud30c\uc77c\uc774 \uae30\ubcf8\uc73c\ub85c \uc0dd\uc131\ub418\uc5b4 \uc788\ub294\uac8c \uc544\ub2cc\uac00?<\/p>\n\n\n\n<p>\uac1c\uc778\uc801\uc73c\ub85c yml(yaml) \ud30c\uc77c\uc774 \ubc18\ubcf5\uc801\uc778 \ud0c0\uc774\ud551 \uc5c6\uc5b4\uc11c \uc120\ud638\ud558\ub294 \uad00\uacc4\ub85c application.properties \ud30c\uc77c\uc744 application.yml\ud30c\uc77c\ub85c \ubcc0\ud658\ud558\ub824\uace0 \ucc3e\uc544\ubcf4\ub2c8, spring boot\ub294 *.properties \/ *.yml \ubaa8\ub450 \uc9c0\uc6d0\ud558\ub2c8 \uadf8\ub0e5 \ud615\uc2dd\uc5d0 \ub9de\uac8c \ubcc0\ud658 \u3131\u3131 \ud558\uba74\uc11c \uac04\ub7b5\ud788 \uc694\uc57d \uc815\ub9ac.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/blog.kakaocdn.net\/dna\/bhcit6\/btsO4IbjJP4\/AAAAAAAAAAAAAAAAAAAAAPq3mLFOvJLDcPOM498U7J_9F3kgNa731PgQcm48FZCY\/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&amp;expires=1753973999&amp;allow_ip=&amp;allow_referer=&amp;signature=OUuzQ7oakXphN2xNzCh%2FgmH4GmU%3D\" alt=\"YAML to Properties Converter Online for MAGEDDO\n\nhttps:\/\/mageddo.com\/tools\/yaml-converter\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">1. Properties\uc640 YML \ud30c\uc77c\uc758 \ucc28\uc774\uc810<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Properties<\/strong>: \ud0a4-\uac12 \uc30d\uc73c\ub85c \uad6c\uc131\ub41c \ub2e8\uc21c \ud14d\uc2a4\ud2b8 \ud30c\uc77c (\uc608:\u00a0key=value).<\/li>\n\n\n\n<li><strong>YML<\/strong>: \uacc4\uce35\uc801 \uad6c\uc870\ub97c \uc9c0\uc6d0\ud558\ub294 \uac00\ub3c5\uc131 \ub192\uc740 \ub370\uc774\ud130 \uc9c1\ub82c\ud654 \ud615\uc2dd (YAML Ain\u2019t Markup Language).<\/li>\n\n\n\n<li>\ubcc0\ud658 \uc774\uc720: YML\uc740 \uacc4\uce35 \uad6c\uc870 \ud45c\ud604\uc774 \uc6a9\uc774\ud558\uace0, \uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ub4f1\uc5d0\uc11c \uae30\ubcf8 \uc9c0\uc6d0.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. \ubcc0\ud658 \ubc29\ubc95<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">(1) \uc218\ub3d9 \ubcc0\ud658<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Properties \ud30c\uc77c \ud655\uc778<\/strong>: \uc608\ub97c \ub4e4\uc5b4,\u00a0application.properties:<\/li>\n<\/ul>\n\n\n\n<pre id=\"code_1751594678487\" class=\"wp-block-preformatted\">server.port=8080\nspring.application.name=testApp\nspring.datasource.url=jdbc:mysql:<em>\/\/localhost:3306\/test<\/em>\nspring.datasource.username={id}\nspring.datasource.password={pwd}<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>YML \uad6c\uc870\ub85c \ubcc0\ud658<\/strong>: \uacc4\uce35 \uad6c\uc870\ub97c \ubc18\uc601\ud574\u00a0application.yml\u00a0\uc791\uc131:<\/li>\n<\/ul>\n\n\n\n<pre id=\"code_1751595146938\" class=\"wp-block-preformatted\"><br>server:\n  port: 8080\n  \nspring:\n  application:\n    name: testApp\n  datasource:\n    url: jdbc:mysql:\/\/localhost:3306\/test\n    username: {id}\n    password: {pwd}<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\uc8fc\uc758\uc0ac\ud56d<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Properties\uc758 \uc810(.)\uc740 YML\uc5d0\uc11c \uacc4\uce35\uc744 \ub098\ud0c0\ub0b4\ub294 \ub4e4\uc5ec\uc4f0\uae30\ub85c \ubcc0\ud658.<\/li>\n\n\n\n<li>YML\uc740 \uacf5\ubc31\uc5d0 \ubbfc\uac10\ud558\ubbc0\ub85c, 2\uce78 \ub4e4\uc5ec\uc4f0\uae30\ub97c \uc900\uc218.<\/li>\n\n\n\n<li>\ub9ac\uc2a4\ud2b8\ub294 \ud558\uc774\ud508(-)\uc73c\ub85c \ud45c\ud604 (\uc608:\u00a0list: &#8211; item1 &#8211; item2).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">(2) \uc790\ub3d9 \ubcc0\ud658 \ub3c4\uad6c<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\uc628\ub77c\uc778 \ubcc0\ud658\uae30<\/strong>:\u00a0<a href=\"https:\/\/mageddo.com\/tools\/yaml-converter\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/mageddo.com\/tools\/yaml-converter<\/a>\u00a0\uac19\uc740 \uc6f9\uc0ac\uc774\ud2b8 \ud65c\uc6a9.<\/li>\n\n\n\n<li><strong>IDE \ud50c\ub7ec\uadf8\uc778<\/strong>: IntelliJ IDEA\uc5d0\uc11c\u00a0Properties to YAML Converter\u00a0\ud50c\ub7ec\uadf8\uc778 \uc124\uce58 \ud6c4 \ubcc0\ud658.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. \ubcc0\ud658 \uc2dc \uc8fc\uc758\uc0ac\ud56d<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ud0a4 \uc774\ub984 \ucda9\ub3cc<\/strong>: Properties\ub294 \uc911\ubcf5 \ud0a4\ub97c \ud5c8\uc6a9\ud558\ub098, YML\uc740 \ud5c8\uc6a9\ud558\uc9c0 \uc54a\uc74c.<\/li>\n\n\n\n<li><strong>\ud2b9\uc218 \ubb38\uc790<\/strong>: Properties\uc5d0\uc11c \uc0ac\uc6a9\ub41c \ud2b9\uc218 \ubb38\uc790\ub294 YML\uc5d0\uc11c \uc774\uc2a4\ucf00\uc774\ud504 \ucc98\ub9ac.<\/li>\n\n\n\n<li><strong>\uc2a4\ud504\ub9c1 \ubd80\ud2b8 \ud638\ud658\uc131<\/strong>: YML \ud30c\uc77c\uc740\u00a0application.yml\ub85c \uc800\uc7a5\ud574 \uc2a4\ud504\ub9c1 \ubd80\ud2b8\uc5d0\uc11c \uc790\ub3d9 \uc778\uc2dd.<\/li>\n\n\n\n<li><strong>\uac80\uc99d<\/strong>: \ubcc0\ud658 \ud6c4 YML \ud30c\uc77c\uc744\u00a0yamllint\ub85c \uc720\ud6a8\uc131 \uac80\uc0ac.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot\ub85c \ucd08\uac04\ub2e8 \ud504\ub85c\uc81d\ud2b8\ub97c \uc9c4\ud589\ud560 \uc77c\uc774 \uc788\uc5b4\uc11c&nbsp;spring initializr\uc5d0\uc11c Gradle + Java 21 + Spring Boot 4.0.0\uc73c\ub85c \uae30\ubcf8\uc14b \uad6c\uc131 \ud6c4 \ud30c\uc77c\uc744 \ubc1b\uc558\ub294\ub370, application.properties \ud30c\uc77c\uc774 \uae30\ubcf8\uc73c\ub85c \uc0dd\uc131\ub418\uc5b4 \uc788\ub294\uac8c \uc544\ub2cc\uac00? \uac1c\uc778\uc801\uc73c\ub85c yml(yaml) \ud30c\uc77c\uc774 \ubc18\ubcf5\uc801\uc778 \ud0c0\uc774\ud551 \uc5c6\uc5b4\uc11c \uc120\ud638\ud558\ub294 \uad00\uacc4\ub85c application.properties \ud30c\uc77c\uc744 application.yml\ud30c\uc77c\ub85c \ubcc0\ud658\ud558\ub824\uace0 \ucc3e\uc544\ubcf4\ub2c8, spring boot\ub294 *.properties \/ *.yml \ubaa8\ub450 \uc9c0\uc6d0\ud558\ub2c8 \uadf8\ub0e5 \ud615\uc2dd\uc5d0 \ub9de\uac8c \ubcc0\ud658 \u3131\u3131 \ud558\uba74\uc11c \uac04\ub7b5\ud788 \uc694\uc57d &hellip; <a href=\"http:\/\/www.freesens.com\/x\/?p=930\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">properties to yml \ubcc0\ud658<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[371,4],"tags":[373,291,372,375,374],"class_list":["post-930","post","type-post","status-publish","format-standard","hentry","category-back-end","category-development","tag-properties","tag-spring-boot","tag-springboot","tag-yaml","tag-yml"],"_links":{"self":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts\/930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=930"}],"version-history":[{"count":1,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":931,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts\/930\/revisions\/931"}],"wp:attachment":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}