Skip to content

KodeLab

程式筆記、開發心得、個人部落格

  • 首頁
  • 分類目錄
  • 關於本站
  • 隱私權政策

標籤: Profile

  • Home
  • Profile
  • Java教學
  • 程式語言

指定 Spring Boot 執行環境的多種方式

Spring Boot 專案在開發、測試、正式環境通常需要不同的設定值,這篇文章整理 application-{profile}.properties 命名規則、SPRING_PROFILES_ACTIVE 環境變數、spring.config.location 與 additional-location 差別,以及 Spring Boot 2.4 之後新增的 spring.config.import、profile groups、multi-document files 等多種指定 profile 的方式。

2022 年 5 月 10 日2026 年 4 月 19 日

近期文章

  • Claude Opus 4.8 發表|誠實度躍進、Dynamic Workflows 與 Fast Mode 降價
  • CLAUDE.md 寫作指南|Karpathy 原作 vs 社群整理的 4 條原則
  • Claude Code PreToolUse Hook 教學|阻擋 rm -rf、force push 與敏感檔讀寫
  • macOS launchd 服務管理完整解析|2026 最新整理 plist 與 launchctl
  • Claude Code Hooks 教學|用 PostToolUse 自動跑 Prettier 格式化

熱門標籤

Agent AI Anthropic Apple ChatGPT Claude Claude Code Claude Opus CLI Cloud Debian Docker GCP Gemma Git GitHub Hooks Java JavaScript JDK launchctl launchd Linux LLM macOS MariaDB Markdown MIME Type MongoDB MySQL Nginx Ollama OpenAI OpenJDK Parcel Prototype RAG React Spring Spring Boot SSH Swift Ubuntu VM Windows

分類

  • AI應用 (24)
  • JavaScript教學 (6)
  • Java教學 (16)
  • Linux應用 (17)
  • Swift基礎教學 (1)
  • 前端開發 (1)
  • 後端開發 (1)
  • 應用教學 (54)
  • 日常生活 (3)
  • 程式語言 (25)
  • 綜合 (16)
  • 資料庫教學 (9)
  • 開發工具 (2)
  • 雲端應用 (4)
Copyright © 2022-2026 KodeLab | Theme: Moral Magazine Lite By Moral Themes.