mybatis generator 为数据库保留字段 转义

为order 添加转义符号“ ` ” `order`

 在context最上面加上这三个元素:


<property name="autoDelimitKeywords" value="true"></property>
<property name="beginningDelimiter" value="`"></property>
<property name="endingDelimiter" value="`"></property>

然后在table元素的属性上加:

delimitIdentifiers="true"

https://www.cnblogs.com/passedbylove/p/12131470.html
posted @ 2020-07-27 15:08  规格严格-功夫到家  阅读(384)  评论(0编辑  收藏  举报