java
Otaku love travel
javaweb
展开
-
日期工具类
/** * 获取日期之间的天数 * @param d1 * @param d2 * @return */ public int getDaysBetween(java.util.Calendar d1, java.util.Calendar d2) { if (d1.after(d2)) { java.util.Calendar swap = d1; d1 = d2; d2 = swap; } int days = d2.get(java.util.Cal原创 2020-08-15 23:10:05 · 127 阅读 · 0 评论 -
java单数据源改多数据源配置(hibernate)
xml配置 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context=...原创 2018-07-03 13:42:14 · 1820 阅读 · 0 评论 -
maven打包项目自动前端静态资源版本号解决缓存问题
<!-- 构建项目 --> <build> <plugins> <plugin> <groupId>com.google.code.maven-replacer-plugin</groupId> <artifactId>replacer</artifactId> <...原创 2019-06-04 14:32:20 · 1854 阅读 · 1 评论 -
阿里云sms短信服务工具类
阿里云sms短信服务工具类 package com.pwd.sms; import com.aliyuncs.CommonRequest; import com.aliyuncs.CommonResponse; import com.aliyuncs.DefaultAcsClient; import com.aliyuncs.IAcsClient; import com.aliyuncs.exc...原创 2019-06-04 14:47:05 · 1105 阅读 · 0 评论