- 博客(7)
- 收藏
- 关注
原创 mybatis的配置文件和pom配置文件的冲突
mybatis的配置文件里面设置了mybatis: mapper-locations: classpath:mapper/*.xml和pom配置文件里面配置<resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </r
2022-03-09 10:39:29
357
原创 资源依赖项注入失败: org.springframework.beans.factory.BeanCreationException: Error creating bean with name
在pom文件中查看是否都扫描了项目所有的xml文件,之前因为没有扫描resource导致一直出错找不到原因。其中还有可能是mysql数据库配置文件没配置好,如果将com.mysql.cj.jdbc.Driver修改为com.mysql.jdbc.Driver还是会报这样的错,就说明是在此之前就报错了,往前找,进行排错。...
2022-03-04 15:35:17
1132
原创 Form表单只支持post和get,如果要用delete和put如何设置?
在properties配置文件中启用过滤器在html页面中的表单中增加隐藏域来修改最后到controller中修改对应的注解很多次因为没修改注解导致跳转页面出现400或500错误
2022-03-04 15:29:53
285
原创 springboot:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
springboot出现这个错误,是在application中出现了中文,导致springUsing 'UTF-8' encoding to copy filtered resources.解决办法:添加plugin跑出来的网页还是出现中文乱码,可在file->setting->editor->file encodings下,勾选transparent native-to-ascll conversion即可,如图所示...
2022-03-01 09:57:34
1254
原创 error:java :程序包org.apache.ibatis.io不存在;程序包org.apache.ibatis.session不存在
跟着动力节点王鹤老师版本写的mybatis
2022-02-18 13:53:58
1923
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅