Open 2280908187 opened 5 years ago
gradle的配置是 apply plugin: 'war' apply plugin: 'jetty' apply plugin: 'eclipse-wtp'
repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} mavenCentral() jcenter() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } }
dependencies { providedCompile 'javax.servlet:servlet-api:2.5' compile 'org.springframework:spring-webmvc:5.0.5.RELEASE' compile 'javax.validation:validation-api:2.0.1.Final' compile 'org.hibernate:hibernate-validator:5.1.0.Final' compile 'org.slf4j:slf4j-api:1.7.25' runtime 'javax.servlet:jstl:1.2' }
/ Change context path (base url). otherwise defaults to name of project / // eclipse.wtp.component.contextPath = '' jettyRunWar.contextPath = ''
jetty已被放生 换gretty
gradle的配置是 apply plugin: 'war' apply plugin: 'jetty' apply plugin: 'eclipse-wtp'
repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public/"} mavenCentral() jcenter() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } }
dependencies { providedCompile 'javax.servlet:servlet-api:2.5' compile 'org.springframework:spring-webmvc:5.0.5.RELEASE' compile 'javax.validation:validation-api:2.0.1.Final' compile 'org.hibernate:hibernate-validator:5.1.0.Final' compile 'org.slf4j:slf4j-api:1.7.25' runtime 'javax.servlet:jstl:1.2' }
/ Change context path (base url). otherwise defaults to name of project / // eclipse.wtp.component.contextPath = '' jettyRunWar.contextPath = ''