don't try to configure spring if there is no spring.