This message was deleted.
# questions
s
This message was deleted.
j
Per spring doc : https://docs.spring.io/spring-framework/docs/5.3.24/reference/html/web.html#mvc-multipart-resolver-commons I have a app-plugin app-web So i add a file resources.groovy in app-plugin/grails-app/conf/spring with :
Copy code
import org.springframework.web.multipart.commons.CommonsMultipartResolver

beans = {
multipartResolver(CommonsMultipartResolver)  {
        maxUploadSize = 1000000   
    }
}
Bean is not used When the file is in app-web/grails-app/conf/spring Bean is used any idea ?
So i defined the bean in the doWithSpring closure:
Copy code
Closure doWithSpring() {
    { ->
       multipartResolver(CommonsMultipartResolver) {
            maxUploadSize = 1000000
        }
    }
}
It does not work, code is executed but the bean is not used by spring
I have to add :
Copy code
def loadAfter = ['interceptors']
To make it work