項目由java7 升級為Java8注意事項__Java

來源:互聯網
上載者:User
1、修改project structure 裡面的Project , Modules , SDKs jdk的版本 2、修改Java Compiler 裡面java的jdk版本 3、tomcat 裡面jre 的版本 4、修改系統配置的環境變數為指定的版本( 注意別忘記了) 5、注意要修改項目裡面配置的jdk版本( 注意別忘記了) 6、還要注意安裝的jdk版本是否是系統內容可用的jdk 7、注意,在這些都修改完成了的情況下,注意如果項目以前用的是spring3的話,可能在啟動項目的時候還是會報一些錯誤: 嚴重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener Java.lang.IllegalArgumentException     at org.springframework.asm.ClassReader.<init>(Unknown Source)     at org.springframework.asm.ClassReader.<init>(Unknown Source)     at org.springframework.asm.ClassReader.<init>(Unknown Source)
原因: Java 8 with  spring 3 , which doesn’t support it.  解決:如果要用java8的話最好使用spring4

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.