Grails 3.2.11 not reloading controllers in development

大城市里の小女人 提交于 2019-12-20 03:10:00

问题


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?

来源:https://stackoverflow.com/questions/46787026/grails-3-2-11-not-reloading-controllers-in-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!