Giter Club home page Giter Club logo

java-common's People

Contributors

daweibayu avatar jwfing avatar lbt05 avatar leancloud-connector avatar sdjcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java-common's Issues

Fastjson 的不恰当使用

https://github.com/leancloud/java-common/blob/0.1.9/src/main/java/com/avos/avoscloud/AVObject.java#L64

这里改动了 fastjson 的全局设置,这是一个非常大的入侵,在用户不知情的情况下,会给用户带来很大困扰,而且如果用户在不执行的情况下可能会覆盖此设置,引起一些问题

JSON.DEFFAULT_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
  • 可以尝试自定义 Deserializer/Serializer, 并注册到 新配置实例 里面,且一定不能是 ParserConfig.getGlobalInstance()/SerializeConfig.getGlobalInstance()
  • 如果考虑到全局使用,自定义时间类 AVDate/LCDate 会更妥当

PS: 其后的 AVObjectDeserializer/AVObjectSerializer 因为处理的我们自定义的 AVObject 是比较低的入侵, 并不严重

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.