- If using SpringFramework, try to add this in applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans " default-lazy-init="true" ... - If using SpringFramework 3.x or above and enable servlet 3.0, add this in web.xml and update the spring-web-x.x.x.RELEASE.jar
web.xml: metadata-complete="true"spring-web-x.x.x.RELEASE.jar:Remote the file : \META-INF\services\javax.servlet.ServletContainerInitializer。to disable auto-scanning web config in servlet3.0 - Upgrade JDK/JVM to the latest version
- Disable Xdoclet Maven Plugin
Improve Java Web Development Server Startup Time
最新推荐文章于 2025-12-02 21:20:38 发布
本文介绍如何针对Spring框架进行配置优化,包括使用懒加载初始化、在Servlet 3.0环境下禁用自动扫描等方法。同时也提供了更新JDK/JVM版本及禁用Xdoclet Maven插件的建议。

1681

被折叠的 条评论
为什么被折叠?



