当我在tms-servlet.xml中包含以下内容时,我收到以上错误消息
<mvc:annotation-driven />
与:
class TrainingInstructorController {
private ConversionService conversionService;
//Autowiring the ConversionService we declared in the context file above.
@InitBinder
public void registerConversionServices(WebDataBinder dataBinder) {
dataBinder.setConversionService(conversionService);
}
}
删除mvc:annotation-driven
将解决问题。
为什么会这样?有什么问题?