3.5.1mybatisplus does not report an error and cannot generate files.

The reason may be that the file cannot be generated if the data table name is written as a string.

a solution

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_"); // 设置过滤表前缀
                })

...

Guess you like

Origin blog.csdn.net/picktheshy/article/details/130308372