文章目录
Rebuild
有可能代码的更改没有生效,Rebuild可将生成的缓存字节码信息全部刷新 全部重置执行。
NoClassDefFoundError:org/springframework/dao/support/DaoSupport
在pom中添加一下两个依赖:
<!--spring数据连接和事务相关-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>4.1.7.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.1.7.RELEASE</version>
</dependency>
[/mapper/]cannot be resolved to URL because it does not exist
Could not find result Map
方法1:StudentMapper.xml里将返回类型由resultMap改为resultType
方法2:自定义映射ResultMap
Table ‘test.student’ does not exist
哈哈!是不是复制别人的代码了?在spring-core里检查jdbcUrl,改为自己的数据库名。
com.tulun.Student doe not have the property ‘Sname’
根据StudentList.jsp里代码智能提示,将var属性名首字母改为小写,原类属性名不用变。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。