Created
March 19, 2018 10:11
-
-
Save avvero/07f21a3cb6a8bb4fd1907cf9c68d43a4 to your computer and use it in GitHub Desktop.
skipp #tld #scan during #tomcat loanch with #spring
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 org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration | |
| public class ServletContainerConfig { | |
| @Value("${app.tomcat.additional-tld-skip-patterns}") | |
| private String tldSkip; | |
| @Bean | |
| public TomcatEmbeddedServletContainerFactory tomcatEmbeddedServletContainerFactory() { | |
| TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory(); | |
| factory.setTldSkip(tldSkip); | |
| return factory; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment