I am new to Spring and ROO and this Annotation/Aspect hell.
I have an Spring MVC Project created with Spring ROO.
I use mongo-db as my persistance layer.
I have an entity Report with the domain object, the service, the repository and the controller.
I added a custom controller wich workes so far.
I want to just access my stored reports with the ReportService.findAllReports(), but I’m not sure how to get access to this service.
Here is a link to my roo generated site http://sauberseite.cloudfoundry.com/
The main objective is to report adresses and then display all adresses in a google map, for which I have my custom controller and where I need to access the service layer
You can directly
@Autowiredit as follows.If you don’t use annotation
@Controllerand defined your bean inxml, then you can injectReportServiceas a property (just remove@Autowiredannotation) and write a setter for it.