ciferkey
07/20/2018, 1:49 PMException in thread "main" java.lang.IllegalStateException: org.springframework.context.support.GenericApplicationContext@5cc7c2a6 has not been refreshed yetThe exception does not happen if I wire the routes directly in the application class. Here is some example code and the full stack trace: https://gist.github.com/ciferkey/02be73b8dd18add59c8d63b528c79a12 Any thoughts why?