Git Product home page Git Product logo

Comments (4)

taowen avatar taowen commented on May 18, 2024 1

给一段完整的复现问题的源代码

from java.

qiaokang avatar qiaokang commented on May 18, 2024

jsonBean.zip
将context.json转换为ProductAdvertList对象的时候,报异常java.lang.RuntimeException: unsupported type: T

from java.

taowen avatar taowen commented on May 18, 2024

@qiaokang 现在已经ok了,你再试试看

from java.

qiaokang avatar qiaokang commented on May 18, 2024

谢谢@taowen ,顺利解析。
我发现json的值类型与bean的属性类型必须强一致,例如值类型是数字,对应bean的属性类型如果是String,会报解析异常,类型不匹配。
意外的惊喜,原来一直使用GSON,类型没有匹配。

from java.

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.