springboot集成jpa
idea热部署
idea热部署的步骤:1.2.3.
java杂货
杂货一continue语句的使用场景 for (int i = 0; i < 10; i++) { if (i==5){ continue; } System.out.println(i); } 打印的结果中5没有打印出来 或者: int a=4; for
数据库索引优化查询速度
最近做一个向交警那边推送违章过车数据的项目,但是我们这边的元数据的数据量都是很大的,几亿的数据,所以查询速度不理想,但是加上索引,效果就不一样了。查看某张表的索引:1.show index from 表名称; show index from attach; 2.在navicate中点击设计表,然后点击索引选项添加单列索引alter table 表名称 add index 索引名称 (字段);
mybatis错误之 Property 'configuration' and 'configLocation' can not specified with together 解决
mybatis 加入mybatis配置文件时 mybatis.config-location=classpath:mybatis/mybatis-config.xml突然报错 Property 'configuration' and 'configLocation' can not specified with together错误原因已经提示的很清楚了 configuration 和 confi