【Springboot】pom.xml中的<build>标签详解

 默认值及其标签解释

    
        
        ${artifactId}-${version}
        
        src/main/java
        
        target
        
        
            
                src/main/resources
            
        
        
        target/classes
        
        install
        
        src/main/scripts
        
        
            
                
                
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    x.x.x
                
                
                
                    org.springframework.boot
                    spring-boot-maven-plugin
                    x.x.x
                
            
        
    

 实际自己项目的配置(不常用或无需修改默认值的标签被去掉)

    
        
        app
        
        
            
                src/main/resources
                
                true
                
                    bootstrap.properties
                    bootstrap-${application.environment}.properties
                
            
            
                src/main/resources
                
                false
                
                    banner.txt
                    logback-spring.xml
                
            
        
        
        
            
                
                
                    org.springframework.boot
                    spring-boot-maven-plugin
                    ${spring-boot.version}
                
                
                
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    ${maven-compiler-plugin.version}
                
            
        
    

你可能感兴趣的:(spring,boot,xml,后端)