上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 首先转换时需要用到commons-fileupload-1.3.2.jar包,若项目中没有就先加入jar包,实现代码如下: 1、根据File创建FileItem 2、通过FileItem对象可以轻松获得CommonsMultipartFile对象,转换成MultiPartFile对象即可使用。 阅读全文
posted @ 2019-04-18 14:56 ヤBig、Bossづ 阅读(20149) 评论(0) 推荐(3) 编辑
摘要: 如以上方法在不同浏览器下载文件名乱码,可换用以下方法: 阅读全文
posted @ 2019-04-04 09:45 ヤBig、Bossづ 阅读(9499) 评论(0) 推荐(1) 编辑
摘要: 运行结果: 阅读全文
posted @ 2019-04-04 09:28 ヤBig、Bossづ 阅读(851) 评论(0) 推荐(0) 编辑
摘要: import javax.persistence.PersistenceContext; import javax.persistence.Query; public class StudentServiceImpl { @PersistenceContext private EntityManager entityManager; public void ... 阅读全文
posted @ 2019-03-27 19:58 ヤBig、Bossづ 阅读(3347) 评论(0) 推荐(0) 编辑
摘要: 链接: https://blog.csdn.net/yzsind/article/details/7948226 阅读全文
posted @ 2019-03-22 15:00 ヤBig、Bossづ 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 测试结果: 阅读全文
posted @ 2019-03-15 13:46 ヤBig、Bossづ 阅读(1507) 评论(0) 推荐(0) 编辑
摘要: 后端拼接时用:"\n"分割,比如: String str = "白日依山尽,\n" + "黄河入海流;"; 返回前台页面时,放入 <pre></pre> 标签中即可实现换行。 阅读全文
posted @ 2019-03-15 13:34 ヤBig、Bossづ 阅读(17251) 评论(0) 推荐(2) 编辑
摘要: 1、时间戳转换为标准日期时间格式: 返回的日期时间格式为:"yyyy-MM-dd HH:mm:ss",解析如下: 2. 将日期格式转换成时间戳 3. Date()参数形式有7种 比如: 转载:https://www.jb51.net/article/130303.htm 阅读全文
posted @ 2019-03-15 13:26 ヤBig、Bossづ 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: /* * 判断字符串中是否含有中文,true,包含中文 */ public boolean isCNChar(String s){ boolean booleanValue = false; for(int i=0; i 128){ booleanValue = true; ... 阅读全文
posted @ 2018-12-04 10:28 ヤBig、Bossづ 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 实现代码: 阅读全文
posted @ 2018-12-04 10:27 ヤBig、Bossづ 阅读(4478) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页