代码拉取完成,页面将自动刷新
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
group = 'com.zmh'
version = '0.0.1'
sourceCompatibility = 1.8
repositories {
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
configurations {
providedRuntime
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
//数据库相关
compile('mysql:mysql-connector-java')
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1')
//友好的HTML规范 搭配spring.thymeleaf.mode=LEGACYHTML5
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('net.sourceforge.nekohtml:nekohtml:1.9.22')
//热部署 搭配spring.thymeleaf.cache=false
compile('org.springframework.boot:spring-boot-devtools')
//SpringBoot内置的Redis
compile('org.springframework.boot:spring-boot-starter-data-redis')
//内置tomcat 仅开发测试用
//runtime('org.springframework.boot:spring-boot-starter-tomcat')
//spring-boot-admin 图形化管理页面
compile('de.codecentric:spring-boot-admin-server:1.5.7')
compile('de.codecentric:spring-boot-admin-server-ui:1.5.7')
compile('de.codecentric:spring-boot-admin-starter-client:1.5.7')
//pagehelper
compile group: 'com.github.pagehelper', name: 'pagehelper-spring-boot-starter', version: '1.2.3'
//使用的是shiro-spring 而非shiro
compile('org.apache.shiro:shiro-spring:1.4.0')
compile('com.github.theborakompanioni:thymeleaf-extras-shiro:1.2.1')
//测试
testCompile('org.springframework.boot:spring-boot-starter-test')
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。