I've
- created new Grails 2.4.3 project
- created
TestController
- set
grails.reload.enabled = true
inBuildConfig.groovy
- run application with
grails -reloading run-app
My controller action code:
def index() {
render "test"
}
When I change the string test
to test2
- I see in console (in Eclipse):
..................
|Compiling 1 source files
And after reloading page I see test2
- ok.
But when I try to add new method:
def test3() {
render "test3"
}
I see:
Why? Why there isn't even the url?
Example - action does't exist:
Interesting thing is - when I create a whole new controller the index
action of the newly created controller works...
EDIT
After a while I decided to go with spring-boot and as a matter of fact - there it's not working either. I think that springloaded is the issue here because it doesn't pick up added new method in @Controller
render
method overrides this behaviour (of finding some view for an action). If I had returned model then it should search for a corresponding view. But yes - I've tried this also: with the same effect. – Alisaalisanspring-loaded
issue. I've posted an answer. – Alisaalisan