2018年10月8日

Java中从txt文件中读取和存储内容出现乱码

摘要: (1) 要统一编码,java工程的编码,txt文本编码,java工程中的java文本编码都统一为utf-8;(2) 利用IO文件流的 InputStreamReader()和OutputStreamWriter()这两个函数对文件进行读取和存储操作 图片是百度截图了别人的笔记,网址当时没复制真的很抱 阅读全文

posted @ 2018-10-08 15:46 才小有 阅读(3551) 评论(0) 推荐(0) 编辑

素数方法(thinking in java)

摘要: // control/Primes.java// TIJ4 Chapter Control, Exercise 4, page 139// Write a program that uses two nested for loops and the modulus operator (%)// to 阅读全文

posted @ 2018-10-08 15:39 才小有 阅读(139) 评论(0) 推荐(0) 编辑

==与equal的区别(thinking in java,解释的角度很有意思)

摘要: 1.==Integer n1 = new Integer(47);Integer n2 = new Integer(47); System.out.println(n1 == n2);System.out.println(n1 != n2); 2. equalsclass Value { int i 阅读全文

posted @ 2018-10-08 15:35 才小有 阅读(207) 评论(0) 推荐(0) 编辑

Failed to read schema document 'http://www.springframework.org/schema/mvc/spring-mvc.xsd'

摘要: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:d 阅读全文

posted @ 2018-10-08 15:25 才小有 阅读(3156) 评论(0) 推荐(0) 编辑

项目启动时间超时问题

摘要: 1、双击Servers视图中的对应的Server,打开Server的属性界面。 2、Timeouts->Start属性中,将值45修改为足够大。 3、保存修改,重启动Tomcat。如果仍然报Timeout错误,继续上述步骤将Timeouts下的Start值改大。 学习自:https://blog.c 阅读全文

posted @ 2018-10-08 15:20 才小有 阅读(671) 评论(0) 推荐(0) 编辑

sql FLOAT字段使用like查询

摘要: eg: and a.sort LIKE 0.1 阅读全文

posted @ 2018-10-08 15:16 才小有 阅读(531) 评论(0) 推荐(0) 编辑

2018年9月30日

关于sql--时间范围查询重叠

摘要: 1.常常碰到要校验数据范围是否存在重叠冲突的情况,典型的场景是房间预订。假如房间A已经有9月1日-9月10日的预订记录,当其它客人再来预订时,系统必须判断,不能与这个日期范围产生重叠。有四种情况会产生重叠:1、全包含:例如用户企图预订8月30日-9月15日;2、被包含:例如用户企图预订9月5日-9月 阅读全文

posted @ 2018-09-30 17:43 才小有 阅读(2127) 评论(0) 推荐(0) 编辑

关于java时间类型比较

摘要: int res = date1.compareTo(date2),相等则返回0,date1大返回1,否则返回-1。 阅读全文

posted @ 2018-09-30 17:41 才小有 阅读(2240) 评论(0) 推荐(1) 编辑

前端-搜索无结果时,怎么把“暂无数据“显示出来?

摘要: 学习自:https://segmentfault.com/q/1010000012270186,谢谢。 阅读全文

posted @ 2018-09-30 17:40 才小有 阅读(3436) 评论(1) 推荐(0) 编辑

v-for动态赋值给不同的下拉框input

摘要: https://cn.vuejs.org/v2/guide/forms.htmlhttps://segmentfault.com/q/1010000006031392图,最后自己解决的并未用上述方案 阅读全文

posted @ 2018-09-30 17:39 才小有 阅读(2103) 评论(0) 推荐(0) 编辑

导航