The routes file is parsed and compiled via Scala, not Java. In Scala there are no primitive types like in Java. Instead you have to use
Int,
Long, etc. which can be found in the
scala package. So no, you can't use Java primitive types in the routes files.
If you explicitly want to use Java types instead you could write value:java.lang.Integer however.
Hope that helps.
Best regards,
Matthias