您的位置:首页 > 文旅 > 美景 > 武汉吧百度贴吧_四川建设网站公司_免费收录网站_做搜索引擎推广多少钱

武汉吧百度贴吧_四川建设网站公司_免费收录网站_做搜索引擎推广多少钱

2025/2/27 17:41:01 来源:https://blog.csdn.net/m0_74825656/article/details/145866191  浏览:    关键词:武汉吧百度贴吧_四川建设网站公司_免费收录网站_做搜索引擎推广多少钱
武汉吧百度贴吧_四川建设网站公司_免费收录网站_做搜索引擎推广多少钱
Maven中添加Spring框架依赖包
  • Spring核心工具包
  • SpringJDBC
  • Spring配置文件头信息

Spring核心工具包

在pom.xml文件中添加

    <!-- Spring的核心工具包--><dependencies><dependency><groupId>org.springframework</groupId><artifactId>spring-core</artifactId><version>5.0.8.RELEASE</version></dependency><!--在基础IOC功能上提供扩展服务,还提供许多企业级服务的支持,有邮件服务、 任务调度、远程访问、缓存以及多种视图层框架的支持--><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>5.0.8.RELEASE</version></dependency><!-- Spring IOC的基础实现,包含访问配置文件、创建和管理bean等 --><dependency><groupId>org.springframework</groupId><artifactId>spring-beans</artifactId><version>5.0.8.RELEASE</version></dependency><!-- Spring context的扩展支持,用于MVC方面 --><dependency><groupId>org.springframework</groupId><artifactId>spring-context-support</artifactId><version>5.0.8.RELEASE</version></dependency><!-- Spring表达式语言 --><dependency><groupId>org.springframework</groupId><artifactId>spring-expression</artifactId><version>5.0.8.RELEASE</version></dependency><!-- Java注解包提供@Resource注解 --><dependency><groupId>javax.annotation</groupId><artifactId>javax.annotation-api</artifactId><version>1.2</version></dependency></dependencies>

SpringJDBC

在pom.xml文件中添加

    <dependencies><dependency><groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>5.0.8.RELEASE</version></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>5.1.46</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-tx</artifactId><version>5.0.8.RELEASE</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>5.0.8.RELEASE</version></dependency><dependency><groupId>com.mchange</groupId><artifactId>c3p0</artifactId><version>0.9.5.2</version></dependency></dependencies>

Spring配置文件头信息

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>

https://blog.csdn.net//article/details/113697733Maven Springboot框架依赖

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com