Created
September 12, 2017 15:36
-
-
Save jeffscottbrown/148cb9ddc0868c3c6cefc0435a23be40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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