1.Intellij idea 報錯:Error : java 不支持發行版本5
問題原因:配置不統一
解決辦法:
設置1:
配置2:
備註:可藉助event log來排查問題
問題2:非法反射訪問
問題描述:
ARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.testng.xml.XMLParser (file:/Users/zhengyongcong/.m2/repository/org/testng/testng/6.9.9/testng-6.9.9.jar) to constructor com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl()
WARNING: Please consider reporting this to the maintainers of org.testng.xml.XMLParser
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release