springboot整合servlet
方式一:
1.编写Servlet

2.Servlet类上添加@WebServlet注解
3.Springboot启动类上添加@ServletComponentScan注解

方式二:

1.编写一个配置类
使用@Configuration和@Bean注解
2.扫描配置类
扫描:@SpringBootApplication(scanBasePackages = {"com.cchengyyj.configuration"})

方式一:
1.编写Servlet

2.Servlet类上添加@WebServlet注解
3.Springboot启动类上添加@ServletComponentScan注解

方式二:

1.编写一个配置类
使用@Configuration和@Bean注解
2.扫描配置类
扫描:@SpringBootApplication(scanBasePackages = {"com.cchengyyj.configuration"})
