Play FrameWork Java

Hi , referred to this documentation https://www.playframework.com/documentation/2.8.x/JavaCsrf

Adding

  • nocsrf
    POST /api/new controllers.Api.newThing()

This nocsrf is giving compile time error.

Which Play version you are using? You’re linking to the 2.8.x documentation so that only applies if you’re using Play 2.8.x. That specific feature was added in 2.6.0.

Also, when asking for help about compiler errors, you should always provide the raw text of your code in a code block, as well as the full text of the error message the compiler is returning.