- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 Struts框架下定时任务
struts框架下的定时任务 不解释 直接上干货 建立定时任务的任务类 public class AccountingAtion { public void costAccounting() { System.out.println("执行了1次"); } } 建立定时xml配置 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001.
2021-04-28 17:22:00
1187
原创 Timer与TimerTask编写的定时器(在spring+struts2+mybatis框架下)
Timer与TimerTask编写的定时器(在spring+struts2+mybatis框架下) 代码如下 import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Timer; import java.util.TimerTask; import javax.servlet.ServletContextEvent; import javax
2021-03-16 17:34:06
214
原创 java常用基础概念
1.重写和重载的区别 方法重写:子类的方法覆盖父类的方法,要求返回值,方法名和参数都相同。 方法重载:在一个类里面有两个和两个以上的方法,拥有相同的方法名字,但是参数不同,方法体不同。 2.throw 和throws关键字的区别 1、throws出现在方法函数头;而throw出现在函数体。 2、throws表示出现异常的一种可能性,并不一定会发生这些异常;throw则是抛出了异常,执行t...
2018-11-29 17:41:07
197
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人