- 博客(12)
- 问答 (1)
- 收藏
- 关注
转载 接口和抽象类的区别
1、相同点 A. 两者都是抽象类,都不能实例化。 B. interface实现类及abstrct class的子类都必须要实现已经声明的抽象方法。2.、不同点 A. interface需要实现,要用implements,而abstract class需要继承,要用extends。 B. 一个类可以实现多个interface,但一个类只能继承一个abstr...
2018-12-24 15:31:32 197
转载 spring boot 定时器
启动类添加 @EnableScheduling @Componentpublic class SchedulerTask { private int count=0; /** * @Scheduled(fixedRate = 6000) :上一次开始执行时间点之后6秒再执行 @Scheduled(fixedDelay = 6000) :上一...
2018-12-24 14:30:12 169
转载 spring boot 学习 ActiveMQ
window环境本地搭建环境 ActiveMQ官网下载地址:http://activemq.apache.org/download.html安装完成后启动 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-st...
2018-12-24 14:23:22 112
原创 java读取excel表格并格式化输出
首先是需要poi jar包import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.poi.hssf.usermodel.HSSFWorkbook;import org.apache.poi.ss.usermodel.Cell;import org.apache.poi.ss.usermodel.Row;
2017-03-14 10:35:18 1446
转载 创建文件并写入数据
public class IO { //生成文件路径 private static String path = "D:/"; //文件路径+名称 private static String filenameTemp; /** * 创建文件 * @param fileName 文件名称 * @para
2017-03-06 15:25:01 786
原创 js执行时休眠一段时间
自定义一个函数sleepfunction sleep(numberMillis) { var now = new Date(); var enterTime= now.getTime() + numberMillis; while (true) { now = new Date(); if (now.getTime() > enterTi
2017-03-03 11:15:15 1899
转载 页面自动刷新两种方式
1.在head中加入指定10秒刷新一次;2.使用jsfunction refresh(){window.location.reload();}setTimeout('refresh()',2000); //指定1秒刷新一次为了验证刷新了我们在body中加入一段代码
2017-03-03 08:42:00 629
原创 js创建对象(推荐)
function Cat(name,age,id){this.name=name;this.age=age;this.id=id;this.say=function(){alert(this.name+this.age+this.id);}}function test(){ var cat=new Cat("大黄",2,1); cat.say
2017-03-01 10:58:21 210
原创 设置table表格监听
$(function(){$("table td").click(function() {var row = $(this).parent().index() + 1; // 行位置var col = $(this).index() + 1; // 列位置alert("当前位置:第"+row+"行,第"+col+"列")});})
2017-02-28 15:16:28 3881
原创 获取table中的checkbox 中checked的对象值。
var rows = document.getElementById("tb1").rows.length; //获得行数(包括thead)var colums = document.getElementById("tb1").rows[0].cells.length; //获得列数if(rows>1){for(var i=1;iif($(":checked:eq("+"(i-
2017-02-28 15:07:15 1070
原创 js传递数组参数到后台controller
传递参数传递字符串,所以要把数组转换为字符串,var arr=[1,23,34,5];var str = arr.toString();str传递到后台,str.split(" , ");将字符串拆分得到元素。var arr=[1,23,34,5];var str = arr.toString();document.write(str);va
2017-02-28 14:55:19 5644 1
空空如也
java给定字母和数字组成的字符串,打印所有可能排序组合情况
2017-03-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人