---
schema_version: "1"
id: e952b9f7df43717c43d48968ed6e70a66ca532b914332dfb7991bb1129adce24
title: Spring 設定用のプレースホルダーの作成
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-runtime/4.3/mule-app-property-placeholders-spring.md
canonical_url: https://docs.mulesoft.com/jp/mule-runtime/4.3/mule-app-property-placeholders-spring
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f37a20586bd68b4282874d9fce894830e0cc26008e3e3c5563058bf085883be1
description: MuleSoft Documentation Site
release: "4.3"
latest: false
---
# Spring 設定用のプレースホルダーの作成

Mule アプリケーションの Spring Module はすべての種類の Spring 設定を使用できます。Spring プロパティプレースホルダーは ​`.properties`​ ファイル (たとえば、​`spring-properties.properties`​) で設定できます。このファイルは、Spring Module と完全に相互運用可能です。

このファイルのプロパティは次の形式になります。

springPropertyA=springPropertyAValue
springPropertyB=springPropertyBValue

Anypoint Studio では、ファイルは Mule アプリケーションのプロジェクトディレクトリに保存する必要があります。

- `/src/main/resources`

設定プロパティと呼ばれるグローバル要素を通じて ​`.properties`​ ファイルを Mule アプリケーションに追加できます。この要素の XML は次のようになります。

`<configuration-properties file="spring-properties.properties" doc:name="Spring Property Placeholders" doc:id="07ee5c11-bc54-4d55-91b8-ce02f743cb7a" />`

YAML ファイルを使用して Spring プロパティプレースホルダーを作成することはできませんが、Spring 以外のモジュールでは可能です。

## [](#関連情報)関連情報

- [プロパティの設定](https://docs.mulesoft.com/jp/mule-runtime/4.3/configuring-properties)
- [Mule アプリケーション用のプロパティプレースホルダーの作成](https://docs.mulesoft.com/jp/mule-runtime/4.3/mule-app-properties-to-configure)