索引
一、站立式会议
二、工作情况
已完成的工作 |
接下来一天的工作 |
完成部分服务端接口的设计 |
继续完善项目所有service接口 |
三、燃尽图
四、相关代码/文档签入
五、最近新模块代码
public class StringUtils {
private static class LayHolder {
private static final StringUtils instance = new StringUtils();
}
private StringUtils() {
}
public static StringUtils getInstance() {
return LayHolder.instance;
}
public String replaceBlank(String str) {
String dest = "";
if (str != null) {
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
Matcher m = p.matcher(str);
dest = m.replaceAll("");
}
return dest;
}
public String getRandomChar() {
Random random = new Random();
String s = "qw2ert1yui6opa7s3df9ghj5klz0x4cv8bnmQWERTYUIOPASDFGHJKLZXCVBNM";
StringBuffer stringBuffer = new StringBuffer();
char[] chars = s.toCharArray();
for (int i = 0; i < 10; i++) {
stringBuffer.append(chars[random.nextInt(s.length())]);
}
return stringBuffer.toString();
}
public String DateToString(Date date) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String result = simpleDateFormat.format(date);
return result;
}
public boolean isPhone(String phone) {
Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
Matcher m = p.matcher(phone);
return m.matches();
}
public String getMD5(String str) {
String result = "";
try {
MessageDigest md5 = MessageDigest.getInstance("MD5");
BASE64Encoder base64Encoder = new BASE64Encoder();
result = base64Encoder.encode(md5.digest(str.getBytes("UTF-8")));
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return result;
}
public boolean isNullOrEmpty(Object obj) {
if (obj == null)
return true;
if (obj instanceof CharSequence)
return ((CharSequence) obj).length() == 0;
if (obj instanceof Collection)
return ((Collection) obj).isEmpty();
if (obj instanceof Map)
return ((Map) obj).isEmpty();
if (obj instanceof Object[]) {
Object[] object = (Object[]) obj;
if (object.length == 0) {
return true;
}
boolean empty = true;
for (int i = 0; i < object.length; i++) {
if (!isNullOrEmpty(object[i])) {
empty = false;
break;
}
}
return empty;
}
return false;
}
public ArrayList readTxt() throws IOException {
ArrayList<String> list = new ArrayList<>();
String encoding = "GBK";
File file = new File("D:\\image\\txt\\all.txt");
InputStreamReader reader = new InputStreamReader(new FileInputStream(file), encoding);
BufferedReader bufferedReader = new BufferedReader(reader);
String txt;
while ((txt = bufferedReader.readLine()) != null) {
list.add(txt);
}
reader.close();
return list;
}
public String txtReplace(String test) {
try {
ArrayList<String> list = readTxt();
test = test.replaceAll("\\s*|\t|\r|\n", "");
for (String aList : list) {
test = test.replaceAll(aList, "**");
}
} catch (IOException e) {
e.printStackTrace();
return null;
}
return test;
}
public boolean thumbnails(String path, String save) {
// String random = getRandom();
// StringBuilder stringBuilder = new StringBuilder();
// stringBuilder.append("D:/image/cc/");
// stringBuilder.append(random);
// stringBuilder.append(new Date().getTime());
// stringBuilder.append(".jpg");
try {
Thumbnails.of(path).size(215, 229).toFile(save);
return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
}
六、每日每人总结
成员 |
每日总结 |
何智聪 |
又是摸鱼的一天,明天接着摸鱼 |
黄浩楠 |
学了html,css,javaScript,觉得很有用,做出来页面很有成就感!觉得自己也很不错呢! |
黄春光 |
今天设计了商城服务接口定义,对于服务端的一些功能有了更深入的认识 |
黄有权 |
学了数据库新知识,这些新知识的积累,对我以后的工作有很大帮助。 |
邓盛永 |
打呀打呀打代码,打了一天的小代码 |
王嘉杰 |
今天的url类工具有一点点难度,但经过讨论后还是成功解决了,明天再接再厉!冲! |