Read this in other languages: English, 中文.
LiteWorkspace is an IntelliJ IDEA plugin that helps developers optimize Spring application startup by scanning and analyzing bean definitions, reducing unnecessary Spring context loading, and improving development efficiency.
-
🔍 Smart Bean Scanning
Automatically detects@ComponentScanannotations and XMLcomponent-scanconfigurations. -
📦 Dependency JAR Support
Scans external JAR packages forspring.factoriesand auto-configuration classes. -
🏗 Multi-Module Project Support
Works seamlessly in large, modular Spring Boot projects. -
⚡ Startup Optimization
Identifies the minimum required Spring context to load, accelerating startup time. -
📊 Dependency Visualization (coming soon)
Provides a graphical view of bean dependencies to help refine context loading.
- Large Spring Boot projects with long startup times.
- Multi-module projects needing precise dependency analysis.
- Debugging sessions where developers want to limit Spring context scope.
- Analyzing third-party JAR auto-configurations in the project classpath.
- Download from JetBrains Marketplace (coming soon).
- Or build from source:
./gradlew buildPlugin
- Install Plugin
Download the LiteWorkspace plugin for this project (liteworkspace-.jar).
In IntelliJ IDEA, go to: Settings/Preferences → Plugins → ⚙️ → Install Plugin from Disk... → select the downloaded jar → restart IDEA.
- Enable Plugin
Open a Spring / Spring Boot / MyBatis project.
Right-click a test class or test method in IDEA, and you will see the FastRunTest entry provided by LiteWorkspace.
- Run Dependency Scan
Right-click the target class (for example, the main @UserService class or a test class) → Run with LiteWorkspace.
The plugin performs the following steps:
Scan source code annotations (@ComponentScan, @Configuration, @Bean, etc.);
Scan XML configurations for context:component-scan and definitions;
Scan dependency JARs for META-INF/spring.factories and spring/...AutoConfiguration.imports;
Analyze dependency relationships, resolve interface implementations, generic Beans, and Beans generated by @Configuration;
Automatically generate a minimal context loading list and corresponding test classes.
- View Results
The scan results are displayed in the IDEA Tool Window (LiteWorkspace panel).
You can directly start your application based on this configuration, greatly reducing startup time.