Loading

随笔分类 -  其他

摘要:BASE64Encoder base64Encoder =new BASE64Encoder(); //存放图片转码后的数据 String base64EncoderImg = ""; try { ByteArrayOutputStream out = new ByteArrayOutputStre 阅读全文
posted @ 2019-11-28 17:54 mikemhm 阅读(1466) 评论(0) 推荐(0)
摘要:最近需要发送邮件,就找到Hutool工具来,感觉比较方便,可是在看案例的时候,都按照案例来的,一直报错。我用的是126邮箱来的。 Exception in thread "main" cn.hutool.extra.mail.MailException: AuthenticationFailedEx 阅读全文
posted @ 2019-11-07 13:58 mikemhm 阅读(5445) 评论(1) 推荐(0)
摘要:1 /** 2 * 获取用户名 从session中 3 * 1.怎么拿到session? 不敢保证只有一个 装配不行 传参不行 4 * 5 * 通过RequestContextHolder 中的方法 可以获取的是当前请求 6 */ 7 ServletRequestAttributes request 阅读全文
posted @ 2019-06-25 09:27 mikemhm 阅读(576) 评论(0) 推荐(0)