1 Star 0 Fork 419

用户5665985989/mybatisplus-spring-boot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
青苗 提交于 2018-10-11 10:01 . 升级 Mybatis-Plus 3.0.5-SNAPSHOT 测试
ext {
configuration = [
javaVersion = JavaVersion.VERSION_1_8
]
// 仓库配置
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url 'https://repo.spring.io/libs-milestone' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
}
// 编译脚本
buildscript {
ext {
springBootVersion = "2.0.3.RELEASE"
mybatisPlusVersion = "3.0.5-SNAPSHOT"
}
// 仓库配置
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url 'https://repo.spring.io/libs-milestone' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: "java"
apply plugin: "maven"
apply plugin: "idea"
apply plugin: 'org.springframework.boot'
apply plugin: "io.spring.dependency-management"
group = "com.patzn.cloud"
version = "1.0"
description "MP SpringBoot 案例"
sourceCompatibility = "${javaVersion}"
targetCompatibility = "${javaVersion}"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
configurations {
// compile.exclude group: "ch.qos.logback"
compile.exclude group: "com.amazonaws"
compile.exclude group: "org.apache.tomcat"
compile.exclude module: "spring-boot-starter-tomcat"
}
// 依赖管理
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-undertow:${springBootVersion}")
compile("com.h2database:h2:1.4.197")
compile("com.zaxxer:HikariCP:3.2.0")
compile("com.baomidou:mybatis-plus-boot-starter:${mybatisPlusVersion}")
compileOnly("org.springframework.boot:spring-boot-devtools:${springBootVersion}")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yiyang1314/mybatisplus-spring-boot.git
git@gitee.com:yiyang1314/mybatisplus-spring-boot.git
yiyang1314
mybatisplus-spring-boot
mybatisplus-spring-boot
master

搜索帮助