入门SSM常见错误总结

错误信息:

A query was run and no Result Maps were found for the Mapped Statement
解决:
使用mybatis进行查询时,没有给定resultType值出现的错误。resultType是查询对象的类型。
https://blog.csdn.net/carl_jiang/article/details/53788447


错误信息:

The server time zone value '?й???????' is unrecognized or represents more than one time zone
解决:
在项目代码-数据库连接URL后,加上 (注意大小写必须一致)
?serverTimezone=UTC
https://www.cnblogs.com/shanelau/p/7041293.html


错误信息:

Could not get JDBC Connection

解决:
${username}的值并不是jdbc.properties文件中的username值,而是JVM系统环境变量的username。

https://blog.csdn.net/kuohsing/article/details/39452849


错误信息:

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

解决:

将com.mysql.jdbc.Driver  改为  com.mysql.cj.jdbc.Driver

https://blog.csdn.net/anaini1314/article/details/71157791


错误信息

org.apache.jasper.JasperException: Unable to convert string "${topic.postTime}" to class "java.util.Date" for attribute "value": Property Editor not registered with the PropertyEditorManager 

解决:

在jsp页面头加:<%@page isELIgnored="false"%>

http://xtfncel.iteye.com/blog/649228

你可能感兴趣的:(入门SSM常见错误总结)