我正在做一个API调用一个函数在这个控制器类:Grails的控制器类错误
class CountryInfoController extends RestfulController {
static responseformats = ['json']
CountryInfoController(){
super(CountryInfo)
}
def index(){}
def getCountryName(){
System.out.println('all good')
}
}
我不确定我是否错过了一个视图或什么 - 我是新来的Grails,所以我很困惑发生了什么事情。任何想法,将不胜感激!谢谢。
谢谢Ethan! :) –