Maven集成SpringMVC,Spring,Mybatis配置jar包

2025-05-06 04:03:27

1、引入Spring JDBC依赖包<!-- spring jdbc --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>4.3.7.RELEASE</version> </dependency>

Maven集成SpringMVC,Spring,Mybatis配置jar包

3、引入SpringMVC依赖包<dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.3.7.RELEASE</version> </dependency>

Maven集成SpringMVC,Spring,Mybatis配置jar包

5、引入数据库连接池,数据库驱动依赖包<!-- 数据库连接池,驱动 --> <dependency> <groupId>c3p0</groupId> <artifactId>c3p0</artifactId> <version>0.9.1</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.41</version> </dependency>

Maven集成SpringMVC,Spring,Mybatis配置jar包
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢