Grails 3.2.11没有在开发中重新加载控制器

时间:2017-10-17 09:36:21

标签: grails controller reload development-environment

在正在运行的应用中(gradle bootRun)我向控制器操作添加了一个简单的println params

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

在日志中我可以看到:

  

文件C:\ workspace-neon \ proj \ grails-app \ controllers \ io.smth.SomeController.groovy已更改,重新编译...

     

11:23:08.632 [Thread-14] INFO o.s.b.f.s.DefaultListableBeanFactory - 覆盖bean' io.smth.SomeController'的bean定义使用不同的定义:替换[Generic bean:class [io.smth.SomeController];范围=单;抽象= FALSE; lazyInit = TRUE; autowireMode = 1; dependencyCheck = 0; autowireCandidate = TRUE;初级= FALSE; factoryBeanName = NULL; factoryMethodName = NULL; initMethodName = NULL; destroyMethodName = null] with [Generic bean:class [io.smth.SomeController];范围=单;抽象= FALSE; lazyInit = FALSE; autowireMode = 1; dependencyCheck = 0; autowireCandidate = TRUE;初级= FALSE; factoryBeanName = NULL; factoryMethodName = NULL; initMethodName = NULL; destroyMethodName =空]

虽然当我运行相关操作时,我在控制台中看不到println输出。

我错过了什么?

0 个答案:

没有答案