配置插件
apply plugin: 'jetty'
配置jetty启动属性
jettyRun {
// 启动的端口
httpPort = 9091
// 热部署重载
reload = "automatic"
scanIntervalSeconds = 1
// 配置项目名称或空
contextPath = ''
}
启动项目命令
gradle jettyRun
apply plugin: 'jetty'
jettyRun {
// 启动的端口
httpPort = 9091
// 热部署重载
reload = "automatic"
scanIntervalSeconds = 1
// 配置项目名称或空
contextPath = ''
}
gradle jettyRun
转载于:https://my.oschina.net/yan5845hao/blog/1544758