zoukankan      html  css  js  c++  java
  • Spring Boot的使用:Gradle

    [

    13.3. Gradle

    Gradle用户可以直接在它们的dependencies节点处导入”starters“。跟Maven不同的是,这里不用导入"super parent",也就不能共享配置。

    apply plugin: 'java'
    
    repositories {
        maven { url "http://repo.spring.io/snapshot" }
        maven { url "http://repo.spring.io/milestone" }
    }
    
    dependencies {
        compile("org.springframework.boot:spring-boot-starter-web:1.4.1.BUILD-SNAPSHOT")
    }
    

    跟maven类似,spring boot也有gradle插件spring-boot-gradle-plugin,它能够提供任务用于创建可执行jar,或从源码(source)运行项目。它也提供依赖管理的能力,该功能允许你省略Spring Boot管理的任何依赖的version版本号:

    buildscript {
        repositories {
            maven { url "http://repo.spring.io/snapshot" }
            maven { url "http://repo.spring.io/milestone" }
        }
    
        dependencies {
            classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.BUILD-SNAPSHOT")
        }
    }
    
    apply plugin: 'java'
    apply plugin: 'spring-boot'
    
    repositories {
        maven { url "http://repo.spring.io/snapshot" }
        maven { url "http://repo.spring.io/milestone" }
    }
    
    dependencies {
        compile("org.springframework.boot:spring-boot-starter-web")
        testCompile("org.springframework.boot:spring-boot-starter-test")
    }
    
    ]
    转载请保留页面地址:https://www.breakyizhan.com/springboot/3080.html
  • 相关阅读:
    批量管理 页面空间
    WinForm 程序Post GEt web程序方法
    ASP.NETSession详解
    ASP.NET 中实现会话状态的基础
    ASP.NET验证控件详解
    StringHelper类
    PowerDesigne 笔记
    asp.ent 会话标识ID
    常用正则表达式
    HashMap中的keySet
  • 原文地址:https://www.cnblogs.com/breakyizhan/p/13238235.html
Copyright © 2011-2022 走看看