初次接触grails和groovy,很多东西不太明白。
grails的项目想调用一个dubbo服务,服务接口的.jar已添加到libs中;
把dubbo的配置写在grails-app/conf/spring/resources.xml中,在controller中def xxxService。
可是启动服务后,xxxService为null。
应该怎么配置和调用呢,求解,最好有Demo
grails的项目想调用一个dubbo服务,服务接口的.jar已添加到libs中;
把dubbo的配置写在grails-app/conf/spring/resources.xml中,在controller中def xxxService。
可是启动服务后,xxxService为null。
应该怎么配置和调用呢,求解,最好有Demo
今天也做了一个grails3调用dubbo的方法。懂了你当时的困惑。然而我的配置两天没生效,今天突然就好了。def前要使用@resource。mark一记