What are the dependencies required for Spring projects built by Maven ?, Mavenspring
What are the dependencies required for Spring projects built by Maven?
<! -- Spring dependency --> <! -- 1. spring core dependency --> <dependency> <groupId> org. springframework </groupId> <artifactId> spring-core </artifactId> <version> 4.3.7.RELEASE </version> </dependency> <groupId> org. springframework </groupId> <artifactId> spring-beans </artifactId> <version> 4.3.7.RELEASE </version> </dependency> <groupId> org. springframework </groupId> <artifactId> spring-context </artifactId> <version> 4.3.7.R ELEASE </version> </dependency> <! -- 2. Spring dao dependency --> <! -- Spring-jdbc includes some tool classes such as jdbcTemplate --> <dependency> <groupId> org. springframework </groupId> <artifactId> spring-jdbc </artifactId> <version> 4.3.7.RELEASE </version> </dependency> <groupId> org. springframework </groupId> <artifactId> spring-tx </artifactId> <version> 4.3.7.RELEASE </version> </dependency> <! -- 3. spring web dependency --> <dependency> <groupId> org. springframework </groupId> <artifactId> spring-web </artifactId> <version> 4.3.7.RELEASE </version> </dependency> <groupId> org. springframework </groupId> <artifactId> spring-webmvc </artifactId> <version> 4.3.7.RELEASE </version> </dependency> <! -- 4. spring test dependency: facilitates unit test and integration test --> <dependency> <groupId> org. springframework </groupId> <artifactId> spring-test </artifactId> <version> 4.3.7.RELEASE </version> </dependency>
There are four aspects:
1) spring core dependency
Spring-core, spring-beans, and spring-context
2) spring dao dependency (JDBCTemplate is provided)
Spring-jdbc and spring-tx
3) spring web dependency
Spring-web and spring-webmvc
4) spring test dependency
Spring-test