Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ガイドのJava編にapplication.propertiesを環境ごとに切り分ける方法を追加する #1958

Open
1 task
kenjiyoshid-a opened this issue Feb 5, 2025 · 0 comments
Labels
target: ガイド/AP開発手順 ドキュメントのガイド/アプリケーション開発手順に関係がある

Comments

@kenjiyoshid-a
Copy link
Contributor

概要

ガイド > アプリケーション開発手順 > Java 編に Spring Boot などの設定を記述する application.properties を動作環境ごとに切り分ける方法が明記されていないため、追記したい。

詳細 / 機能詳細(オプション)

追記する場所としては、ガイド > アプリケーション開発手順 > Java 編 > プロジェクトの共通設定が適当である。
追記内容としては、切り分ける方法、どのようなファイルに切り分けるべきか、それぞれのファイルの役割についてである。その例を以下に示す。

切り分けるpropertiesファイルとその役割

  • application.properties (環境ごとに適用するpropertiesファイルを設定)
  • application-dev.properties(開発環境で使用する設定)
  • application-prd.properties(本番環境で使用する設定)
  • application-ut.properties(テスト環境で使用する設定)
  • application-common.properties(全ての環境で使用する共通設定)

完了条件

  • ガイドに環境ごとの application.properties を設定する方法が明記されている。
@kenjiyoshid-a kenjiyoshid-a added not triaged 精緻化、分析がされていない target: ガイド/AP開発手順 ドキュメントのガイド/アプリケーション開発手順に関係がある and removed not triaged 精緻化、分析がされていない labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target: ガイド/AP開発手順 ドキュメントのガイド/アプリケーション開発手順に関係がある
Projects
None yet
Development

No branches or pull requests

1 participant