j2ee專案中jsp第一行報錯
阿新 • • 發佈:2019-01-29
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"