{"id":39965,"date":"2023-11-30T14:28:53","date_gmt":"2022-11-01T04:11:08","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/"},"modified":"2024-05-04T11:31:41","modified_gmt":"2024-05-04T03:31:41","slug":"%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/","title":{"rendered":"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09"},"content":{"rendered":"<p>\u542c\u8bf4\u5728Spring Boot 1.2\u4e2d\uff0c\u5c06ISO-8859-1\u8986\u76d6\u4e3aUTF-8\uff0c\u6240\u4ee5\u5982\u679c\u662f1.2\u4e4b\u524d\u7684\u7248\u672c\uff0c\u597d\u50cf\u53ea\u9700\u8981\u5347\u7ea7\u52301.2\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h2>\u7b2c\u4e00\u7bc7\u53c2\u8003\u6587\u732e<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Spring Boot 1.2 \u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/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\">gh-1800 &#8211; Issue<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Override StringHttpMessageConverter with UTF-8 &#8211; Commit<\/ul>\n<h2>\u7b2c\u4e8c\u7bc7\u53c2\u8003\u6587\u732e<\/h2>\n<p>\u53ef\u80fd\u6d89\u53ca\u7684\u4e8b\u60c5\uff1a<br \/>\n&#8211; \u6839\u636eRFC\uff0ctext\/*\u7684\u9ed8\u8ba4\u7f16\u7801\u662fISO-8859-1 &#8211; tototoshi\u7684\u65e5\u5fd7<br \/>\n&#8211; http:\/\/stackoverflow.com\/questions\/20168563\/spring-boot-utf-8-resources<br \/>\n&#8211; http:\/\/stackoverflow.com\/questions\/20935969\/make-responsebody-annotated-spring-boot-mvc-controller-methods-return-utf-8<\/p>\n<h2>\u7b2c\u4e09\u4e2a\u6587\u732e\u7684\u5f15\u7528<\/h2>\n<p>\u90a3\u4e9b\u770b\u4f3c\u6709\u5173\u8054\u4f46\u5b9e\u9645\u4e0a\u5e76\u65e0\u5173\u7cfb\u7684\u4e1c\u897f<br \/>\n&#8211; http:\/\/stackoverflow.com\/questions\/24670446\/utf-8-encoding-with-spring-boot-1-1-1<br \/>\n&#8211; http:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/htmlsingle\/#common-application-properties<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u542c\u8bf4\u5728Spring Boot 1.2\u4e2d\uff0c\u5c06ISO-8859-1\u8986\u76d6\u4e3aUTF-8\uff0c\u6240\u4ee5\u5982\u679c\u662f1.2\u4e4b\u524d\u7684\u7248\u672c\uff0c\u597d [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39965","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>\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09 - 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\/\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3autf-8\uff08\u4f7f\u7528spring-boot\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09\" \/>\n<meta property=\"og:description\" content=\"\u542c\u8bf4\u5728Spring Boot 1.2\u4e2d\uff0c\u5c06ISO-8859-1\u8986\u76d6\u4e3aUTF-8\uff0c\u6240\u4ee5\u5982\u679c\u662f1.2\u4e4b\u524d\u7684\u7248\u672c\uff0c\u597d [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3autf-8\uff08\u4f7f\u7528spring-boot\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-01T04:11:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T03:31:41+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/\",\"name\":\"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-01T04:11:08+00:00\",\"dateModified\":\"2024-05-04T03:31:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09 - 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\/\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3autf-8\uff08\u4f7f\u7528spring-boot\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09","og_description":"\u542c\u8bf4\u5728Spring Boot 1.2\u4e2d\uff0c\u5c06ISO-8859-1\u8986\u76d6\u4e3aUTF-8\uff0c\u6240\u4ee5\u5982\u679c\u662f1.2\u4e4b\u524d\u7684\u7248\u672c\uff0c\u597d [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3autf-8\uff08\u4f7f\u7528spring-boot\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-01T04:11:08+00:00","article_modified_time":"2024-05-04T03:31:41+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/","name":"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-01T04:11:08+00:00","dateModified":"2024-05-04T03:31:41+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5907\u5fd8\u5f55\uff1a\u5c06\u54cd\u5e94\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5207\u6362\u4e3aUTF-8\uff08\u4f7f\u7528Spring Boot\uff09"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a4%87%e5%bf%98%e5%bd%95%ef%bc%9a%e5%b0%86%e5%93%8d%e5%ba%94%e7%9a%84%e9%bb%98%e8%ae%a4%e5%ad%97%e7%ac%a6%e9%9b%86%e5%88%87%e6%8d%a2%e4%b8%bautf-8%ef%bc%88%e4%bd%bf%e7%94%a8spring-boot%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39965","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39965"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39965\/revisions"}],"predecessor-version":[{"id":98067,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39965\/revisions\/98067"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}