By annotation @LoadInstaed you can replace any beans in Spring application context.