In maven, what is the difference between main/resources and main/config?

前端 未结 4 1105
失恋的感觉
失恋的感觉 2020-12-24 10:48

I want to put a configuration file in my Maven project. Looking at the standard directory layout, there are two places that seem sensible, \"src/main/resources\

4条回答
  •  醉酒成梦
    2020-12-24 11:37

    scr/main/resources is a place where you put your images, sounds, templates, language bundles, textual and binary files used by the source code. All config files like excache.xml, log4j.properties, logback.xml and others go to src/main/config.

    Add to your pom.xml:

    
        
            
                .
                src/main/config
            
        
    
    

提交回复
热议问题