Experimental library with custom hand-picked autoconfigurations in Spring Boot. Example:
@SpringBootFeaturesApplication(WebFluxConfigurations.class)
public class InterceptorApplication {
public static void main(String[] args) {
SpringApplication.run(InterceptorApplication.class, args);
}
@Bean
public RouterFunction<?> userEndpoints() {
return route(GET("/"), request -> ok().body(Mono.just("Hello"), String.class));
}
}
Petclinic startup benchmarks:
class method sample beans classes heap memory median mean range
PetClinicBenchmarkIT auto demo 145.000 5726.000 14.859 86.225 1.213 1.228 0.022
PetClinicBenchmarkIT auto actr 187.000 6330.000 16.484 91.591 1.324 1.350 0.023
-
demo
is without actuators. Starts in 1.2sec. -
actr
adds back actuators (just /health and /info)