Package-level declarations

Provides an out-of-the-box configuration for integrating Vite with Spring MVC applications.

This configuration class defines beans and properties required for Vite integration, which can be customized through the application's application.properties file.

The following properties can be configured:

  • vite.debug - Enables or disables debug mode for Vite integration. Default is true.
  • vite.manifestPath - Specifies the path to the Vite manifest file. Default is /WEB-INF/dist/.vite/manifest.json.
  • vite.localServerUrl - Specifies the URL of the local Vite development server. Default is http://localhost:5173.
  • vite.resourcePath - Specifies the path to Vite resources. Default is /resources.

Usage example:

@Configuration
@EnableVite
public class AppConfig {
    // Your other Spring configuration
}

See also

Types

Link copied to clipboard
@Configuration
open class ViteConfig
Configuration class for integrating Vite with Spring MVC applications.