代码拉取完成,页面将自动刷新
group 'site.assad'
version '1.0'
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
sourceCompatibility = 1.8
//导入 gretty 调试插件
buildscript{
repositories{
jcenter()
}
dependencies{
classpath 'org.akhikhl.gretty:gretty:1.2.4'
}
}
repositories {
mavenCentral()
}
ext{
servlet_api_version = '3.0-alpha-1'
jstl_version = '1.2'
jsp_api_version = '2.0'
spring_version = '4.3.11.RELEASE'
log4j_core_version = '2.9.0'
log4j_api_version = '2.9.0'
junit_version = '4.12'
}
dependencies {
//log4j 依赖
testCompile "org.apache.logging.log4j:log4j-core:${log4j_core_version}"
testCompile "org.apache.logging.log4j:log4j-api:${log4j_api_version}"
compile "org.apache.logging.log4j:log4j-core:${log4j_core_version}"
compile "org.apache.logging.log4j:log4j-api:${log4j_api_version}"
//servlet 依赖
compile "javax.servlet:servlet-api:${servlet_api_version}"
compile "javax.servlet:jstl:${jstl_version}"
compile "javax.servlet.jsp:jsp-api:${jsp_api_version}"
//spring core 依赖
compile "org.springframework:spring-beans:${spring_version}"
compile "org.springframework:spring-core:${spring_version}"
compile "org.springframework:spring-context:${spring_version}"
compile "org.springframework:spring-context-support:${spring_version}"
//spring test 依赖,使用 Junit
compile "org.springframework:spring-test:${spring_version}"
testCompile "junit:junit:${junit_version}"
//spring mvc 框架
compile "org.springframework:spring-webmvc:${spring_version}"
compile "org.springframework:spring-web:${spring_version}"
//xml 处理
compile "org.springframework:spring-oxm:${spring_version}"
compile 'com.thoughtworks.xstream:xstream:1.4.10'
//json 处理
compile 'com.fasterxml.jackson.core:jackson-core:2.9.3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.3'
}
//设置 gretty 参数
gretty {
port = 8080
servletContainer = 'tomcat8'
contextPath = "/"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。