본문 바로가기

이슈 해결4

Spring boot에서 'request header is too large' 해결. 화면에서 에디터를 이용해 이미지를 업로드를 시켰더니 다음과 같은 에러가 발생하였다. 전에 했던 프로젝트는 잘 되었는데 이게 무엇인고 하니 알고보니 값을 따로 설정을 해주어야 해결되는 문제였다. 나는 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가 되어있다고 한다. 2020. 12. 12.
Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set Spring boot에 JPA 연동하는데 'Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set' 라는 에러가 나왔다. 무엇이 잘못인가 하니 application-properties에 어떤 DB를 사용하는지 명시를 해주어야한다고 한다. 'spring.jpa.database=sql-server' 나는 MSSQL을 사용했기 때문에 이렇게 적어주었더니 해결되었다. 컨트롤 + 스페이스바 누르면 쫘르륵 나온다 ! 2020. 11. 28.
[Error] jdbcUrl is required with driverClassName. jdbcUrl is required with driverClassName. 이라는 에러가 나왔다. Spring boot에서 MySQL을 연동하는 과정에서 나온 에러이다. 해결 : application.properties에 설정해둔 원래 코드는 이러 했다. spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/(스키마이름)?serverTimezone=UTC&characterEncoding=UTF-8 spring.datasource.username=root spring.datasource.password=1234 여기서 두번째 줄의 spring.datasource.url.. 2020. 2. 24.
[Error] ajax 사용 중 'JSON parse error: ~' ajax로 이것저것 해보던 중 에러를 만났다. JSON parse error: Unrecognized token 'param1': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'param1': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') 오류 발생 ajax코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $.ajax(.. 2020. 2. 22.