나는 Grails의 설명서에이를보고 난 /의 $ 월 위 /$ 일/& 월 (인/$ 일 만 다른 또 하나의 매핑이있는 경우 나, 의심이혼란
static mappings = {
"/$blog/$year/$month/$day/$id"(controller: "blog", action: "show")
}
The above mapping would let you do things like:
/graemerocher/2007/01/10/my_funky_blog_entry
The individual tokens in the URL would again be mapped into the params object with values available for year, month, day, id and so on.
). 내 새 매핑에도 동일한 경로가 유효합니다. 그러면 동적 매핑과 바인딩 방법을 식별하는 방법 매개 변수 개체입니다.
2 개의 매핑 중 어느 것이 적합한지를 결정하는 순서가 아니라, "다른 특정"이 더 적은 " **'이중 와일드 카드, 또는 (2) 단일 와일드 카드가 적음, (3) 더 많은 정적 세그먼트가 순서대로). –
http://grails.1312388.n4.nabble.com/URL-Mapping-question-td3556768.html#a3565451은 특이성 규칙의 소스 코드를 디코딩 한 것입니다. –