Skip to content

Removing Microserver config classes

johnmcclean-aol edited this page Nov 14, 2015 · 1 revision

Microserver Spring Congiguration classes

Microserver works by providing a core Spring configuration engine as well as plugins that autowire their functionality via Spring.

Microserver applications, but not plugins, can blacklist any Spring Configuration Classes from the Core or from any Microserver plugin.

You might want to use this functionality to define your own Scheduling and Async configuration class.

To that add the target class to the blacklistedClasses array on the Microserver annotation.

Microserver(blacklistedClasses={ScheduleAndAsyncConfig.class})

In the above example we have removed the default Scheduling configuration for Spring, which then allows us to plug in a new application specific schedular.