I am trying to introduce a GraauditService into a Grails domain class.
I use grails 1.3.7 I tried the direct injection method, as in the controllers
import com.gra.audit.GraauditService
class User { def graauditService
above does not work. graauditService always displayed as null
I also tried to enter through ApplicationHolder as shown here
But it looks like ApplicationHolder is deprecated now
How can I use the service in a domain class?
source share