Skip to content

Instantly share code, notes, and snippets.

@jeffscottbrown
Created September 12, 2017 15:36
Show Gist options
  • Select an option

  • Save jeffscottbrown/148cb9ddc0868c3c6cefc0435a23be40 to your computer and use it in GitHub Desktop.

Select an option

Save jeffscottbrown/148cb9ddc0868c3c6cefc0435a23be40 to your computer and use it in GitHub Desktop.
import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration
import org.apache.catalina.Context
import org.springframework.boot.context.embedded.tomcat.TomcatContextCustomizer
import org.springframework.context.annotation.Bean
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}
@Bean
TomcatContextCustomizer tomcatContextCustomizer() {
new TomcatContextCustomizer() {
@Override
void customize(Context context) {
context.distributable = true
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment