提前准备好的东西。 logback.xml就是日志的xml 复制到common的resources下。 首先是pom依赖,然后是配置文件。 EntityGenerator是Mybatis-plus给我们提供的代码生成器。根据你的表结构生成controller、service、dao。其实我们并不需要 ...
分类:
其他好文 时间:
2020-04-11 00:37:18
阅读次数:
81
新建一个config的包 把这两个类复制进来 默认初始化的数据库链接 数据的用户密码 这是驱动 **代表的是任意目录。也就是mettingfilm下任意目录找到dao,再找到mapper 复制到test目录下的generator目录下。因为和我们的业务没有关联。所以放在test下 官方提供的做了修改 ...
分类:
其他好文 时间:
2020-04-11 00:23:10
阅读次数:
72
ios 打开app应用权限 var cllocationManger = plus.ios.importClass("CLLocationManager"); var enable = cllocationManger.locationServicesEnabled(); var status = ...
分类:
移动开发 时间:
2020-04-08 12:30:06
阅读次数:
114
if (plus.os.name == "Android") { var context = plus.android.importClass("android.content.Context"); var locationManager = plus.android.importClass("an ...
分类:
移动开发 时间:
2020-04-08 11:45:39
阅读次数:
109
1、Mybatis或Mybatis Plus创建重复Mapper问题:Skipping MapperFactoryBean with name 'XXX' and 'xx.xx..' mapperInterface. Bean already defined with the same name!, ...
分类:
其他好文 时间:
2020-04-06 13:37:23
阅读次数:
190
Mybatis Plus Introduce Simple:MyBatis Plus is an powerful enhanced tool for MyBatis. it provides many efficient operations for MyBatis. and you can se ...
分类:
其他好文 时间:
2020-04-05 13:18:30
阅读次数:
87
选择Remote Access Plus作为企业内部远程工具的五个原因
分类:
数据库 时间:
2020-04-03 15:11:26
阅读次数:
113
为了解放程序员的双手,减少重复性代码的编写,推荐使用插件:mybatis-plus-generator 进行代码自动生成。下面我将详细介绍通过 mybatis-plus-generator 插件自动生成 controller、service、mapper、serviceImpl相关代码。 项目工程目 ...
分类:
其他好文 时间:
2020-04-03 13:45:01
阅读次数:
80
一.创建定义方法的类 public class MyMethod extends AbstractMethod { @Override public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelC ...
分类:
数据库 时间:
2020-04-03 00:30:02
阅读次数:
86
一.Configuration @Configuration public class MybatisPlusConfiguration { public static ThreadLocal<String> inputTableName = new ThreadLocal<>(); @Bean p ...
分类:
数据库 时间:
2020-04-02 01:34:58
阅读次数:
256