![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
J2SE
洁愫
这个作者很懒,什么都没留下…
展开
-
springMVC核心配置文件
springMVC核心配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns=“http://www.springframework.org/schema/beans”xmlns:context=“http://www.springframework.org/schema/context”xmlns:mvc=“http://www.springframework.org/schema/mvc”xmlns:xsi=“http:/原创 2020-08-29 21:26:33 · 194 阅读 · 0 评论 -
springMvc的web,xml配置
springMvc的web,xml配置<?xml version="1.0" encoding="UTF-8"?> day39_spring_mvc_01 dispatcherServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath:applicationContext-mvc.xml 1 dispatc原创 2020-08-29 21:22:36 · 95 阅读 · 0 评论 -
使用Timer类设计定时器
Timer类的定时器在使用时,都需要构建一个定时任务(TimerTask),因此在使用定时器的时候,都需要创建一个TimerTask类的对象(为了节省空间和方便阅读,将TimerTask类的对象以匿名类的形式声明),而Timer类中常用的方法如下下面的代码则针对上述方法,一一进行使用 public static void main(String[] args) { //使用构造方法创建两个对象 Timer timer = new Timer(); Timer timer2 = new T原创 2020-07-21 17:58:22 · 802 阅读 · 0 评论 -
基于数组和变量的数据结构
数据结构基于数组的数据结构:以数组为基础,储存不同数据类型的数据,数组的类型是Object`基于变量的数据结构:Object类型的变量可以装任何类型的数据,因此可以设计一个类,类中有一个Object类的变量用用来存放各种类型的单一数据,想要使用类中变量,就得构造对象,而一个对象只有一个Object类的变量(如果在该类中声明多个Object类的变量是不划算且扩展性差)。并且不同对象之间没有任何关联,不方便保存多个数据,因此考虑将将该类的对象建构类类似数组的形式(通过在类中创建一个该类的变...原创 2020-07-21 17:49:21 · 187 阅读 · 0 评论