{"id":40205,"date":"2023-01-16T02:27:18","date_gmt":"2022-10-11T10:29:49","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/"},"modified":"2024-01-15T10:32:11","modified_gmt":"2024-01-15T02:32:11","slug":"%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active"},"content":{"rendered":"<p>\u6682\u65f6\u521b\u5efa\u4e00\u4e2a\u968f\u610f\u7684pom.xml\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nt\">&lt;project<\/span> <span class=\"na\">xmlns=<\/span><span class=\"s\">\"http:\/\/maven.apache.org\/POM\/4.0.0\"<\/span> <span class=\"na\">xmlns:xsi=<\/span><span class=\"s\">\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span>\r\n    <span class=\"na\">xsi:schemaLocation=<\/span><span class=\"s\">\"http:\/\/maven.apache.org\/POM\/4.0.0 http:\/\/maven.apache.org\/maven-v4_0_0.xsd\"<\/span><span class=\"nt\">&gt;<\/span>\r\n    <span class=\"nt\">&lt;modelVersion&gt;<\/span>4.0.0<span class=\"nt\">&lt;\/modelVersion&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;groupId&gt;<\/span>kagamihoge<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n    <span class=\"nt\">&lt;artifactId&gt;<\/span>asdasdf<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n    <span class=\"nt\">&lt;version&gt;<\/span>0.0.1-SNAPSHOT<span class=\"nt\">&lt;\/version&gt;<\/span>\r\n    <span class=\"nt\">&lt;packaging&gt;<\/span>war<span class=\"nt\">&lt;\/packaging&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;name&gt;<\/span>asdasdf<span class=\"nt\">&lt;\/name&gt;<\/span>\r\n    <span class=\"nt\">&lt;description&gt;<\/span>Add project description here<span class=\"nt\">&lt;\/description&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;properties&gt;<\/span>\r\n        <span class=\"nt\">&lt;maven.war.filteringDeploymentDescriptors&gt;<\/span>true<span class=\"nt\">&lt;\/maven.war.filteringDeploymentDescriptors&gt;<\/span>\r\n    <span class=\"nt\">&lt;\/properties&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;parent&gt;<\/span>\r\n        <span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n        <span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-parent<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n        <span class=\"nt\">&lt;version&gt;<\/span>1.5.8.RELEASE<span class=\"nt\">&lt;\/version&gt;<\/span>\r\n    <span class=\"nt\">&lt;\/parent&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;dependencies&gt;<\/span>\r\n        <span class=\"nt\">&lt;dependency&gt;<\/span>\r\n            <span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n            <span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-starter-web<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n        <span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n        <span class=\"nt\">&lt;dependency&gt;<\/span>\r\n            <span class=\"nt\">&lt;groupId&gt;<\/span>org.springframework.boot<span class=\"nt\">&lt;\/groupId&gt;<\/span>\r\n            <span class=\"nt\">&lt;artifactId&gt;<\/span>spring-boot-devtools<span class=\"nt\">&lt;\/artifactId&gt;<\/span>\r\n        <span class=\"nt\">&lt;\/dependency&gt;<\/span>\r\n    <span class=\"nt\">&lt;\/dependencies&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;profiles&gt;<\/span>\r\n        <span class=\"nt\">&lt;profile&gt;<\/span>\r\n            <span class=\"nt\">&lt;id&gt;<\/span>hoge<span class=\"nt\">&lt;\/id&gt;<\/span>\r\n            <span class=\"nt\">&lt;properties&gt;<\/span>\r\n                <span class=\"nt\">&lt;spring_profile_value&gt;<\/span>hoge_profile<span class=\"nt\">&lt;\/spring_profile_value&gt;<\/span>\r\n            <span class=\"nt\">&lt;\/properties&gt;<\/span>\r\n        <span class=\"nt\">&lt;\/profile&gt;<\/span>\r\n    <span class=\"nt\">&lt;\/profiles&gt;<\/span>\r\n<span class=\"nt\">&lt;\/project&gt;<\/span>\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u4f7f\u7528&#8230;\uff0c\u53ef\u4ee5\u4f7fmaven-war-plugin\u66ff\u6362web.xml\u4e2d\u7684\u5360\u4f4d\u7b26\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"cp\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/span>\r\n<span class=\"nt\">&lt;web-app<\/span> <span class=\"na\">xmlns=<\/span><span class=\"s\">\"http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\"<\/span> <span class=\"na\">xmlns:xsi=<\/span><span class=\"s\">\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"<\/span>\r\n    <span class=\"na\">xsi:schemaLocation=<\/span><span class=\"s\">\"http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\r\n                             http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\/web-app_3_1.xsd\"<\/span>\r\n    <span class=\"na\">version=<\/span><span class=\"s\">\"3.1\"<\/span><span class=\"nt\">&gt;<\/span>\r\n\r\n    <span class=\"nt\">&lt;context-param&gt;<\/span>\r\n        <span class=\"nt\">&lt;param-name&gt;<\/span>spring.profiles.active<span class=\"nt\">&lt;\/param-name&gt;<\/span>\r\n        <span class=\"nt\">&lt;param-value&gt;<\/span>@spring_profile_value@<span class=\"nt\">&lt;\/param-value&gt;<\/span>\r\n    <span class=\"nt\">&lt;\/context-param&gt;<\/span>\r\n\r\n<span class=\"nt\">&lt;\/web-app&gt;<\/span>\r\n<\/code><\/pre>\n<p>\u5728web.xml\u7684context-param\u4e2d\u6307\u5b9a\u7531Maven\u7684profile\u6307\u5b9a\u7684spring.profiles.active\u3002\u5728Spring Boot\u4e2d\uff0cMaven\u7684\u5360\u4f4d\u7b26\u5f15\u7528\u4e0d\u662f${&#8230;}\uff0c\u800c\u662f@&#8230;@\u3002<\/p>\n<p>\u53ea\u9700\u8981\u8fdb\u884cmvn package -P hoge\u7b49\u64cd\u4f5c\uff0c\u751f\u6210\u7684war\u5305\u4e2d\u7684web.xml\u5c06\u4f1a\u662f\u8fd9\u6837\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nt\">&lt;context-param&gt;<\/span>\r\n    <span class=\"nt\">&lt;param-name&gt;<\/span>spring.profiles.active<span class=\"nt\">&lt;\/param-name&gt;<\/span>\r\n    <span class=\"nt\">&lt;param-value&gt;<\/span>hoge_profile<span class=\"nt\">&lt;\/param-value&gt;<\/span>\r\n<span class=\"nt\">&lt;\/context-param&gt;<\/span>\r\n<\/code><\/pre>\n<p>\u7136\u800c\uff0c\u5373\u4f7f\u5728\u53c2\u8003\u7684&#8221;How to set spring active profiles with maven profiles&#8221;\u4e2d\u4e5f\u63d0\u5230\uff0c\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u5207\u6362\u6d3b\u52a8\u914d\u7f6e\u6587\u4ef6\u5e76\u4e0d\u7b97\u7f8e\u89c2\u3002\u539f\u56e0\u662f\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u6bcf\u4e2a\u73af\u5883\u751f\u6210\u4e0d\u540c\u5185\u5bb9\u7684war\u6587\u4ef6\uff0c\u800c\u6700\u597d\u53ea\u6709\u4e00\u4e2a\u6700\u7ec8\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u51cf\u5c11\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p>\u6211\u60f3\u8bf4\u7684\u662f\u867d\u7136\u73b0\u5b9e\u4e16\u754c\u6709\u8bb8\u591a\u4e0d\u540c\u7684\u60c5\u51b5\uff0c\u4e0d\u80fd\u4e00\u6982\u800c\u8bba\u901a\u8fc7web.xml\u8fdb\u884c\u6307\u5b9a\u662f\u4e0d\u597d\u7684\u3002<\/p>\n<h3>\u8bf7\u63d0\u4f9b\u7f51\u5740\u53c2\u8003\u3002<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/stackoverflow.com\/questions\/25420745\/how-to-set-spring-active-profiles-with-maven-profiles<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/stackoverflow.com\/questions\/15355708\/how-to-replace-a-value-in-web-xml-with-a-maven-property<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/memorynotfound.com\/servlet-3-web-xml-example-configuration\/<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6682\u65f6\u521b\u5efa\u4e00\u4e2a\u968f\u610f\u7684pom.xml\u3002 &lt;project xmlns=&#8221;http:\/\/maven.apach [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40205","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u65f6\uff0c\u901a\u8fc7web-xml\u7684context-param\u6765\u6307\u5b9aspring-profiles-active\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active\" \/>\n<meta property=\"og:description\" content=\"\u6682\u65f6\u521b\u5efa\u4e00\u4e2a\u968f\u610f\u7684pom.xml\u3002 &lt;project xmlns=&quot;http:\/\/maven.apach [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u65f6\uff0c\u901a\u8fc7web-xml\u7684context-param\u6765\u6307\u5b9aspring-profiles-active\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-11T10:29:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T02:32:11+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/\",\"name\":\"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-10-11T10:29:49+00:00\",\"dateModified\":\"2024-01-15T02:32:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u65f6\uff0c\u901a\u8fc7web-xml\u7684context-param\u6765\u6307\u5b9aspring-profiles-active\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active","og_description":"\u6682\u65f6\u521b\u5efa\u4e00\u4e2a\u968f\u610f\u7684pom.xml\u3002 &lt;project xmlns=\"http:\/\/maven.apach [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528spring-boot\u65f6\uff0c\u901a\u8fc7web-xml\u7684context-param\u6765\u6307\u5b9aspring-profiles-active\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-11T10:29:49+00:00","article_modified_time":"2024-01-15T02:32:11+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/","name":"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-10-11T10:29:49+00:00","dateModified":"2024-01-15T02:32:11+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Spring Boot\u65f6\uff0c\u901a\u8fc7web.xml\u7684context-param\u6765\u6307\u5b9aspring.profiles.active"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8spring-boot%e6%97%b6%ef%bc%8c%e9%80%9a%e8%bf%87web-xml%e7%9a%84context-param%e6%9d%a5%e6%8c%87%e5%ae%9aspring-profiles-active%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40205"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40205\/revisions"}],"predecessor-version":[{"id":58653,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40205\/revisions\/58653"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}