JPA utf-8 characters not persisted

后端 未结 4 1145
我在风中等你
我在风中等你 2020-12-02 20:58

I have a simple web application where I use JPA.

I have an entity called BlogEntry.

When I submit a new BlogEntry, when I debug my applica

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 21:33

    This helped in Spring Boot:

    spring.datasource.url=jdbc:mysql://localhost:3306/securitydb?useUnicode=yes&characterEncoding=UTF-8
    

提交回复
热议问题