게시글을 등록하는 api를 테스트하는데 좀전까지 되던게 되지 않아서 로그를 보니 post.post.content이런 애러가 뜨길래 처음에는 user를 같이 등록하면서 순환참조가 걸리는 건가 싶었다.
Error: 1366-22007: Incorrect string value: '\xEA\xB2\x8C\xEC\x8B\x9C...' for column
post
.post
.title
could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
그런데 이유는 다른게 아니라 데이터베이스의 인코딩설정....
aws에서 rds로 mariadb를 이용하여 구성했기에 파라미터 그룹을 수정하려 했다.
그런데 뜨는 거는....
찾아보니 기본설정된 값을 변경이 불가능하기에 새로운 파라미터를 추가해야 한다고 하더라
그래서 파라미터그룹을 생성하고 charector_set, collection들을 utf-8로 변경하니 해결 완료