随笔分类 - 错误日志
摘要:问题:电脑突然关机,然后提交文件的时候提示 unable to resolve r eference ‘refs/remotes/origin/xxx‘: reference broken 解决方法:删除.git文件夹下的(上面路径的文件)refs/remotes/origin/xxx,再push就
阅读全文
摘要:使用Bigdecimal 做除法 public static void main(String[] args) { // 1、不设置保留位数 System.out.println(BigDecimal.valueOf(2).divide(BigDecimal.valueOf(3))); // 2、d
阅读全文
摘要:设置id自增,但是在进行数据的插入时,系统提示Failed to read auto-increment value from storage engine(从存储引擎读取自增字段失败)错误; 1)把涉及数据表的自增字段的自增选项去掉,保存一下 2)重新将这个字段设置为自增字段
阅读全文
摘要:问题复现: public static void main(String[] args) { Map<String, Object> map = new HashMap<>(); map.put("code", "123"); map.put("name", null); System.out.pr
阅读全文
摘要:跨域配置完成以后,又进行拦截器的配置,发现跨域配置失效,以下是原配置 @Configuration public class CORSConfig implements WebMvcConfigurer { @Bean public WebMvcConfigurer corsConfigurer()
阅读全文
摘要:进行文件上传测试时候: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of
阅读全文
摘要:// 拦截所有请求,通过判断token是否合法来决定是否需要登录 registry.addInterceptor(jwtInterceptor()). addPathPatterns("/**"). excludePathPatterns( "/api/sysUser/login", "/api/s
阅读全文
摘要:报错日志: Description: The dependencies of some of the beans in the application context form a cycle: personController (field com.example.wongz.service.Us
阅读全文
摘要:在配置类中没有加上 @Configuration 导致@Bean之间不能相互调用
阅读全文
摘要:前端传入mapList<User> userList = (List<User>) map.get("userList"); List<User> result=JSON.parseArray(JSON.toJSONString(userList),User.class);
阅读全文
摘要:select DISTINCT(left(created_on, 10)) createDate from record where plan_id = '123456789' order by created_on desc; 报错信息: Expression #1 of ORDER BY cla
阅读全文
摘要:1、将数组转换成集合 String [] arr = new String[]{"1", "2", "3"}; List<String> list = Arrays.asList(arr); list.remove("1"); 控制台报错: Exception in thread "main" ja
阅读全文
摘要:解决办法:window10 参考:https://blog.csdn.net/qq_41548644/article/details/111999269 git stash drop stash@`{0`}
阅读全文
摘要:报错原因: 项目中要压缩图片 用maven 打包时,提示 程序包com.sun.image.codec.jpeg不存在 解决方法: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plug
阅读全文
摘要:springboot 项目部署到tomcat 下,上传附件出现问题: 报错信息: [http-nio-80-exec-544] 2021-09-29 15:54:20 (GlobalExceptionHandler.java:372) 运行时异常: org.springframework.web.m
阅读全文
摘要:spring 整合 mybatis 报错日志 Exception in thread "main" org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste
阅读全文
摘要:spring 整合 mybatis 报错信息 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.SqlSessio
阅读全文
摘要:spring 整合 mybatis 报错信息 java.lang.NoClassDefFoundError: org/apache/commons/pool/KeyedObjectPoolFactory 找不到commons-pool, 添加commons-pool-1.6依赖 <dependenc
阅读全文
摘要:报错信息: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'XXX' which is not functionally dependent on columns in
阅读全文
摘要:mvn compile 没有问题,mvn package的时候报如下错误: 解决方法: 打包跳过测试有两种方法 一是命令行:mvn clean package -Dmaven.test.skip=true 二是写入pom文件: <plugin> <groupId>org.apache.maven.p
阅读全文