Spring boot에서 'request header is too large' 해결.

2020. 12. 12. 19:03·이슈 해결

 

 

화면에서 에디터를 이용해 이미지를 업로드를 시켰더니 다음과 같은 에러가 발생하였다.

전에 했던 프로젝트는 잘 되었는데 이게 무엇인고 하니 알고보니 값을 따로 설정을 해주어야 해결되는 문제였다.

 

나는 Spring boot를 사용하였고 Gradle을 사용했었다.

 

 

Maven은 'application.properties'에서, Gradle은 'application.yml'에서 값을 설정해주면 된다.

 

1) Maven

server.max-http-header-size = 400000

 

2) Gradle

server:max-http-header-size: 400000

 

 

해당 옵션은 설정하지 않았을 때 default 값으로 8KB가 되어있다고 한다.

'이슈 해결' 카테고리의 다른 글

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set  (5) 2020.11.28
[Error] jdbcUrl is required with driverClassName.  (7) 2020.02.24
[Error] ajax 사용 중 'JSON parse error: ~'  (2) 2020.02.22
'이슈 해결' 카테고리의 다른 글
  • Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
  • [Error] jdbcUrl is required with driverClassName.
  • [Error] ajax 사용 중 'JSON parse error: ~'
나는 유찌
나는 유찌
쩌리쨩
  • 나는 유찌
    유찌 개발 일기
    나는 유찌
  • 전체
    오늘
    어제
    • 분류 전체보기
      • 사이드 프로젝트
        • 게시판
        • 블로그(Spring boot + React.js ..
      • 데이터베이스
        • SQLD
      • 이슈 해결
      • Front
        • Javascript
        • Vue.js
        • HTML+CSS
      • Backend
        • Spring
        • ORM
        • JAVA
      • 공부
        • HTTP
        • OOP
        • 이것저것
        • 코딩테스트 | 알고리즘
      • Computer Science
        • Computer architecture
        • 데이터베이스
        • 운영체제
      • 일상
        • 독서
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    Spring boot에서 JWT 구현
    AccessDecisionVoter
    redis 분산락
    mssql
    JWT이란?
    access token
    mysql 격리수준
    Spring Boot
    role scope
    Spring Security AccessDecisionManager
    히가시노 게이고
    웹 개발
    한국소설
    DIRTY READ
    Kotlin AntPathMatcher
    jwt 로그인 구현
    phantom read
    pessimisticlock
    AntPathMatcher
    권한 scope 처리
    Access token 재발급
    jwt
    Access Token Refresh Token
    spring
    독서
    spring 격리수준
    Kotlin AccessDecisionManager
    LeetCode
    추리소설
    refresh token
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
나는 유찌
Spring boot에서 'request header is too large' 해결.
상단으로

티스토리툴바