Extend Wicket application configuration
masterYou can add custom configuration to the Wicket WebApplication using two different approaches:
1. Using WicketApplicationInitConfiguration
Create a bean that implements WicketApplicationInitConfiguration and annotate it with @ApplicationInitExtension. This is ideal for modular extensions.
2. Overriding WebApplication methods
If you need to override core methods of the Wicket WebApplication class, create a @Component that extends one of the following:
WicketBootStandardWebApplication: Standard application without security.WicketBootSecuredWebApplication: Application with security (requires a security provider like Spring Security).
Your custom class will automatically be picked up instead of the default provided one.
@ApplicationInitExtension
public class YouExtensionConif implements WicketApplicationInitConfiguration {
@Override
public void init(WebApplication webApplication) {
// your custom configuration
}
}