使用IntelliJ IDEA和gradle 构建spring 项目

  • 摘要:使用IntelliJIDEA和gradle构建spring项目创建项目可以选择项目的类型编辑gradle配置文件,依赖springjar在dependencies中加入所要依赖的jar,如下:compile‘org.springframework:spring-context:4.1.6.RELEASE’查找所要的依赖可以到这个网站。http://mvnrepository.com/
  • 使用IntelliJ IDEA和gradle 构建spring 项目
    1. 创建项目 
      使用IntelliJ IDEA和gradle 构建spring 项目_第1张图片 
      可以选择项目的类型 
      使用IntelliJ IDEA和gradle 构建spring 项目_第2张图片 
      使用IntelliJ IDEA和gradle 构建spring 项目_第3张图片
    2. 编辑gradle配置文件,依赖spring jar

    使用IntelliJ IDEA和gradle 构建spring 项目_第4张图片
    使用IntelliJ IDEA和gradle 构建spring 项目_第5张图片
    在dependencies中加入所要依赖的jar,如下: 
    compile ‘org.springframework:spring-context:4.1.6.RELEASE’

    查找所要的依赖可以到这个网站。 
    http://mvnrepository.com/

  • 以上是使用IntelliJ IDEA和gradle 构建spring 项目的内容,更多 spring 项目 的内容,请您使用右上方搜索功能获取相关信息。

你可能感兴趣的:(idea)