Spring基礎依賴
阿新 • • 發佈:2018-12-19
1)spring核心依賴 spring-core、spring-beans、spring-context 2)spring dao依賴(提供JDBCTemplate) spring-jdbc、spring-tx 3)spring web依賴 spring-web、spring-webmvc 4)spring test依賴 spring-test
` org.springframework spring-core 4.3.7.RELEASE org.springframework spring-beans 4.3.7.RELEASE org.springframework spring-context 4.3.7.RELEASE
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>4.3.7.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>4.3.7.RELEASE</version> </dependency> <!-- 3.Spring web依賴 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>4.3.7.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.3.7.RELEASE</version> </dependency> <!-- 4.Spring test依賴:方便做單元測試和整合測試 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>4.3.7.RELEASE</version>
`