阅读背景:

springboot整合listener方式一

来源:互联网 
  1. 创建一个项目
  2. package com.test;
    
    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    import org.springframework.boot.web.servlet.ServletComponentScan;
    
    @SpringBootApplication
    @ServletComponentScan//会扫描@WebServlet的类并实例化该类
    public class App {
    	public static void main(String[] args) {
    		SpringApplication.run(App.class, args);
    	}
    }
    package com.test;
    
    impor



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: