spring-web 的jar包已经导入 却报找不到其中org.springframework.web.context.ContextLoaderListener类的错误
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
解决方法:
Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
Select "Deployment Assembly".
Click the "Add..." button on the right margin.
Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".
You should see "Maven Dependencies" added to the Web Deployment Assembly definition.
完美解决
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
解决方法:
Open the project's properties (e.g., right-click on the project's name in the project explorer and select "Properties").
Select "Deployment Assembly".
Click the "Add..." button on the right margin.
Select "Java Build Path Entries" from the menu of Directive Type and click "Next".
Select "Maven Dependencies" from the Java Build Path Entries menu and click "Finish".
You should see "Maven Dependencies" added to the Web Deployment Assembly definition.
完美解决