spring boot 配置文件pom.xml详解

spring boot 配置文件pom.xml详解

看下方资料的同时可以参考Spring3.0结构图,帮助理解。

pom.xml实例讲解

 


 
	4.0.0
 
	cn.mg
 
	FileManagement
 
	1.0
 
	jar
	

	FileManagement
	http://maven.apache.org

	
		org.springframework.boot
		spring-boot-starter-parent
		1.4.2.RELEASE
		
	


	
                
		UTF-8
		UTF-8
		
 1.8
 
		5.1.12.Final
                
		cn.mg.file.FileManageApp
	


	
		
		
			junit
			junit
			3.8.1
			test
		
		
		
			org.springframework.boot
			spring-boot-starter-web
		
		
 
		
			org.springframework.boot
			spring-boot-starter-tomcat
    
			provided
		
		
			org.springframework.boot
			spring-boot-starter-test
			test
		
 
		
			org.springframework
			spring-aop
		
 
		
			org.springframework
			spring-tx
		
 
		
			org.springframework
			spring-orm
		
 
		
			org.springframework
			spring-jdbc
		
 
		
			com.alibaba
			fastjson
			1.2.3
		
	

	 
	
 
		
			
				org.springframework.boot
				spring-boot-maven-plugin
			
		
  
		
			
				src/main/webapp
    
				META-INF/resources
    
				
					**/**
				
			
			
				src/main/resources
				BOOT-INF/classes
				
					**/**
				
  
				false
			
		
	
	

 

备注

1、查看Java版本两个方法

1>.终端输入Java -version

2>.Eclipse菜单-eclipse-偏好设置-java-installed JREs-右边查看

2、scope的取值

包含如下的取值:compile(编译范围)、provided(已提供范围)、 runtime(运行时范围)、test(测试范围)、system(系统范围)

3、exclude里filtering的true、false值详解。

               true与false相同点:
                    exclude规定路径下的文件不被打包。
                true与false不同点:
                    true: 不在exclude规定路径下,其他的文件执行include过滤。
                    false:不在exclude规定路径下,其他的文件不执行include过滤。
          

 

你可能感兴趣的:(springboot,springboot,pom.xml,配置文件)