首页 > intellij idea如何设置新创建module的默认laguage level和bytecode level?

intellij idea如何设置新创建module的默认laguage level和bytecode level?

环境

Mac OS X + intellij idea 16 + jdk 1.8

问题


你在 plugins 里面加上这个,再刷新下 pom 就会改变。
代码:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.1</version>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
        <testExcludes>
            <testExclude>/src/test/**</testExclude>
        </testExcludes>
        <encoding>utf-8</encoding>
    </configuration>
</plugin>
【热门文章】
【热门文章】