2018-12-22 18:03
@l30961171 mybatis 的mapper xml 这类文件,建议放在 src/main/resources 下面,然后配置一下:
me.setBaseTemplatePath(null);
me.setToClassPathSourceFactory();
2018-12-22 16:34
@95txc 前面笔误,tinyint(1) 说成了 int(1),其实改成 tinyint(2) 就可以了
如果极其注重节省存放空间,用 tinyint(2) 比 tinyint(3) 节省一个字节
2018-12-22 12:45
@王志豪 直接写就好:
String sql = Db.getSql(...);
Db.find(sql);
2018-12-22 12:21
@langao_ 添加这个没:
me.add(SessionInViewInterceptor())