保存进度!
This commit is contained in:
		@@ -0,0 +1,33 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-08-25 15:03:05
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2022-08-25 15:14:33
 | 
			
		||||
 * @FilePath: \tomcat-servlet\src\main\java\com\cpic\xim\AppListener.java
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
package com.cpic.xim;
 | 
			
		||||
 | 
			
		||||
import jakarta.servlet.ServletContext;
 | 
			
		||||
import jakarta.servlet.ServletContextEvent;
 | 
			
		||||
import jakarta.servlet.ServletContextListener;
 | 
			
		||||
import jakarta.servlet.annotation.WebListener;
 | 
			
		||||
 | 
			
		||||
public class AppListener implements ServletContextListener
 | 
			
		||||
{
 | 
			
		||||
    @Override
 | 
			
		||||
    public void contextInitialized( ServletContextEvent event )
 | 
			
		||||
    {
 | 
			
		||||
        ServletContext context = event.getServletContext();
 | 
			
		||||
 | 
			
		||||
        context.setAttribute( "test", "test" );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public void contextDestroyed( ServletContextEvent event )
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user