随笔分类 -  问题集

用来整理遇到的问题和解决办法
014 springboot2.7.10与swagger3.0.0出现的版本冲突问题,以及解决办法
摘要:springboot2.7.10集成Swagger3.0.0过程中出现的错误提示 翻译过来: 解决办法: 1. 网上的解决办法1: 在配置文件中添加以下内容 spring: mvc: # 解决springboot2.7.10与swagger3版本冲突的问题 pathmatch: matching-s 阅读全文
posted @ 2023-12-04 10:07 zzq156 阅读(198) 评论(0) 推荐(0)
springboot项目中idea的pom.xml文件的引用标签全部爆红
摘要:pom.xml引用标签爆红,如图: 原因还是idea识别不是很好,需要清理缓存。 解决办法: 点击菜单中的“”“File” -> "Invalicate Caches /Restart" -> "Invalidate and Restart", 清空cache,并且重启即可 阅读全文
posted @ 2023-12-04 08:02 zzq156 阅读(260) 评论(0) 推荐(0)
0017 MYSQL安装过程出现的问题mysqld: Can't create directory 'D: oft\mysql-5.7.43-winx64\data\'
摘要:问题截图: 翻译出来的结果 解决办法 1. 确保my.ini文件中的basedir与datadir的路径与自己mysql的路径一致 以上方法还不行的话,可以改成下面写法,亲测有用,原因不明 # 设置 mysql 的安装目录 basedir= D:\\soft\\mysql-5.7.43-winx64 阅读全文
posted @ 2023-10-24 06:53 zzq156 阅读(1214) 评论(0) 推荐(1)
017 跨域问题
摘要:截图: 解决跨域问题: 在springboot后台创建config/CorsConfig.java @Configuration public class CorsConfig { //当前跨域请求最大有效时长默认1天 private static final long MAX_AGE = 24 * 阅读全文
posted @ 2023-01-09 11:26 zzq156 阅读(28) 评论(0) 推荐(0)
016 mybatis-plus中的LocalDateTime使用过程中出现的问题
摘要:问题截图 翻译: 对应的版本号: 代码部分: 解决办法:把druid1.1.13改成druid1.1.23就可以用了,具体原因不知道 阅读全文
posted @ 2022-08-05 15:42 zzq156 阅读(216) 评论(0) 推荐(0)
015 错误提示:No qualifying bean of type 'com.test.basis.mapper.UserMapper' available: expected at least 1 bean which qualifies as autowire candidate.
摘要:错误页面: 翻译: 第一个错误的位置 解决办法: ①把xml中内容修改出来 ②:在启动文件中加上@MapperScan("com.test.**.mapper") import org.mybatis.spring.annotation.MapperScan; import org.springfr 阅读全文
posted @ 2022-06-15 14:33 zzq156 阅读(2475) 评论(0) 推荐(0)
014 源映射错误:Error: request failed with status 404
摘要:问题说明:业务层测试正常,控制端测试正常 错误显示图片: 原因找到了,火狐浏览器不支持zoom,还不知道那个文件里面有zoom属性,最好的办法换个浏览器 已经成功 阅读全文
posted @ 2022-06-12 09:30 zzq156 阅读(26) 评论(0) 推荐(0)
013 A query was run and no Result Maps were found for the Mapped Statement 'com.cy.store.mapper.AddressMapper.countByUid'. It's likely that neither a Result Type nor a Result Map was specified.
摘要:报错结果: Caused by: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.cy.store.ma 阅读全文
posted @ 2022-06-07 12:09 zzq156 阅读(179) 评论(0) 推荐(0)
012 The field file exceeds its maximum permitted size of 1048576 bytes.
摘要:上传图片时会出现该错误 解决办法: Spring Boot 1.3.x之前 multipart.maxFileSize=100Mb multipart.maxRequestSize=200Mb Spring Boot 1.4.x spring.http.multipart.maxFileSize=1 阅读全文
posted @ 2022-06-06 16:20 zzq156 阅读(95) 评论(0) 推荐(0)
011 Parameter 'password' not found. Available parameters are [uid, modifiedTime, modifiedUser, arg1, param3, param4, param1, param2]
摘要:错误图片显示: 其中对应的源码是: mapper/UserMapper.java /** * 根据用户的uid来修改用户密码 * @param uid 用户的id * @param password 表示用户修改后的新密码 * @param modifiedUser 表示修改的执行者 * @para 阅读全文
posted @ 2022-06-03 10:41 zzq156 阅读(139) 评论(0) 推荐(0)
010 问题:Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
摘要:错误提示: java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory.BeanCreationException: Error cre 阅读全文
posted @ 2022-05-28 16:54 zzq156 阅读(5156) 评论(0) 推荐(0)
009 问题
摘要:问题内容 原因:idea中有检测的功能,接口是不能都直接创建Bean的(用动态代理技术解决) 解决办法: 阅读全文
posted @ 2022-05-28 15:48 zzq156 阅读(15) 评论(0) 推荐(0)
008 springboot创建项目时,maven处出现jar包加载不上,并且爆红的情况
摘要:问题: maven出现jar包加载不上,或者爆红的情况 这种情况的成因是:以前有jar包没下载完成,或者下载错误,直接占用对应的文件名,导致本地jar包库无法加载到对应文件中(个人理解) 解决办法: 1. 找到自己的本地仓库(jar包库) 2. 删除该目录下所有对应的_remote.reposito 阅读全文
posted @ 2022-05-28 10:41 zzq156 阅读(964) 评论(0) 推荐(0)
007 上传图像的错误提示:Current request is not a multipart request
摘要:错误页面: 常见Content-Type有三种: 1.content-type:application/x-www-form-urlencoded 默认格式,当没有在信息头指定Content-Type的时候,默认使用这种格式传参 key1=value1 key2=value2 2. content- 阅读全文
posted @ 2022-04-27 10:31 zzq156 阅读(129) 评论(0) 推荐(0)
006 在jpa中,@Query使用limit时出错
摘要:错误提示: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the r 阅读全文
posted @ 2022-03-30 02:31 zzq156 阅读(539) 评论(0) 推荐(0)
005 git如何设置签名
摘要:步骤: 1. 创建一个空文件夹 2. 在文件夹中创建.git 3. 设置git签名 具体: ① 右击桌面,选择Git Base Here ② 接下来的内容根据图直接输入即可 阅读全文
posted @ 2022-02-23 11:05 zzq156 阅读(65) 评论(0) 推荐(0)
004 springboot中日志导错包引起的问题
摘要:错误页面显示: 正确的日志包路径 备注:下次一定要注意看清楚导的是什么包,不然出现错误都找不到错的的原因 阅读全文
posted @ 2022-02-16 11:54 zzq156 阅读(43) 评论(0) 推荐(0)
003 使用模板freemark的转义函数html出现的问题
摘要:问题截图: 翻译之后: 解决办法: 浏览器显示: 阅读全文
posted @ 2022-02-14 14:38 zzq156 阅读(35) 评论(0) 推荐(0)
002 使用springboot的模板freemarker运行helloworld出现的错误 Check your ViewResolver setup!
摘要:页面截图: 错误内容翻译: 浏览器显示: 解决办法: 低级问题:由于springboot的版本比较新,所以需要把“index.ftl”改成“index.ftlh“即可 其中查看方式是 阅读全文
posted @ 2022-02-13 11:58 zzq156 阅读(196) 评论(0) 推荐(0)