Grails 3.2.11 not reloading controllers in develop

2019-02-26 22:52发布

In a running app (with gradle bootRun) I add a simple println params to a controller action:

def index( Integer max ) {
  params.max = Math.min( max ?: 20, 100 )
  println params
  respond Some.list( params ), model:[ someCount:Some.count() ]
}

In the logs I can see:

File C:\workspace-neon\proj\grails-app\controllers\io.smth.SomeController.groovy changed, recompiling...

11:23:08.632 [Thread-14] INFO o.s.b.f.s.DefaultListableBeanFactory - Overriding bean definition for bean 'io.smth.SomeController' with a different definition: replacing [Generic bean: class [io.smth.SomeController]; scope=singleton; abstract=false; lazyInit=true; autowireMode=1; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [io.smth.SomeController]; scope=singleton; abstract=false; lazyInit=false; autowireMode=1; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]

Although when I run the action in question, I see no println output in the console.

What am I missing?

0条回答
登录 后发表回答