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 日

近期文章

  • Anthropic 與 Claude 模型入門指南|公司歷程、模型等級與版本演進時間線
  • Cloudflare與Nginx反向代理|CF-Connecting-IP、X-Forwarded-For 取得真實IP
  • Java 21 全新 Virtual Threads 教學|JDK 21 虛擬執行緒與 Thread Pool 比較
  • Snowflake ID 深入解析|位元結構、各家變體與選型取捨
  • UUID 版本演進與 ULID 完整指南|v1 到 v7 差異與資料庫主鍵選擇

熱門標籤

Agent AI Anthropic Apple ChatGPT Claude Claude Code Claude Opus CLI Cloud Codex Debian Docker Gemma Git GitHub Hooks iOS Java JavaScript JDK launchctl launchd Linux LLM macOS MariaDB Markdown MongoDB MySQL Nginx Ollama OpenAI OpenJDK prompt cache Rate Limit React Spring Spring Boot SSH Ubuntu UUID VM 分散式系統 後端開發

分類

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