Giter Site home page Giter Site logo

使用该项目代码集成自定义的mybatis typeHandler时报错 IllegalStateException: No typehandler found for property XXX about mybatis-spring-boot HOT 10 OPEN

abel533 avatar abel533 commented on September 27, 2024
使用该项目代码集成自定义的mybatis typeHandler时报错 IllegalStateException: No typehandler found for property XXX

from mybatis-spring-boot.

Comments (10)

 avatar commented on September 27, 2024

java -jar形式能够成功启动。请问一下如何在开发中调试,总不能每次都打成jar再开发吧。

from mybatis-spring-boot.

abel533 avatar abel533 commented on September 27, 2024

我用的IDEA,直接启动 main 方法。

from mybatis-spring-boot.

 avatar commented on September 27, 2024

好的

from mybatis-spring-boot.

vinplezhang avatar vinplezhang commented on September 27, 2024

映射文件里有collection property="roles" ofType="tk.mybatis.springboot.model.SysRole">

collection
报错 Caused by: java.lang.IllegalStateException: No typehandler found for property roles

@abel533

from mybatis-spring-boot.

jaychang9 avatar jaychang9 commented on September 27, 2024

映射文件里有collection property="roles" ofType="tk.mybatis.springboot.model.SysRole">

collection
报错 Caused by: java.lang.IllegalStateException: No typehandler found for property roles

@abel533 我也碰到此问题,好像用了通用Mapper就不支持集合映射了

from mybatis-spring-boot.

abel533 avatar abel533 commented on September 27, 2024

@jaychang9 非表字段加注解忽略。以后版本会自动忽略一些类型的字段。

from mybatis-spring-boot.

wenkyzhang avatar wenkyzhang commented on September 27, 2024

@abel533 我也遇到这个问题了。使用@transient忽略后,并不能把值读出来。请教下如何处理这种情况?
对象属性没有问题,集合属性就会报这个错 。谢谢!

from mybatis-spring-boot.

abel533 avatar abel533 commented on September 27, 2024

@wenkyzhang 这种要手写!

from mybatis-spring-boot.

wenkyzhang avatar wenkyzhang commented on September 27, 2024

@abel533 那一般是写成List通用的好,还是每个实体类都需要写一个?
对于BaseTypeHandler<List<T>>的实现,有些方法的值还不是太明白。谢谢!

from mybatis-spring-boot.

wuxiy avatar wuxiy commented on September 27, 2024

@youblade 这种本地跟jar报运行的差异是怎么解决的呢?

from mybatis-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.