Grails Spy plugin
About
The Grails Spy plugin provides some views to inspect Grails internals such as the Spring application context(s), artefacts, etc.
License
The Spy plugin is released under the
Apache License 2.0Installation
Simply call
grails install-plugin spy to install the Spy plugin
For security reasons, Spy can be enabled for a single environment, e.g.
development only:
environments {
production {
grails.serverURL = "http://www.changeme.com"
}
development {
grails.serverURL = "http://localhost:8080/${appName}"
grails.plugins.spy.enabled = true
}
test {
grails.serverURL = "http://localhost:8080/${appName}"
}
}Source code and Issues
The source code is hosted at
GitHub, issues can be reported
here.
Usage
Go to
http://localhost:8080/myapp/spy/ and inspect available objects and beans.
Screenshots
See "Screenshots" tab.
History
0.2 - July 6th, 2010
- For security reasons the Spy controller must now be enabled in Config.groovy (see section Installation )
- 'inspect' is now the default action for the spy controller, so it can be called as http://localhost:8080/yourapp/spy instead of http://localhost:8080/yourapp/spy/inspect
0.1 - January 6th, 2010
More docs
For more docs see the
wiki at the GitHub site or
my blog.