Looks like the problem above is due to the constru...
# getting-started
b
Looks like the problem above is due to the constructor. There is something is spring data that doesn't like this class to have a constructor.
p
I can guess that spring is using reflection and default constructor to create the instance. You second example doesn’t have default constructor and probably that’s why it doesn’t work.
b
Someone else pointed to me that Spring hates final classes. I have to try using open classes on that.
n
or use all-open plugin
s
the spring-boot plugin opens all annoted classes (at least the @Service, @Component, @Repository ones. I’m not sure about @Document/SolrDocument)
b
yep that's what I ended up using
seems to work