Maven module using spring-boot

前端 未结 2 1657
無奈伤痛
無奈伤痛 2021-02-01 02:39

I like to configure my applications in maven by creating modules like;

com.app
example-app
&l         


        
2条回答
  •  庸人自扰
    2021-02-01 03:00

    You don't have to use the spring-boot-starter-parent, it's just a way to get started quickly. All it provides are dependency management and plugin management. You can do both yourself, and you can use the spring-boot-dependencies (or equivalently the parent) to manage dependencies if you want a halfway step. To do that, use scope=import like this

    
        
            
                org.springframework.boot
                spring-boot-dependencies
                pom
                1.0.2.RELEASE
                import
            
        
    
    

提交回复
热议问题