04 2019 档案

摘要://二分查找的前提是有序的数。public class BinarySearch { public static void main(String[] args) { int[] arr = {1, 2, 4, 5, 6, 8, 9, 10}; System.out.println(binarySe 阅读全文
posted @ 2019-04-28 15:33 jason小蜗牛 阅读(178) 评论(0) 推荐(0) 编辑
摘要://选择排序//基本思想:从原始数组中寻找最小的那个数,然后与第一个数交换,依次类推public class SelectionSort { public static void main(String[] args) { int[] arr = {1, 4, 15, 63, 33, -1, 0, 阅读全文
posted @ 2019-04-28 14:56 jason小蜗牛 阅读(218) 评论(0) 推荐(0) 编辑
摘要://插入排序//从第一个元素开始,每个数往前插入,后一个数与前一个数相比较,如果后一个数小于前一个数,则将后一个数往前移位。public class InsertSort { public static void main(String[] args) { int[] arr = {-2, 52, 阅读全文
posted @ 2019-04-28 14:50 jason小蜗牛 阅读(199) 评论(0) 推荐(0) 编辑
摘要://两数交换不用中间变量public class TwoChange { public static void main(String[] args) { int a = 3, b = 5; //第一种方式采用加减法实现 /* a = a + b; b = a - b; a = a - b;*/ / 阅读全文
posted @ 2019-04-27 16:32 jason小蜗牛 阅读(322) 评论(0) 推荐(0) 编辑
摘要:快速排序是冒泡排序的改进,效率比较高,基本思想也是两两相比较。 阅读全文
posted @ 2019-04-27 16:24 jason小蜗牛 阅读(199) 评论(0) 推荐(0) 编辑
摘要://冒泡排序//冒泡排序要经过N-1步的中间排序才能排完,效率较低public class BublleSort { public static void main(String[] args) { int[] arr = {1, 56, 36, 74, 2, 6, 3, 21, 5}; bubbl 阅读全文
posted @ 2019-04-27 14:57 jason小蜗牛 阅读(184) 评论(0) 推荐(0) 编辑
摘要:Unknown system variable 'query_cache_size'] with root cause 出现这个错误是因为mysql连接数据库的版本不对, 阅读全文
posted @ 2019-04-16 20:43 jason小蜗牛 阅读(441) 评论(0) 推荐(0) 编辑
摘要:通配符的匹配很全面, 但无法找到元素 'mvc:annotation-driven' 的声明 错误原因是springmvc中的约束信息不对 阅读全文
posted @ 2019-04-16 20:41 jason小蜗牛 阅读(1663) 评论(0) 推荐(0) 编辑
摘要:常见的404 not found资源路径不存在,遇到了路径没有错,但老是报404,错误,检查了好几遍都不知道错在哪儿。 分析原因有以下几种: 1.资源路径有可能真的错了,注意相对路径和绝对路径,./和../的区别,一个是当前目录,一个上一级目录,/是根目录。 2.重新启动服务器。再试试看访问 3.如 阅读全文
posted @ 2019-04-09 08:22 jason小蜗牛 阅读(270) 评论(0) 推荐(0) 编辑
摘要:使用spring+mybatis整合时报错:org.springframework.jdbc.support.SQLErrorCodesFactory - SQLErrorCodes loaded 错误原因是; 1.参数与数据库字段不匹配,可能是映射文件sql语句写错了,字段名与数据库中的字段名不匹 阅读全文
posted @ 2019-04-09 08:15 jason小蜗牛 阅读(8064) 评论(1) 推荐(0) 编辑
摘要:spring 容器中的bean的完整生命周期一共分为十一步完成。 1.bean对象的实例化 2.封装属性,也就是设置properties中的属性值 3.如果bean实现了BeanNameAware,则执行setBeanName方法,也就是bean中的id值 4.如果实现BeanFactoryAwar 阅读全文
posted @ 2019-04-06 10:06 jason小蜗牛 阅读(23097) 评论(0) 推荐(4) 编辑
摘要:使用idea+maven+ssm搭建一个boot_crm项目,遇到的问题如下: 1.环境搭建好了,相关配置文件都配置好了,也部署到了tomcat,但是无法启动首页。 通过百度,google找到了,原因是web.xml文件出了问题,使用maven构建web项目时web.xml的头文件是 阅读全文
posted @ 2019-04-02 08:32 jason小蜗牛 阅读(426) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示