Daniel Demesmaecker wrote:It dosn't, the problem is not fx related or how to combine everything. Everything is working great. The problem is how to autowire my repo from the mainClass.
But that
is the problem.
You are trying to autowire the Main class while you are
inside the instance of the Main class you want to autowire.
That call to
SpringApplication.run cannot Autowire the
TimeStampRepo instance that is inside the class that this method is a part of.
Indeed, that call will result in Spring creating
another Main instance with the Autowired value, but that instance will
not have kicked off as a JavaFX app.