DEV Community

kevinGit777
kevinGit777

Posted on

Invalid byte 2 of 2-byte UTF-8 sequence.

I encounter the error when I am following a tutorial, the most common solution is to change the encoding of the pom.xml to UTF8 and explicitly state it. However, that does not work for me, luckily, I have a workable version of code that I can compare with.

I solve the problem by removing the mapper-locations:
com/myProject/reggie/mapper/**
in the application.yml file. I added this because mybatis does not work earlier (adding this to the yml file did not help). not sure why but at least now I can get the project running.

Top comments (0)