Grails 3.0 applicationyml configuration for portable urls
How do I set up portable URLs in the new Grails 3.0 file application.yml
?
The following configuration doesn't seem to stick:
Grails Application / Config / application.yml
grails:
web:
url:
converter: "hyphenated"
My test controller:
Grails app / controllers / BookAuthorsController.groovy
class BookAuthorsController {
def index() {
}
}
And a look at:
grails-app / views / BookAuthors / index.gsp
This page (with the unwanted camel url) displays OK:
http: // localhost: 8080 / bookAuthors
This page should render, but results in a page not found error (404):
http: // localhost: 8080 / book-authors
+3
Dem pilafian
source
to share
No one has answered this question yet
Check out similar questions:
4
1
1
0
0
0
0
0
0
-1