SSM整合学习笔记

对学习Spring+Spring MVC+Mybatis过程中出现的问题解决办法汇总

出现的问题

1.pom.xml报错

右键项目->maven->update project

因此每次更新完pom要升级下工程

2.tomcat无法启动

检查项目WEB-INF/lib的目录是否正确

3.No mapping found for HTTP request with URI

检查spring-mvc配置文件中自动扫描controller的类名是否正确

4.mybatis插入中文数据库乱码

在jdbc配置文件中修改为:

    url=jdbc:mysql://localhost:3306/hotel?useUnicode=true&characterEncoding=utf-8

如果是xml文件需要将&改成&

posted @ 2016-09-18 21:15  CHENV  阅读(266)  评论(0编辑  收藏  举报