读spring in action.
- 环境搭建
- quick-start依赖注入
- 面向切面
- jdk1.8
- gradle 2.12
- Intelij idea 2016.2.1
1.1创建一个gradle项目
在idea中,new -> project -> gradle 创建一个空项目。创建成功后修改build.gradle :
group 'com.test' version '1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'war' sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenLocal() mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.11' }