legacy-knowledge-base
公開されました Sep. 10, 2025

.configファイルの助けを借りて、1つの設定値を変更することはできますか?

written-by

Tímea Bihari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • .configファイルの助けを借りて、1つの設定値だけを変更したい。
  • .configファイルにこの1つの値を入力することが可能なのか、それともファイルにすべての設定が含まれていなければならないのか、知りたいのです。

環境

  • Liferay DXP 7.0+

解像度

  • はい、.configファイルに1つだけ(またはいくつか)の設定値を入力することは可能で、それらの値は必要に応じて適用されます。
  • 次のシナリオを考えてみてほしい:
  1. クリーンなLiferay 7.2環境を起動する
  2. コントロールパネルに移動 > システム設定 > テンプレートエンジン > FreeMarker エンジン
  3. 一番下までスクロールすると、テンプレート例外ハンドラのデフォルト値が "rethrow "であることがわかる。
  4. osgiconfigs に、com.liferay.portal.template.freemarker.configuration.FreeMarkerEngineConfiguration.configという名前の .config ファイルを追加し、次のエントリのみを追加します。
  5. ポータルを再起動する
  6. コントロールパネルに移動 > システム設定 > テンプレートエンジン > FreeMarker エンジン

結果:Template Exception Handlerの値が "ignore "に変更されました。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base