Gradle學習(六)——建立Web工程
阿新 • • 發佈:2018-12-11
1、建立webapp資料夾
2、怎麼使webapp資料夾和Java資料夾一樣。
// 新增 apply plugin:'war' dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' compile group: 'org.springframework', name: 'spring-context', version: '5.0.2.RELEASE' compile group: 'org.springframework', name: 'spring-web', version: '5.0.2.RELEASE' compile group: 'org.springframework', name: 'spring-webmvc', version: '5.0.2.RELEASE' provided group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1' provided group: 'javax.servlet', name: 'jsp-api', version: '2.0' }