- I was following this part of the documentation: Creating Custom OAuth2 Protected Controllers ( https://doc.cuba-platform.com/manual-6.6/rest_api_v2_custom_controllers.html )
I have created a RestController in the module web.
In the core module I have created the Service class and the Repository class (that uses the Persistence class)
The problem is that in the web module I cannot Inject the Service class that is in the core module
Here is the error I have got:
web:compileJava app\modules\web\src\com\company\architect\controller\ProjectController.java:5: error: package com.company.architect.service does not exist import com.company.architect.service.ProjectService; ^ app\modules\web\src\com\company\architect\controller\ProjectController.java:16: error: cannot find symbol private ProjectService projectService; ^ symbol: class ProjectService location: class ProjectController 2 errors
So how can I make this work ?
Thanks in advance for any help