Today, when doing an SSH project, because of the need for timed operation, so I added a quartz in the sping inside a small time frame, the result in the runtime, a small bug occurred.
for for property ' jobfactory ': no matching editors or conversion strategy found
for property ' jobfactory ': no matching editors or conversion strategy found
This is a very small bug, I did not think I was just beginning to notice what was wrong.
Error code:
<name= "Jobfactory" value= "jobfactory"/>
Correct code:
<name= "Jobfactory" ref= "jobfactory"/>
Did you see that? convert string type to the required class type conversion error
Is that value and ref are wrongly written.
In theory, ref is used in the current XML where <bean> tags have been previously configured, and since my SSH framework uses annotation development, the jobfactory in the annotation @service ("jobfactory") can be used directly.
In the spring configuration file, the parameter of value configuration is usually used in numbers, strings, etc., and cannot be placed on objects. And ref is a reference to the object!
The mistakes made today by this year are very special.
Self-thinking about spring's applicationcontext.xml configuration file ref and value