You definitely should have a look on Grails Documentation to understand basic concepts
Here, you have a controller that will respond to ${baseUrl}/treeMap/list
url, that is to say http://localhost:8080/treeMap/list
as per the defaults
You'll have to request the URL with a Content-type: text/json;
header, I think, to make it work