Simple, remove any bean, configuration annotation that you use, then write short code to initial what you want. More complex way, use profile, set each class, function or anything that you want to run in test phrase and run with test profile
@Component
@Profile("test")
public class TitlesSeeder {
}