springmvc
万里挑一的倒霉蛋
Life of short I love you!
展开
-
springmvc项目改为springboot
spring mvc工程改为spring boot工程1.创建spring boot项目创建springboot项目将原项目中的文件复制过来,将webapp目录设置为web资源目录(File->Project Structure->Modules->(项目名)->Web->Web Resource Directories点击+选择webapp)2.引入相关依赖这里需要引入数据库依赖、如果原项目中用到jsp页面需要引入jsp、jstl依赖 <!--原创 2021-05-31 21:06:14 · 4357 阅读 · 0 评论 -
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exc
出现这个异常主要是查询数据库时的问题主要有以下几点:1.语句问题,检查自己语句是否存在语法问题2.结果映射问题3.mysql连接问题,检查jdbc连接使用的mysql版本是否有问题以及driver、url、root、password是否填写有误。另外driver在mysql6以上需要使用com.mysql.cj.jdbc.Driver...原创 2020-12-17 23:33:21 · 1526 阅读 · 0 评论