调试的时候系统报这个错
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'parameterType="String">
select * from Student where sid= 's01'' at line 1
### The error may exist in cn/edu/lingnan/mapper/StudentMapper.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: parameterType="String"> select * from Student where sid= ?
### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'parameterType="String">
select * from Student where sid= 's01'' at line 1
很明显就是.xml文件里面写错了
请检查发现 看起来就很奇怪 parameterType 这个单词都没有变颜色
就是因为在resultType 后直接加了 " >" 应该去掉 在parameterType后面才加
应该可以跑起来了 要细心