mybatisplus代码生成器生成的实体类如何去掉下划线

如题,学习mybtisplus代码生成器生成实体类时,生成的实体类包含下划线,应该如何去掉呢?
应该在策略设置里还是全局设置里呢?

你指的是属性驼峰命名?

 StrategyConfig strategyConfig = new StrategyConfig();
        // 命名策略:数据库表字段映射到实体的命名策略,默认为no_change,即原样输出,underline_to_camel为下划线转驼峰命名
        strategyConfig.setColumnNaming(NamingStrategy.underline_to_camel);
        strategyConfig.setNaming(NamingStrategy.underline_to_camel);
        strategyConfig.entityTableFieldAnnotationEnable(true);

你说的是 实体类的字段,还是 实体类自己 ???
有如下的配置,你试试

#数据库表字段名不使用下划线命名
mybatis-plus.configuration.map-underscore-to-camel-case=false
#数据库表不使用下划线命名
mybatis-plus.global-config.db-config.table-underline=false