Skip to content

our16/lite-workspace

Repository files navigation

Read this in other languages: English, 中文.

LiteWorkspace - IntelliJ IDEA Plugin

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.

JetBrains Plugins
License


✨ Features

  • 🔍 Smart Bean Scanning
    Automatically detects @ComponentScan annotations and XML component-scan configurations.

  • 📦 Dependency JAR Support
    Scans external JAR packages for spring.factories and 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.


🎯 Use Cases

  • 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.

📥 Installation

  1. Download from JetBrains Marketplace (coming soon).
  2. Or build from source:
    ./gradlew buildPlugin

🎯 Usage

  1. 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.

  1. 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.

  1. 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.

  1. 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.

企业微信截图_17571522179138 企业微信截图_17571522948750

About

lite-workspace

Resources

License

Stars

Watchers

Forks

Packages

No packages published