
Java
文章平均质量分 54
minge0001
此人不懒,但也是什么都没写。
展开
-
SpringCloudAlibaba项目报错java.lang.IllegalArgumentException: Could not find class [org.springframew解决方案
SpringCloudAlibaba项目启动报错:完整报错如下:原因是SpringCloud版本不对,修改SpringCloud版本版本改成如下:原创 2022-06-12 17:37:28 · 5451 阅读 · 2 评论 -
Java8新特性
HashMapjdk1.7:数组+链表jdk1.8:数组+链表+红黑树当哈希碰撞即链表上个数大于8并且总容量个数大于64,链表转成红黑树红黑树除了添加以外,其他(查询、删除)效率都比链表高扩容后重排序,不用重新运算hashCode值,直接找对应元素在原来哈希表的总长度加上它当前所在哈希表的位置HashSet,同理ConcurrentHashMapjdk1.7并发级别:16锁+段机制:默认16段,每段默认16表段太多浪费空间,段太少导致每段元素过多效率遍地jdk1.8CAS无锁算法原创 2021-05-09 02:02:31 · 31049 阅读 · 25 评论 -
SpringBoot项目报警告:Cannot find template location(s): [classpath:/templates/]
问题:SpringBoot项目报警告:Cannot find template location(s): [classpath:/templates/] (please add some templates, check your FreeMarker configuration, or set spring.freemarker.checkTemplateLocation=false),具体如...原创 2020-02-13 18:10:21 · 4727 阅读 · 3 评论 -
SpringBoot 整合 Mybatis 报错:Caused by: org.apache.ibatis.binding.BindingException
问题:Springboot 整合 Mybatis 报错:Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.lm.springboot.mapper.PrivilegeMapper.selectByExample,具体如下:"E:\Program File...原创 2020-02-13 17:30:18 · 1095 阅读 · 1 评论 -
Spring Cloud项目报“com.netflix.client.ClientException: Load balancer does not have available server ”
Spring Cloud项目启动访问后报如下错误:com.netflix.client.ClientException: Load balancer does not have available server for client: springcloud-hystrix-user at com.netflix.loadbalancer.LoadBalancerContext.getServ...原创 2020-01-29 16:50:31 · 1377 阅读 · 0 评论 -
pom.xml配置添加依赖失败,用mvn install命令,报错“Non-resolvable import POM...”解决方法
pom.xml配置添加依赖失败,用mvn install命令,报错“Non-resolvable import POM...”解决方法对pom.xml文件进行“mvn install”命令报如下错误:[ERROR] [ERROR] Some problems were encountered while processing the POMs:[ERROR] Non-resolvable i...原创 2020-01-27 16:33:06 · 15191 阅读 · 0 评论 -
Spring Boot 工程启动报错"org.springframework.context.ApplicationContextException: Unable to start ..."解决方案
Spring Boot 工程启动失败org.springframework.context.ApplicationContextException: Unable to start embedded原创 2017-12-12 10:15:23 · 98068 阅读 · 2 评论 -
关于Mybatis插入数据返回主键的问题
记得老早就做过这种功能,就是在新增的时候返回主键id,但最近碰到又是折腾了很久,真是年纪大了,越简单的越记不住了,话不多说,上代码mapper文件代码<insert id="insert" parameterType="com.lm.jsyst.entity.Simulation" useGeneratedKeys="true" keyProperty="id"> INSER...原创 2019-07-03 10:12:53 · 254 阅读 · 0 评论 -
nginx报错“unknown directive "" in D:\nginx-1.4.3/conf/nginx.conf:4”的解决方案
nginx报错“unknown directive "" in D:\nginx-1.4.3/conf/nginx.conf:4”的解决方案原创 2017-06-05 10:22:12 · 4504 阅读 · 0 评论 -
异常“check the manual that corresponds to your MySQL server version for the right syntax to use near ”
异常“check the manual that corresponds to your MySQL server version for the right syntax to use near ”原创 2017-05-17 22:40:59 · 2979 阅读 · 0 评论 -
Maven项目pom.xml文件报错“ ArtifactDescriptorException: Failed to read artifact descriptor for ...”解决方法
Maven项目pom.xml文件报错原创 2017-05-04 17:28:07 · 8077 阅读 · 6 评论 -
Java中二进制、八进制、十六进制变量的声明以及与十进制的互转
Java中二进制、八进制、十六进制与十进制原创 2017-04-05 14:26:25 · 19398 阅读 · 3 评论