idea源值1.5已过时, 将在未来所有发行版中删除
<profiles>
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
module中的jdk和compiler的jdk都设置成1.8
IntelliJ IDEA取消自动删除空格
在file->settings->Editor中勾选
Allow placement of caret after end of line
切换窗口时的空格就不会被自动删除
idea自动编译,自动部署
1.开启自动build
project >> compiler >> 勾选 build project automatically
2.注册
ctrl+alt+shift+’/’ 打开register
勾选 compiler.automake.allow.when.app.runing
3.maven工程添加资源路径
<build>
<resources>
<resource>
<directory>${basedir}/src/main</directory>
<includes>
<include>
**/*.*
</include>
</includes>
</resource>
</resources>
</build>