摘要: map集合的遍历 Map<String,String> map = new HashMap(); map.put("小明","小红"); map.put("小王","小丽"); map.put("小李","小美"); map.put("小吴","小娜"); //获得键值对 对象的集合 Set<Map 阅读全文
posted @ 2020-04-26 15:27 new海 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 项目中有需求是批量删除操作,具体代码如下: 1.service层代码 /** * 批量删除视频 * @param srcInfomationViedoIds * @param userId * @return */ Boolean batchDeleteSrcInfomationViedo(Stri 阅读全文
posted @ 2020-04-25 14:15 new海 阅读(4995) 评论(0) 推荐(0) 编辑
摘要: 和前面的几个随笔一样,都是在一个大型项目里面。今天要做的是证书生成下载。在图片上面添加水印,水印条数多条。直接代码 ——> 介绍: 1.我这里面是用的一个工具类,当然里面我自己又添加一些代码比如,我这里面的图片是自己先上传到文件服务器,然后服务器返回给我一个url ,这个url在浏览器里面就可以直接 阅读全文
posted @ 2020-04-20 19:41 new海 阅读(2180) 评论(0) 推荐(0) 编辑
摘要: 1.首先引进pom <!-- PDF读取依赖 --><dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.4</version></dependency> 2.co 阅读全文
posted @ 2020-03-06 16:51 new海 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: 也是EasyPoi 首先引入jar包 import cn.afterturn.easypoi.excel.ExcelImportUtil;import cn.afterturn.easypoi.excel.entity.ImportParams; <!-- excel --><dependency> 阅读全文
posted @ 2020-03-04 10:53 new海 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 这里用的是easypoi 首先引入jar包 <!-- excel --><dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-base</artifactId> <version>${easypoi.version}</ve 阅读全文
posted @ 2020-03-04 10:47 new海 阅读(1865) 评论(0) 推荐(0) 编辑
摘要: 1.首先引入Maven jar包 <dependency> <groupId> e-iceblue </groupId> <artifactId>spire.pdf</artifactId> <version>2.2.0</version></dependency> <repository> <id 阅读全文
posted @ 2020-03-04 10:28 new海 阅读(412) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.1</version></dependency> /** * 打印考生成绩 * @return */@RequestMap 阅读全文
posted @ 2019-12-11 16:14 new海 阅读(428) 评论(0) 推荐(0) 编辑
摘要: server.port=8090 //Tomcat服务端口号spring.datasource.driver-class-name= oracle.jdbc.driver.OracleDriver //Oracle驱动spring.datasource.url= jdbc:oracle:thin:@ 阅读全文
posted @ 2019-11-11 09:48 new海 阅读(4904) 评论(1) 推荐(0) 编辑
摘要: 表空间操作 1.创建一个表空间 create tablespace emp(空间名) datafile 'emp.dbf' size 10M autoextend on ; →表空间名字 / 物理文件地址 和名字 / 空间大小 2.修改表空间大小 alter database datafile ' 阅读全文
posted @ 2019-11-07 17:58 new海 阅读(183) 评论(0) 推荐(0) 编辑