您当前的位置: 首页 > 

java持续实践

暂无认证

  • 3浏览

    0关注

    746博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

黑马十次方项目day01-04之 创建父工程

java持续实践 发布时间:2019-03-19 19:49:32 ,浏览量:3

文章目录
      • 一. 十次方项目创建父工程

一. 十次方项目创建父工程

(1)选择菜单file-new project ,弹出窗口中左侧菜单选择Maven ,点击next按钮 (2)填写GroupId 和ArtifacetId ,点击next按钮 (3)填写项目的名称和项目保存的路径后, 点击Finish 完成 (4)删除src文件夹, 因为maven的父工程无需有java代码,只需提供pom文件,管理子模块 (5)修改pom.xml 添加以下配置



    4.0.0

    com.tensquare
    tensquare_parent
    1.0-SNAPSHOT
    
    pom

    tensquare_parent
    十次方项目

    
        org.springframework.boot
        spring-boot-starter-parent
        2.0.1.RELEASE
        
    

    
        UTF-8
        UTF-8
        1.8
    

    
        
            org.springframework.boot
            spring-boot-starter-web
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        
    

    
        
            spring-snapshots
            Spring Snapshots
            https://repo.spring.io/snapshot
            
                true
            
        
        
            spring-milestones
            Spring Milestones
            https://repo.spring.io/milestone
            
                false
            
        
    

    
        
            spring-snapshots
            Spring Snapshots
            https://repo.spring.io/snapshot
            
                true
            
        
        
            spring-milestones
            Spring Milestones
            https://repo.spring.io/milestone
            
                false
            
        
    

    
        
            
                org.springframework.cloud
                spring-cloud-dependencies
                Finchley.M9
                pom
                import
            
        
    


如果要在父模块中,创建子模块, 那么如下图所示,直接在父工程中, 右键 New 一个新的Module即可

关注
打赏
1658054974
查看更多评论
立即登录/注册

微信扫码登录

0.2884s