tonysmz

Results 4 comments of tonysmz

直接eq下去就是and啊,默认就是and

我当然用的是Integer, 但是Mybatis-plus还是会给它一个值,而且这个值是超出Integer范围的, 如下, 这个ID字段在实体类中是null, 但在Mybatis-plus生成SQL插入数据库的时候,依然给了它一个值1540237890110394369,如果id被当成一个普通字段来处理的话,在insert的字段中不应该出现ID字段,更不应该出现这个值才对. SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@579d9fdb] was not registered for synchronization because synchronization is not active JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@12de2ca] will not be managed by Spring ==> Preparing: INSERT INTO...

准确的来讲,看起来Mybatis-plus对于ID这个字段, 即使没有指定@TableID,注解, 也会默认它的类型为ASSIGN_ID(源自全局配置中的DbConfig.idType), 给它指定一个值.

首次开启时 ![resize before](https://user-images.githubusercontent.com/17421578/89015930-76a84000-d34a-11ea-833a-4500c33af2bb.png) 缩小窗口时,底下的pager不见了. ![resize after](https://user-images.githubusercontent.com/17421578/89015923-73ad4f80-d34a-11ea-8c22-99f2e5b2f029.png)