Java – Generate Admin area ( CRUD ) on Play Framework

frameworksjavaplayframeworkweb-applications

I'm following the Official tutorial for creating a administration area. I did the first step correctly but when i extend my controller class to CRUD i got an error (Crud not found on the project) + Access denied when I access to http://localhost:9000/admin/. This is what I did:

  1. Enable the CRUD module for the application
    In the /conf/application.conf file, enable the CRUD module by adding this line:

    module.crud=${play.path}/modules/crud

    Import default CRUD routes

  2. In the conf/routes file, import the default module routes by adding this line:

    * /admin module:crud

  3. Create the Users controller

    package controllers;
    
    public class Users extends CRUD {
    
    }
    
  4. Restarted play & eclipse

Any suggestion to get the admin area work please ?

Best Answer

Try running this command again

play eclipsify myApp 
Related Topic