【发布时间】:2010-12-15 20:25:21
【问题描述】:
包装控制器、服务等。 IE。 - com.company.controllers - com.company.services
这是一种好的做法还是应该尽一切办法避免?
我遇到的另一个值得一提的问题是在命名服务示例中
SomthingGatewayService.groovy 无法通过这两种方式初始化
- SomthingGatewayService somtinggatewayService
- def somtinggatewayService
我知道问题出在传统“服务”之前的 2 个大写字母 'S'omthing 和 'G'ateway 中,因此可能是由于某种 spring DI 问题
那么如何解决呢?
【问题讨论】:
标签: web-services spring grails dependency-injection