Maven工程整合SpringMVC和ibatis和Spring

今天整合ssi历经千辛万苦哈,在此记录一下

Could not instantiate bean class: No default constructor found:

找到提示错误的位置,把构造函数给删了,还有daoimpl继承的是sqlmapdaosupport,看看配置是不是有问题。

Servlet.service() for servlet [RegisterServlet] in context with path [/FoodServer] threw exception
java.lang.NullPointerException:

找到提示错误的那里,然后dug运行到那个地方后,鼠标放在上面找到为空的变量,如果dao提示空,因为你没有注入,如果是其他地方有误更改就行。

猜你喜欢

转载自jackmei.iteye.com/blog/2264344
今日推荐