3.5.1mybatisplus没有报错,生成不了文件

原因可能是数据表名写成一个字符串生成不了文件

一种解决办法

List<String> tables = new ArrayList<String>();
Collections.addAll(tables, "t_user","t_user_event_log","t_user_token","t_message","t_message_user");
...


 .strategyConfig(builder -> {
                    builder.addInclude(tables) // 设置需要生成的表名
                            .addTablePrefix("t_"); // 设置过滤表前缀
                })

...

猜你喜欢

转载自blog.csdn.net/picktheshy/article/details/130308372