坑1: 配置maven项目,build速度过慢/卡住/错误,如下图设置属性 archetypeCatalog = internal.
坑2 :maven jar包仓库可以来这里:http://mvnrepository.com/。注意在pom.xml中配置depency的时候,如果要使用
<version>${spring.version}</version>,
一定要在最上面properties中引用,如下图
<profiles>
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>4.3.14.RELEASE</spring.version>
<hibernate.version>4.3.5.Final</hibernate.version>
<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>
Over