使用IntelliJ IDEA和gradle 构建spring 项目
- 创建项目
可以选择项目的类型
- 编辑gradle配置文件,依赖spring jar
在dependencies中加入所要依赖的jar,如下:
compile ‘org.springframework:spring-context:4.1.6.RELEASE’
查找所要的依赖可以到这个网站。
http://mvnrepository.com/
在dependencies中加入所要依赖的jar,如下:
compile ‘org.springframework:spring-context:4.1.6.RELEASE’
查找所要的依赖可以到这个网站。
http://mvnrepository.com/