参考spring-framework-4.3.7.RELEASE-dist.zip中的内容
<repositories> <repository> <id>central</id> <name>Central Repository</name> <!-- <url>http://localhost:8081/nexus/content/groups/public/</url> --> <url>http://repo1.maven.org/maven2/</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>com.springsource.repository.bundles.release</id> <name>EBR Spring Release Repository</name> <url>http://repository.springsource.com/maven/bundles/release</url> </repository> <repository> <id>com.springsource.repository.bundles.external</id> <name>EBR External Release Repository</name> <url>http://repository.springsource.com/maven/bundles/external</url> </repository> </repositories>
<properties> <org.springframework.version>4.3.7.RELEASE</org.springframework.version> </properties> <dependencies> <!-- spring start --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-expression</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-instrument</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-instrument-tomcat</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jms</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-messaging</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc-portlet</artifactId> <version>${org.springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket</artifactId> <version>${org.springframework.version}</version> </dependency> <!-- spring end --> </dependencies>
这样引入可能不太好,比如你引入spring-webmvc,maven会自动引入其他依赖,
但我喜欢这样,先引入所有依赖,
spring4.x引入所有命名空间xmlns xsi:schemaLocation
http://happyqing.iteye.com/blog/2303238
相关推荐
Java使用Maven导入Spring依赖
Classes contained in spring-mock.jar: org.springframework.mock.jndi.ExpectedLookupTemplate.class org.springframework.mock.jndi.SimpleNamingContext.class org.springframework.mock.jndi....
在用SpringBoot后,搜集归纳了一些使用的依赖,推荐一下,没用的可以用一下,包括:lombok,guava,fastjson,commons-codec,joda-time,mockito...
引入spring的ioc相关的依赖,还需要引入 spring和mybatis整合的工具包(依赖版本是1.3.0) mybatis-spring 还要包含 阿里巴巴的连接池,spring-jdbc, 2.创建spring的配置文件, 3.在spring的配置中创建...
Spring IoC 入门实例,包括了多种依赖注入方式,适合Spring初学者学习使用。实例里有详细的注释,一看就懂。
赠送Maven依赖信息文件:spring-webmvc-5.2.15.RELEASE.pom; 包含翻译后的API文档:spring-webmvc-5.2.15.RELEASE-javadoc-API文档-中文(简体)版.zip; Maven坐标:org.springframework:spring-webmvc:5.2.15....
这里不是jar包,而是maven+ssm项目 中 pom文件所需要依赖的 ssm jar包
由于没有引入 spring-aop-4.0.6.RELEASE.jar 引起的错误 org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML ...
(4)引入模块依赖进行使用 3.依赖传递:依赖具有传递性,在不同模块重复依赖会有覆盖现象。 4.可选依赖:在依赖下使用option标签,标签的内容为true或者false。如果为true则向需要该模块的模块进行隐藏。此时该模块...
springmvc+maven所需要的依赖架包代码,下载后全部复制到pom.xml文件中
很多人都在用spring开发java项目,但是配置maven依赖的时候并不能明确要配置哪些spring的jar,经常是胡乱添加一堆,编译或运行报错就继续配置jar依赖,导致spring依赖混乱,甚至下一次创建相同类型的工程时也不知道...
• 2、引入项目依赖的jar包 • spring • springmvc • mybatis • 数据库连接池,驱动包 • 其他(jstl,servlet-api,junit) • 3、引入bootstrap前端框架 • 4、编写ssm整合的关键配置文件 • web.xml,spring,...
使用AngularJS作为前台框架开发,实现页面模块化,AngularJS取代Ajax
第一个spring IOC例子(非maven) 方法步骤: 1、下载spring包,提取core,bean,context,expression 四大基础jar http://repo.spring.io/release/org/springframework/spring/ 2、下载common-logging jar ...
imagej-maven-plugin.zip,帮助安装ImageJ 1.x插件和依赖项的插件。在imagej 1.x中,包含下划线的.jar文件会自动扫描其名称包含下划线的类。每个这样的类都被认为是一个插件。然而,对于jai_codec.jar的类来说,这...
# maven项目引入依赖 <groupId>com.mafgwo.common.distributed-lock</groupId> <artifactId>common-distributed-lock-starter <version>1.0.0 # gradle项目引入依赖 compile('...
赠送Maven依赖信息文件:sentinel-spring-cloud-gateway-adapter-1.8.0.pom; 包含翻译后的API文档:sentinel-spring-cloud-gateway-adapter-1.8.0-javadoc-API文档-中文(简体)版.zip; Maven坐标:...
SpringBoot Demo项目(非maven),不引入SpringBoot父类依赖
电脑暂时没有装maven,最近突发奇想,向在搭建一个spring boot非maven项目,折腾了两个小时,下载jar包冲突问题居多,最后结合网上博客,整理了一份spring boot所需的jar包,亲测没有问题
1.1.Maven新建父项目,在pom.xml加入mysql的依赖 1.2.新建公共模块(实体类)使用工具生成 1.3.建立中央注册服务器EurekaServer 1.4.建立Dao服务器模块EurekaClient,引入MyBatis的依赖,生成Dao接口和XxxDao.xml,...