最新回答 / weixin_慕仔2069104
檢查?tableInfo.getTableName() 有沒有獲取到正確的表名,用日志排查一下直接手動輸入表名:tableInfo.setTableName("your_table_name");
2023-04-14
this.strictInsertFill(metaObject, "createTime", LocalDateTime.class, LocalDateTime.now());
this.setFieldValByName("createTime", LocalDateTime.now(),metaObject);
this.fillStrategy(metaObject, "createTime", LocalDateTime.now());
this.setInsertFieldValByName("operator", "Jerry", metaObject);
this.setFieldValByName("createTime", LocalDateTime.now(),metaObject);
this.fillStrategy(metaObject, "createTime", LocalDateTime.now());
this.setInsertFieldValByName("operator", "Jerry", metaObject);
2022-09-06
fix老項目的bug,正好用到了這個特性,然后寫了總結。想著,可能對其它同學理解這個功能的使用有幫忙,就發出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
2022-07-19
fix老項目的bug,正好用到了這個特性,然后寫了總結。想著,可能對其它同學理解這個功能的使用有幫忙,就發出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
2022-07-19
有總結有示例,很容易學會。
fix老項目的bug,正好用到了這個特性,然后寫了總結。想著,可能對其它同學理解這個功能的使用有幫忙,就發出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
fix老項目的bug,正好用到了這個特性,然后寫了總結。想著,可能對其它同學理解這個功能的使用有幫忙,就發出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
2022-07-18
最贊回答 / athr
查閱官網,發現要用了新的版本,加入了如下代碼:
@Bean public?MybatisPlusInterceptor?mybatisPlusInterceptor()?{ ????MybatisPlusInterceptor?mybatisPlusInterceptor?=?new?MybatisPlusInterceptor(); ????mybatisPlusInterce...
2022-07-13