Springboot将配置文件打包在jar包外部


		
			
			
				src/main/resources
				true
			
		
		
			
			
				org.apache.maven.plugins
				maven-jar-plugin
				
					${project.build.directory}/etc
					
						
							true
							lib/
							
							com.xxx.web.WebServiceApplication
						
						
							.
						
					
					
						**/*.yml
						**/*.properties
					

				
			
			
			
				org.apache.maven.plugins
				maven-resources-plugin
				2.7
				
				
				
					
						org.apache.maven.shared
						maven-filtering
						1.3
					
				
				
					
						copy-resources
						
						package
						
							copy-resources
						
						
							${project.build.directory}/etc
							
								
									src/main/resources
									
										**/*.yml
										**/*.properties
									
									true
								
							
							UTF-8
						
					
				
			
			
			
				org.apache.maven.plugins
				maven-dependency-plugin
				
					
						copy-dependencies
						package
						
							copy-dependencies
						
						
							${project.build.directory}/etc/lib
							
							false
							
							false
						
					
				
			

			
				org.apache.maven.plugins
				maven-surefire-plugin
				2.18.1
				
					true
				
			
		
	

 

你可能感兴趣的:(java)