We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在在官方文档和源代码中没有找到使用 Mybatis-plus generator 自动生成 Repository 类的配置。如果要在程序中添加 Repository 类需要手动添加吗?
No response
The text was updated successfully, but these errors were encountered:
AutoGenerator generator = new AutoGenerator(DATA_SOURCE_CONFIG); // 替换service包为repository包 generator.packageInfo(packageConfig() .service("repository") .serviceImpl("repository.impl") .build()); // 替换service和serviceImpl为IXxxRepository和XxxRepository generator.strategy( strategyConfig() .serviceBuilder().convertServiceFileName(entityName -> "I" + entityName + "Repository") .superServiceClass(IRepository.class).convertServiceImplFileName(entityName -> entityName + "Repository") .superServiceImplClass(CrudRepository.class) .build()); generator.global(globalConfig().build()); generator.execute();
Sorry, something went wrong.
No branches or pull requests
确认
功能改进
在在官方文档和源代码中没有找到使用 Mybatis-plus generator 自动生成 Repository 类的配置。如果要在程序中添加 Repository 类需要手动添加吗?
参考资料
No response
The text was updated successfully, but these errors were encountered: