Grails 1.2.1을 사용하고 있습니다. 나는 방문 할 때 내가 404을 받고 있어요, 그러나 ... Grails URL 매핑 질문
http://localhost:8080/context-path/mediaproxy
그래서 내 URLMappings.groovy 파일이 추가 ...이 매핑을 설정하는class UrlMappings {
static mappings = {
‰name mediaproxy: "/mediaproxy" {
controller = "SocialMediaCacheProxy"
action = "index"
}
"/"(view:"/index")
"500"(view:'/error')
}
}
을 원하는 위 URL 여기 내 컨트롤러를 설정하는 방법입니다
class SocialMediaCacheProxyController {
def index = {
if (params.dumpAll != null) {
} else if (params.url != null) {
doCacheTransport(params, response);
} // if
}
...
}
내가 뭘 잘못하고 있는거야? ‰ (
class UrlMappings {
static mappings = {
"/mediaproxy" {
controller = "SocialMediaCacheProxy"
action = "index"
}
"/"(view:"/index")
"500"(view:'/error')
}
}