Java Config
The configuration class needs only to be a class that is on the classpath of your application and visible to your applications main class.
class MyApp {
public static void main(String[] args) throws Exception {
AnnotationConfigApplicationContext appContext =
...