1import{B as e,et as t,mt as n,tt as r}from"./chunks/framework.Bgbhl1zx.js";var i=JSON.parse(`{"title":"Request Header is Too Large","description":"","frontmatter":{"title":"Request Header is Too Large","date":"2024-03-26T23:00+09:00","tags":["HTTP","Spring Boot","ì¹ ìë²"]},"headers":[],"relativePath":"posts/request-header-is-too-large.md","filePath":"posts/request-header-is-too-large.md","lastUpdated":1791240792000}`),a={name:`posts/request-header-is-too-large.md`};function o(e,i,a,o,s,c){return n(),t(`div`,null,[...i[0]||=[r(`<blockquote><p>java.lang.IllegalArgumentException: Request header is too large</p></blockquote><div class="language-java"><button title="Copy Code" class="copy"></button><span class="lang">java</span><pre class="shiki shiki-themes github-light github-dark" style="--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e;" tabindex="0" dir="ltr"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">@</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">GetMapping</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"/by-ids"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span> 2<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">List</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"><</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">User</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">></span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> getUsers</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(@</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">RequestParam</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">name</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "ids"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">String</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">[] ids) {</span></span> 3<span class="line"><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> List.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">of</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">();</span></span> 4<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>ìì ê°ì GET APIë ids íë¼ë¯¸í°ì ëí ê¸¸ì´ ì íì ëì§ ììì¼ë¯ë¡ Request header is too large ì ëí ì·¨ì½ì ì´ ë´ì¬ëì´ìë ìíë¡ ë³¼ ì ìë¤. ê·¸ë ë¤ë©´ ì´ì ëí 문ì ë ì´ë»ê² ì²ë¦¬íë ê²ì´ ì¢ìê¹?</p><h4 id="áá ¥áºáá ¥á«áá ¢-áá ¥áá ¥áá ¦áá ¥-áá ¥á á µáá ¡áá ³á«-áá ¦áá ¥-áá ³áá µ-áá ¡áá µáá ³á á ³á¯-áá ³á¯á á µáá ¡" tabindex="-1">첫ë²ì§¸, ìë²ìì ì²ë¦¬íë í¤ë í¬ê¸° ì¬ì´ì¦ë¥¼ ë리ì <a class="header-anchor" href="#áá ¥áºáá ¥á«áá ¢-áá ¥áá ¥áá ¦áá ¥-áá ¥á á µáá ¡áá ³á«-áá ¦áá ¥-áá ³áá µ-áá ¡áá µáá ³á á ³á¯-áá ³á¯á á µáá ¡" aria-label="Permalink to â첫ë²ì§¸, ìë²ìì ì²ë¦¬íë í¤ë í¬ê¸° ì¬ì´ì¦ë¥¼ ë리ìâ">â</a></h4><p>기본ì ì¸ í´ê²°ë°©ë²ì ìê°ë³´ë¤ ìê² ì¤ì ëì´ìë í¤ë í¬ê¸°ë¥¼ ì´ëì ë ë리ë ê²ì´ë¤. ë¤ë§, ì¬ì í ììí ì ìë í¤ë í¬ê¸°ë¥¼ 커ë²í ì ìì¼ë©° ì´ì ëí ëìì¼ë¡ë GET ìì²ì´ ìë POST ìì²ì íì©í´ì¼íë¤. ìì² í¤ë í¬ê¸°ì ëí ì íì ë리ë ë°©ìì ìì ì¡°ì¹ìì ìì§ ë§ì.</p><div class="language-yml"><button title="Copy Code" class="copy"></button><span class="lang">yml</span><pre class="shiki shiki-themes github-light github-dark" style="--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e;" tabindex="0" dir="ltr"><code><span class="line"><span style="--shiki-light:#11782a;--shiki-dark:#85E89D;">server.max-http-request-header-size</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">10MB</span></span></code></pre></div><h4 id="áá ®áá ¥á«áá ¢-url-áá µá«áá ©áá µá¼-áá ¡á¼áá µá¨áá ´-áá ©á·-áá ¦áá µáá ¥á á ³á¯-áá ¥á«áá ¡á¯áá ¡áá ¡" tabindex="-1">ëë²ì§¸, URL ì¸ì½ë© ë°©ìì í¼ ë°ì´í°ë¥¼ ì ë¬íì <a class="header-anchor" href="#áá ®áá ¥á«áá ¢-url-áá µá«áá ©áá µá¼-áá ¡á¼áá µá¨áá ´-áá ©á·-áá ¦áá µáá ¥á á ³á¯-áá ¥á«áá ¡á¯áá ¡áá ¡" aria-label="Permalink to âëë²ì§¸, URL ì¸ì½ë© ë°©ìì í¼ ë°ì´í°ë¥¼ ì ë¬íìâ">â</a></h4><p>GET ìì² ì 쿼리 íë¼ë¯¸í°ê° ë무 길ì´ì§ ì ìë¤ë©´ í¼ ë°ì´í° íìì¼ë¡ ë³´ë¼ ì ìëë¡ <strong>POST ìì²ì ëí´ìë ì§ì</strong>íë©´ ëë¤.</p><div class="language-java"><button title="Copy Code" class="copy"></button><span class="lang">java</span>
4<pre class="shiki shiki-themes github-light github-dark" style="--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e;" tabindex="0" dir="ltr"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">@</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">GetMapping</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">path</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "/by-ids"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span> 5<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">List</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"><</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">User</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">></span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> getUsers</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(@</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">RequestParam</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">name</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "ids"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">String</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">[] ids) {</span></span> 6<span class="line"><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> List.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">of</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">();</span></span> 7<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span> 8<span class="line"></span> 9<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">@</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">PostMapping</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">path</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "/by-ids"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">consumes</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {MediaType.APPLICATION_FORM_URLENCODED_VALUE})</span></span> 10<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">List</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"><</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">User</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">></span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> getUsersUsingFormData</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(@</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">RequestParam</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">name</span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> =</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "ids"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) </span><span style="--shiki-light:#c62739;--shiki-dark:#F97583;">String</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">[] ids) {</span></span> 11<span class="line"><span style="--shiki-light:#c62739;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> getUsers</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(ids);</span></span> 12<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h4 id="áá ¡á·áá ©áá ¡á¯áá ¡á«áá ¡á«-á á µá¼áá ³" tabindex="-1">ì°¸ê³ í ë§í ë§í¬ <a class="header-anchor" href="#áá ¡á·áá ©áá ¡á¯áá ¡á«áá ¡á«-á á µá¼áá ³" aria-label="Permalink to âì°¸ê³ í ë§í ë§í¬â">â</a></h4><ul><li><a href="https://www.baeldung.com/spring-boot-max-http-header-size" target="_blank" rel="noreferrer">Max-Http-Request-Header-Size in Spring Boot</a></li><li><a href="https://www.baeldung.com/postman-form-data-raw-x-www-form-urlencoded" target="_blank" rel="noreferrer">Difference Between form-data, x-www-form-urlencoded and raw in Postman</a></li><li><a href="https://www.baeldung.com/spring-url-encoded-form-data" target="_blank" rel="noreferrer">Handling URL Encoded Form Data in Spring REST</a></li></ul>`,11)]])}var s=e(a,[[`render`,o]]);
12export{i as __pageData,s as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.