1 点击Window -> Preferences -> Server -> Runtime Environments 弹出Server Runtime Envirnoments窗口。
选择Server Runtime Envirnoments窗口的Add按钮。根据机器中的实际Tomcat版本配置相关信息。
2 右键web工程 -> Build Path -> Add Libraries... -> Server Runtime -> Next -> 选择配置好的Server
Spring 配置文件中出现莫名其妙的错误:
Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:config'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/aop/spring-aop-2.5.xsd', because 1) could not
解决方法:
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"