How to import FromString for joda-time?

£可爱£侵袭症+ 提交于 2019-12-05 02:09:49
Suminda Sirinath S. Dharmasena

If the problem is with FromString, then the missing dependency is Joda Convert. Add the relevant jars.

This problem occurs because Scala doesn't implement annotations in the same way as Java. In Java, an annotation that is not found in the classpath is effectively ignored. Thus, loading Joda-Time classes in Java does NOT require Joda-Convert. Since Scala does not load annotations in the same way as Java, Scala users are forced to add the dependency.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!