setup application using annotations on config classes.