columnDefinition = “TEXT” for all types of databases

前端 未结 4 1016
无人共我
无人共我 2021-02-20 03:53

Locally I use mysql, so when I use

 @Column(columnDefinition = \"TEXT\")

Unfortunately application have to run at different databases too, I\'

4条回答
  •  鱼传尺愫
    2021-02-20 04:43

    I had the same problem and it was resolved only adding a parameter to MySQL Url on application.properties:

    spring.datasource.url=jdbc:mysql://localhost:3306/database?jdbcCompliantTruncation=false
    

    The parameter is jdbcCompliantTruncation=false

    Looks like a workaround but only it works...

提交回复
热议问题