SSM整合问题记录

问题一

报错信息:

Error creating bean with name 'requestMappingHandlerMapping' defined in org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'bookController' method
com.rsh.ssm.controller.BookController#getByCondition(TbBook)
to {GET [/books]}: There is already 'bookController' bean method

 

 当出现这种错误时一定是你的controller内部出错,仔细检查,把不合理的部分去掉修改即可。

问题二

在整合ssm时,找不到或打不开jdbc.properties

解决方案:修改下面路径即可。

 

posted @ 2022-10-04 00:21  几人著眼到青衫  阅读(58)  评论(0)    收藏  举报