简体   繁体   中英

Exception in Play Framework 2.6

I Was using play framework 2.5. My scala version is 2.11.8. When I migrated to Paly 2.6, I'm getting the following error

RuntimeException: java.lang.NoClassDefFoundError: play/api/libs/ws/WSRequest$class

WS was extracted to it's own library, so you need to add in the build.sbt :

libraryDependencies += ws

You can find more details in the official documentation: https://www.playframework.com/documentation/2.6.x/ScalaWS

And do not forget the migration guide: https://www.playframework.com/documentation/2.6.x/WSMigration26

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM