java - Spring @WebListener is not available - Stack Overflow
@javax.servlet.annotation.WebListener annotation is part of servlet-api not spring framework, if you are using Tomcat go to Project -> Properties -> Project Facets in the right panel choose RunTimes then check the Tomcat server instance you are using then apply.
after that if you go to java build path -> libraries you will see Apache Tomcat vXX added to the libraries.
or you might download servlet-api and add it to your classpath
Read full article from java - Spring @WebListener is not available - Stack Overflow
No comments:
Post a Comment