• 大小: 16.19MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: Java
  • 标签: SSM  java  web  

资源简介

本系统使用Eclipse作为开发工具,使用Java为开发语言,MySQL为数据库,实现增删改查,数据校验

资源截图

代码片段和文件信息

package com.zmk;

import java.util.List;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import com.zmk.pojo.Student;
import com.zmk.service.Impl.UserTestServiceImpl;

//实现接口    对ServeltContext的监听
public class listenerTest implements ServletContextListener {
// 当Servlet容器终止web应用时调用该方法。在调用该方法之前,容器会先销毁所有的Servlet和Filter。
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub

}

// 当Servlet容器启动web应用时调用如下方法,调用后容器再初始化filter,并对需要被初始化的Servlet进行初始化。
public void contextInitialized(ServletContextEvent arg0) {
// TODO Auto-generated method stub

ApplicationContext context = WebApplicationContextUtils
.getWebApplicationContext(arg0.getServletContext());

UserTestServiceImpl test = (UserTestServiceImpl) context
.getBean(“userTestServiceImpl“);

/*List list =  test.getTotal();
System.out.println(“listener test“+list.size());*/

}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-23 11:56  StudentManagementSSM\
     文件         808  2018-10-12 11:51  StudentManagementSSM\.classpath
     文件        1053  2018-10-12 09:09  StudentManagementSSM\.project
     目录           0  2018-10-13 16:55  StudentManagementSSM\.settings\
     文件         500  2018-01-22 15:23  StudentManagementSSM\.settings\.jsdtscope
     文件          83  2018-10-19 09:20  StudentManagementSSM\.settings\org.eclipse.core.resources.prefs
     文件         670  2018-08-23 11:55  StudentManagementSSM\.settings\org.eclipse.jdt.core.prefs
     文件         509  2018-10-12 09:09  StudentManagementSSM\.settings\org.eclipse.wst.common.component
     文件         305  2018-09-04 16:58  StudentManagementSSM\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-08-23 11:55  StudentManagementSSM\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-08-23 11:55  StudentManagementSSM\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          58  2018-08-23 11:26  StudentManagementSSM\.settings\org.testng.eclipse.maven.prefs
     目录           0  2018-08-23 11:57  StudentManagementSSM\build\
     目录           0  2018-10-12 13:14  StudentManagementSSM\src\
     文件        3633  2018-08-24 10:53  StudentManagementSSM\src\ApplicationContext.xml
     目录           0  2018-08-23 11:15  StudentManagementSSM\src\com\
     目录           0  2018-10-15 14:49  StudentManagementSSM\src\com\zmk\
     目录           0  2018-10-12 13:13  StudentManagementSSM\src\com\zmk\config\
     文件        3737  2018-10-12 13:20  StudentManagementSSM\src\com\zmk\config\ApplicationContext.xml
     文件         919  2018-01-22 16:24  StudentManagementSSM\src\com\zmk\config\dispatcher-servlet.xml
     文件        2544  2017-03-29 19:21  StudentManagementSSM\src\com\zmk\config\mybatis.xml
     目录           0  2018-08-23 11:15  StudentManagementSSM\src\com\zmk\controller\
     文件        5870  2018-10-19 10:30  StudentManagementSSM\src\com\zmk\controller\UserTestController.java
     文件        1194  2018-10-15 16:01  StudentManagementSSM\src\com\zmk\listenerTest.java
     目录           0  2018-08-23 11:15  StudentManagementSSM\src\com\zmk\mapper\
     文件         507  2018-10-19 10:23  StudentManagementSSM\src\com\zmk\mapper\UserTestMapper.java
     目录           0  2018-08-23 11:15  StudentManagementSSM\src\com\zmk\mapper\xml\
     文件        1782  2018-10-19 09:27  StudentManagementSSM\src\com\zmk\mapper\xml\UserTestMapper.xml
     目录           0  2018-10-18 11:23  StudentManagementSSM\src\com\zmk\pojo\
     文件         984  2018-10-18 11:12  StudentManagementSSM\src\com\zmk\pojo\Student.java
     目录           0  2018-08-23 11:15  StudentManagementSSM\src\com\zmk\service\
............此处省略83个文件信息

评论

共有 条评论