在eclipse运行jdk12预览特性:
右击项目---> "Properties" ---> "Java Compiler" ---> 勾选"Enable project specific stetings" ---> 去掉"Use default compliance settings" ---> 勾选"Enable preview features"
右击项目---> "Properties" ---> "Java Compiler" ---> 勾选"Enable project specific stetings" ---> 去掉"Use default compliance settings" ---> 勾选"Enable preview features"
2019-07-31