How to use existing java class from grails

后端 未结 5 613
执念已碎
执念已碎 2021-02-10 18:19

how can I call a method residing in an existing Java class from Grails app ? Is it necessary/recommended to wrap that up in a service?

5条回答
  •  甜味超标
    2021-02-10 19:05

    there is no need to wrap as service. if you are using spring,just add the bean into resource.groovy

提交回复
热议问题