MyBatis-Spring-Boot icon indicating copy to clipboard operation
MyBatis-Spring-Boot copied to clipboard

多对多关联关系报错Caused by: java.lang.IllegalStateException: No typehandler found for property roles

Open vinplezhang opened this issue 8 years ago • 5 comments

<collection property="roles" ofType="tk.mybatis.springboot.model.SysRole">
  <result column="name" property="name"/>
</collection>

vinplezhang avatar Jun 13 '17 15:06 vinplezhang

@abel533 请问大神怎么解决

vinplezhang avatar Jun 13 '17 15:06 vinplezhang

@abel533 求指导

vinplezhang avatar Jun 14 '17 05:06 vinplezhang

我想把spring secutiry功能做进来 实现一个登陆的功能 遇到这个问题 @abel533

vinplezhang avatar Jun 14 '17 06:06 vinplezhang

看首页提示,非表字段需要加注解忽略。

abel533 avatar Jun 14 '17 12:06 abel533

tk.mybatis 1.x的版本是有这个问题,你可以升级到2.x

zkzong avatar Sep 06 '18 13:09 zkzong