What is the preferred way to set the configuration options for JSPServlet like checkInterval, keepgenerated, modificationTestInterval etc? The reason I am trying to alter it is because of some strange issues with JSP Compilations. We are using executable war packaging and setting the 'server.tomcat.basedir' property to point to a locally accessible folder. The generated jsp java source and class files shows modification date as Jan 14 1970. In windows explorer, the modification just shows up as empty. On linux, we did a touch on all the files. But as soon as the jsp file is accessed again, the modification date goes back to 1970. We doubt that this is causing the jsp files to be compiled every time it is accessed and thus slowing things down. However the recompilation only seems to happen in linux environment. Has anyone experienced this problem? Our environment : Spring Boot 1.2.2.BUILD-SNAPSHOT, Tomcat 8, JDK 1.8_025.
相关问题
- Dependency injection into Logback Appenders with S
- Deserialize duplicate keys to list using Jackson
- How can I access the repository from the entity in
- Prevent Swagger from automatically adding some mod
- Creating Unknown Number of Beans With Configuratio
相关文章
- jsp里面的画布功能,为什么会出错?求大佬找下问题
- JSP String formatting Truncate
- How to load @Configuration classes from separate J
- Using Spring Dynamic Languages Support from Groovy
- Forward request from servlet to jsp
- Spring JMS : Set ErrorHandler for @JmsListener ann
- ModelMapper: Choose mapping based on Child class
- Comparing string and boolean in Expression languag
You can use an
EmbeddedServletContainerCustomizer
@Bean
to look up the JSP servlet and configure its init parameters. For example, in your main@Configuration
class:Or you could just add the parameters to your application.properties file as described here: https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html Look for:
server.jsp-servlet.init-parameters.*= # Init parameters used to configure the JSP servlet
For example: