1. 程式人生 > >[2017.06.09]今天看了一個SSH項目所出現的問題

[2017.06.09]今天看了一個SSH項目所出現的問題

cati install rtu arc jdk als startup date pla

一開始啟動項目java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call ‘refresh‘ before multicasting events via the context: Root WebApplicationContext: startup date [Tue Nov 15 11:34:41 CST 2016]; root of context hierarchy

這個異常,上網查詢後發現是Spring3和Java8不兼容

Java 8 with spring 3.2.0, which doesn’t support it

http://blog.csdn.net/mj_ww/article/details/53215284

接著替換了Spring4.2的jar包

又出現了新問題

java compiler level does not match the version of the installed java project facet

技術分享

解決方法是打開該項目文件的org.eclipse.wst.common.project.facet.core.xml配置文件,修改JAVA版本,匹配我們編輯器的JDK版本(這個從項目屬性-->Java Compiler-->Compiler compliance settings)。

設置好了 warning就消失了。

最後運行成功!

[2017.06.09]今天看了一個SSH項目所出現的問題