SpringMVC自定义类型转换器启动Tomcat时报错

 

Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Initialization of bean failed;

 

 

 

 

请检查一下转换器的泛型是否指定

 

 

 

 这里不能不写,用object不会报错,但是我试了一下没有执行该转换器,换成正常的类型就可以了如:Integer、String

 

posted @ 2021-01-12 08:28  李沁小迷弟  阅读(106)  评论(0)    收藏  举报