Jackie Tang

Results 44 comments of Jackie Tang

@abel533 这个bug不想跟了。回退到使用java config来配置PageInterceptor和通用Mapper. 现在已经Ok。 tips: 经过这个bug搞的,感觉现在离能写mybatis plugin只差一点点了 ☺^_^

@abel533 建议将MapperAutoConfiguration和PageHelperAutoConfiguration的实例化条件改为ConditionalOnClass 应该是spring boot中加载MapperAutoConfiguration和PageHelperAutoConfiguration的时机有差异 spring boot actuator中提供的信息显示,在加载通用Mapper和PageHelper的autoconfig时,SqlSessionFactory.class并没有实例化完成。 ![conditiononbeansqlfactory](https://cloud.githubusercontent.com/assets/13701989/25083743/38f4a2ac-238b-11e7-8dad-73fd31ff2dad.png)

@abel533 都是从https://github.com/abel533/MyBatis-Spring-Boot.git copy过去的 org.springframework.boot spring-boot-starter-parent 1.5.1.RELEASE tk.mybatis mapper-spring-boot-starter 1.1.0 com.github.pagehelper pagehelper-spring-boot-starter 1.1.0

@abel533 如果单独写一个项目,里面只有https://github.com/abel533/MyBatis-Spring-Boot.git 里面的业务逻辑,也是可以的。 但在https://github.com/helloworldtang/spring-boot-cookbook.git 这个学习用的小项目中,就会not Matched

现在是能用了,具体什么原因也不清楚。 把相关配置都放在application,properties中就可以。

是不是有些配置会导致Null会被过虑掉呢? 我这边还是有这个报错 ![updatebyprimarykeyselective](https://cloud.githubusercontent.com/assets/13701989/26815884/74460870-4ac1-11e7-82bc-e1adbe8c121c.png)

@workcheng 如果把gpsUrl字段赋值的话,sql就正常了。 这里面用的是通用mapper的方法,没有自己写的

但是自动生成PO的工具,不是按这个走的。这样改动的成本有些大:生成后,还要手动改一版,小组不易达成一致

Tiles 3 with spring5 support would be much much appreciated.

Thanks for your time and reply. @lorenzoaws yes,i change the rest api. However, this restriction conditions make people more confused