I want to use the @WebServlet annotation in a Java EE webapp which runs on Tomcat 8.
@WebServlet
I have read that I need to declare Servlet Version 3.1 in my
How about @ServletComponentScan?
Example from http://www.baeldung.com/spring-servletcomponentscan
@ServletComponentScan @SpringBootApplication public class SpringBootAnnotatedApp { public static void main(String[] args) { SpringApplication.run(SpringBootAnnotatedApp.class, args); } }