all I want to do is autowire the field backgroundGray in the NotesPanel class, but all I get is the exception below.
So, question is, how to autowire it correctly ? It r
When you create an object by new, autowire\inject don't work...
as workaround you can try this:
create your template bean of NotesPanel
and create an istance in this way
context.getBean("notesPanel");
PROTOTYPE : This scopes a single bean definition to have any number of object instances.