MybatisPlus代码⽣成器模板中的常⽤参数获取⽗类的类名:
"superMapperClass": "BaseMapper",
"superServiceClass": "IService",
"superServiceImplClass": "ServiceImpl"
获取⽗类的全限定名:
"superMapperClassPackage": "apper.BaseMapper", "superServiceClassPackage": "sion.service.IService", "superServiceImplClassPackage":"sion.service.impl.ServiceImpl"
获取已⽣成的类的全限定名:
${package.Entity}.${entity}com.lyf.ity.SysMenu;
${place("entity","dto")}.${entity}DTO;com.lyf.fast.demo.dto.SysMenuDTO;
${place("entity","vo")}.${entity}VO;com.lyf.fast.demo.vo.SysMenuVO;
${package.Entity}.${ityName};com.lyf.ity.SysMenu;免费模板生成器
${package.Mapper}.${table.mapperName};com.lyf.fast.demo.mapper.SysMenuMapper;
${package.Service}.${table.serviceName};com.lyf.fast.demo.service.SysMenuService;
${package.Service}.${table.serviceImplName};com.lyf.fast.demo.service.SysMenuServiceImpl;获取已⽣成的实体类的类名(⾸字母⼩写):
${ityPath};---------------------> sysMenu;
获取已⽣成的类的包名json:
${package}:{
Entity=com.lyf.ity,
Mapper=com.lyf.fast.demo.mapper,
Xml=com.lyf.fast.l,
Service=com.lyf.fast.demo.service,
ServiceImpl=com.lyf.fast.demo.service.impl,
Controller=com.lyf.ller
}
获取mybatis-plus导⼊的类的全限定名数组:
${table.importPackages}:[
batisplus.annotation.TableName,
batisplus.annotation.Version,
java.time.LocalDateTime,
batisplus.annotation.FieldFill,
batisplus.annotation.TableLogic,
batisplus.annotation.TableField,
com.lyf.ity.BaseEntity
]

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。