代码拉取完成,页面将自动刷新
sourceCompatibility = 1.8
targetCompatibility = 1.8
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'spring-boot'
buildscript {
def springbootVersion = '1.4.0.RELEASE'
repositories {
jcenter()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
}
dependencies {
//加入这个可以达到统一管理springboot的版本的功能,类似maven中的dependence management
//The spring-boot-gradle-plugin is also available and provides tasks to create executable jars and run projects from source. It also provides dependency management that, among other capabilities, allows you to omit the version number for any dependencies that are managed by Spring Boot:
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springbootVersion}")
}
}
repositories {
jcenter()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
}
dependencies {
// testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'org.aspectj:aspectjrt:1.7.3'
compile 'org.aspectj:aspectjweaver:1.7.3'
// compile 'redis.clients:jedis:2.8.1'
compile 'mysql:mysql-connector-java:5.1.28'
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-devtools")
compile 'com.google.zxing:core:3.2.0'
compile 'com.google.zxing:javase:3.2.0'
compile 'com.alibaba:druid:1.0.25'
compile 'com.alibaba:fastjson:1.2.17'
}
springBoot {
mainClass = "org.javajidi.admin.Application"
}
bootRun {
addResources = true
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。