上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 70 下一页
摘要: 默认office2007(word2007)是没有另存为pdf文档的功能的,需要安装插件 插件地址:https://yvioo.lanzous.com/iO5myedoceh 下载之后直接安装,安装成功后,重新打开word 就会看到另存为pdf功能了 阅读全文
posted @ 2020-07-07 14:14 yvioo 阅读(870) 评论(0) 推荐(0)
摘要: 先把数组转为list 然后再利用contains方法 String[] strArr = new String[] { "a1", "b1", "c1"}; String str = "c1"; List<String> list = Arrays.asList(strArr); boolean r 阅读全文
posted @ 2020-07-06 14:35 yvioo 阅读(14077) 评论(0) 推荐(0)
摘要: 引入maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> 有 阅读全文
posted @ 2020-07-03 11:35 yvioo 阅读(728) 评论(0) 推荐(0)
摘要: tomcat启动报错后显示以下错误 ## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocation (malloc) failed to allocate 阅读全文
posted @ 2020-06-30 18:13 yvioo 阅读(3154) 评论(0) 推荐(0)
摘要: 在java项目中,我们会遇到价格、金额的数据,这时候我们java中应该用BigDecimal类型,数据库用decimal类型, 长度可以自定义, 如18; 小数点我们项目中用的是2, 保留2位小数. 此外还要注意的就是默认值, 一定写成0.00, 不要用默认的NULL, 否则在进行加减排序等操作时, 阅读全文
posted @ 2020-06-30 10:06 yvioo 阅读(2016) 评论(0) 推荐(0)
摘要: /** * 获取当前日期的下周一到下周日的所有日期集合 * @return */ public static List getNextWeekDateList(){ Calendar cal1 = Calendar.getInstance(); Calendar cal2 =Calendar.get 阅读全文
posted @ 2020-06-28 17:12 yvioo 阅读(2734) 评论(0) 推荐(0)
摘要: 注: SimpleDateFormat是线程不安全的 public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); public static SimpleDateFormat format1 = new Simp 阅读全文
posted @ 2020-06-28 16:11 yvioo 阅读(10665) 评论(2) 推荐(0)
摘要: /** * 获取当前日期所在的周一到周日的所有日期集合 * @return */ public static List<Date> getWeekDateList() { Calendar cal = Calendar.getInstance(); // 设置一个星期的第一天,按中国的习惯一个星期的 阅读全文
posted @ 2020-06-28 15:21 yvioo 阅读(2827) 评论(0) 推荐(0)
摘要: /** * 获取当前时间所在周的周一和周日的日期时间 * @return */ public static Map<String,String> getWeekDate() { Map<String,String> map = new HashMap(); SimpleDateFormat sdf 阅读全文
posted @ 2020-06-28 15:15 yvioo 阅读(17633) 评论(0) 推荐(1)
摘要: /** * 获取当前周的周一的日期 * @param date 传入当前日期 * @return */ public static Date getThisWeekMonday(Date date) { Calendar cal = Calendar.getInstance(); cal.setTi 阅读全文
posted @ 2020-06-28 14:43 yvioo 阅读(7408) 评论(0) 推荐(0)
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 70 下一页