pom.xml
MySQL -->Driver:com.mysql.jdbc.Driver--><dependency> <groupId>mysqlgroupId> <artifactId>mysql-connector-javaartifactId> <version>5.1.35version>dependency>C3P0 --><dependency> <groupId>com.mchangegroupId> <artifactId>c3p0artifactId> <version>0.9.5.2version>dependency>Spring -->4个核心模块 --><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-coreartifactId> <version>4.3.6.RELEASEversion>dependency><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-beansartifactId> <version>4.3.6.RELEASEversion>dependency><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-contextartifactId> <version>4.3.6.RELEASEversion>dependency><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-expressionartifactId> <version>4.3.6.RELEASEversion>dependency>4个核心模块 end-->Spring AOP--><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-aopartifactId> <version>4.3.6.RELEASEversion>dependency>AOP联盟提供的规范包--><dependency> <groupId>aopalliancegroupId> <artifactId>aopallianceartifactId> <version>1.0version>dependency>AspectJ --><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-aspectsartifactId> <version>4.3.6.RELEASEversion>dependency>AspectJ框架提供的规范 (这个要注意版本,高版本可靠些) --><dependency> <groupId>org.aspectjgroupId> <artifactId>aspectjweaverartifactId> <version>1.9.6version>dependency>Spring jdbc --><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-jdbcartifactId> <version>4.3.6.RELEASEversion>dependency>Spring 事务处理--><dependency> <groupId>org.springframeworkgroupId> <artifactId>spring-txartifactId> <version>4.3.6.RELEASEversion>dependency>Spring end -->Annotation的支持 如:@Resource--><dependency> <groupId>org.apache.tomcatgroupId> <artifactId>tomcat-annotations-apiartifactId> <version>9.0.13version>dependency>两选一javax.annotationjsr250-api1.0-->