- A query was run and no Result Maps were found for the Mapped Statement
问题的原因是:
框架不知道查询完成之后要封装到哪里,所以没有一个返回类型:
这里是在select标签中缺少了resultType类型
解决方式如下,添加封装的位置
- 这个问题是在连接数据库时出现的
Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
解决方式
只需要在配置数据库链接的时候加上对SSL的配置即可
加粗部分为需要添加的内容
property name=“url” value="jdbc:mysql://localhost:3306/mybaits?characterEncoding=utf8&useSSL=false