springboot多模块开发搭建

springboot多模块开发搭建,第1张

springboot多模块开发搭建 父级项目

 

1.创建

 2.记住Group 与Artifact  3.可勾选所需依赖或者不选

后期根据所需要再添加

 4.命名 5.删除主项目一些文件

 子级模块  1.创建  2.根据自己变更模块的名称  3.创建成功

 需要再多的模块可按上面创建

配置 1.父级Pow文件配置


    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.4.1
         
    
    com.tinygray
    multi-parent
    0.0.1-SNAPSHOT
    multi-parent
    Demo project for Spring Boot
    
    pom
    
    
        controller
    
    
    
        1.8
    
    
        
        
            org.springframework.boot
            spring-boot-starter-web
        
        
            org.springframework.boot
            spring-boot-starter
        
        
            org.projectlombok
            lombok
            true
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
        
            
            org.springframework.boot
            spring-boot-test
            2.0.1.RELEASE
            test
        
    
2.子级Pow文件配置


    4.0.0
    controller
    0.0.1-SNAPSHOT
    controller
    Demo project for Spring Boot
    
    
        demo
        com.tinygray
        0.0.1-SNAPSHOT
    
   
    
        
        
            com.demo
            service
            0.0.1-SNAPSHOT
        
    
    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    com.example.demo.DemoApplication
                    JAR
                
            
        
    
运行

 

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5686312.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存