
工具类
LoveM生活美好
这个作者很懒,什么都没留下…
展开
-
springboot增加单元测试类
快速生成测试类4. 修改生成的测试类 5. 添加测试方法(@Test 必须添加)原创 2022-06-01 16:11:52 · 1992 阅读 · 0 评论 -
excel报表下载
1, 首先,需要在jsp页面中添加一个超链接: 导出excle2, 添加方法 function getExcel() { debugger; var startTime = $("#startTime").val(); var endTime = $("#endTime").val(); var name = $("#name").val(); window.location原创 2017-11-25 16:16:04 · 246 阅读 · 0 评论 -
上传工具类java
1,在pom.xml中加入配置 commons-io commons-io 2.4 commons-fileupload commons-fileupload 1.2.1 org.apache.commons commons-math 2.22,在springmvc.xml中配置原创 2017-11-21 09:55:33 · 392 阅读 · 0 评论 -
excel上传+解析
对于excel上传,我们需要做几方面的配置,包括jsp,springmvc.xml,pom.xml,controller中做相关配置,对于excel的格式还有xls和xlsx的区别,所以,我采用的是jxl--xls,poi--xlsx,下面的是相关配置pom.xml commons-fileupload commons-fileupload 1原创 2018-02-03 11:11:09 · 834 阅读 · 0 评论 -
mybatis+分页插件(paginator)
这是一个与mybatis配套的分页插件,具体使用步骤如下:1,下载pagination.js 2,pom.xml中添加jar<dependency> <groupId>com.github.miemiedev</groupId> <artifactId>mybatis-paginator</artifactId> ...原创 2018-02-28 17:58:05 · 388 阅读 · 0 评论 -
ssm集成时间插件laydate.js
最近使用了一下laydate.js时间插件,记录一下1,下载laydate2, 将下载好的文件解压,然后将整个文件夹放到工程的合适位置, 3,在jsp页面中引入laydate.js,如: <script type="text/javascript" src="/dataSelect/js-css-img/js/laydate/laydate.js"></script>...原创 2018-02-24 11:09:14 · 396 阅读 · 0 评论 -
Ajax请求前显示的等待图标
1, 引入相应的js 2, 在相应的ajax前填写下面的代码 $(document).ajaxStart(function(){ $.blockUI({ message: $('#loading'), css: { top: ($(window).heigh...原创 2018-04-11 10:06:46 · 2367 阅读 · 0 评论