Maven project compiled version of the problem and does not import the Spring core package

. 1      
2  compile the idea maven items:
 3  scheme. 1: maven settings.xml that the compiled version of the global defaults
 . 4  
. 5  < Profile > 
. 6    < ID > JDK-1.8 </ ID > 
. 7  
. 8    < Activation > 
. 9      < activeByDefault > to true </ activeByDefault > 
10      < JDK > 1.8 </ JDK > 
. 11    </ Activation > 
12 is    
13 is    < Properties > 
14      <maven.compiler.source > 1.8 </ maven.compiler.source > 
15      < maven.compiler.target > 1.8 </ maven.compiler.target > 
16      < maven.compiler.compilerVersion > 1.8 </ maven.compiler.compilerVersion > 
. 17    </ Properties > 
18 is  </ Profile > 
. 19  
20 is  2: Specifies the compiled version of the project in pom.xml
 21      mode. 1: plugin
 22 is      mode 2: Properties
 23 is      
24  < Build > 
25      <plugins>
26         <plugin>
27             <groupId>org.apache.maven.plugins</groupId>
28             <artifactId>maven-compiler-plugin</artifactId>
29             <version>3.8.0</version>
30             <configuration>
31                 <source>1.8</source>
32                 <target>1.8</target>
33             </configuration>
34         </plugin>
35     </plugins>
36 </build>
37     
38 <properties>
39     <maven.compiler.source>1.8</maven.compiler.source>
40     <maven.compiler.target>1.8</maven.compiler.target>
41 </properties>
Configuration code

Guess you like

Origin www.cnblogs.com/mozq/p/10985573.html