I use MyBatis mapper's insert method and GraalVM to generate a native image.

When I test the insert method, an error occurs:

Incorrect string value: '\xBF","\xE4\xB8...' for column 'traceConfig'

I had set database charset and table charset to utf8, and my local launch do not report this error, just somewhat weird.

JdbcTemplate insert has same problem.

I use jdk17 and gradle to build my project.

Comment From: sbrannen

Hi @zrwsmd,

Please provide a sample application that reproduces the issue you are describing -- preferably something that we can download and run, such as project created via https://start.spring.io and provided via a GitHub repository or ZIP file.

I've also edited your comment to improve the formatting. You might want to check out this Mastering Markdown guide for future reference.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.