Open 2280908187 opened 5 years ago
gradle配置 group 'xxxxxx' version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
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 { testCompile group: 'junit', name: 'junit', version: '4.12' 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' }
换5.1.1试下?
gradle配置 group 'xxxxxx' version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
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 { testCompile group: 'junit', name: 'junit', version: '4.12' 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' }