java maven打包乱码 及 配置文件分离

乱码

 
        1.8
        UTF-8
        UTF-8
    
 
          org.apache.maven.plugins
          maven-compiler-plugin
          3.8.1
          
                1.8
                1.8
                UTF-8
          
  

配置文件分离

 
            
                maven-resources-plugin
                
                    
                        copy-resources
                        process-sources
                        
                            copy-resources
                        
                        
                            ${basedir}/target/resources
                            
                                
                                    ${basedir}/src/main/resources
                                    
                                        **/*.properties
                                    
                                
                            
                        
                    
                
            

全部



    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.6.1
         
    
    com.tenant-server
    tenant-server
    0.0.1-SNAPSHOT
    tenant-server
    tenant-server
    
        1.8
        UTF-8
        UTF-8
    

    
        
            org.springframework.boot
            spring-boot-starter-web
        
        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            2.2.0
        

        
            org.springframework.boot
            spring-boot-devtools
            true
        
     


    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    true
                
            

            
            
                maven-resources-plugin
                
                    
                        copy-resources
                        process-sources
                        
                            copy-resources
                        
                        
                            ${basedir}/target/resources
                            
                                
                                    ${basedir}/src/main/resources
                                    
                                        **/*.properties
                                    
                                
                            
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.8.1
                
                    1.8
                    1.8
                    UTF-8
                
            
        

    




你可能感兴趣的:(java maven打包乱码 及 配置文件分离)