Eigenschaften 属性
<Properties> <!-使用 utf-8 编码-> <project.build.sourceEncoding> utf-8 </project.build.SourceEncoding> <!-web-spring.version> 4.3.14.release </spring.version> <!-数据库相关-> <mysql.version> 6.0.6 </mysqL.
Abhängigkeitsmanagement
<DepepecyManagement> <Deangcies> <Depopenty> <gruppe> org.springFramework </Groupid> <artifactId> Spring-Framework-Bom </artifactId> <version> $ {Spring.version} </Version> <typsAbhängigkeiten
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <!--web--> <dependency> <gruppeId> javax.servlet </GroupId> <artifactId> servlet-api </artifactId> <version> 2.5 </Version> <Scope> bereitgestellt </scope> </abhängig> <De vorangehen <Scope> bereitgestellt </scope> </abhängig> <depeaponcy> <gruppe> javax.servlet.jsp.jstl </GroupId> <artifactid> javax.servlet.jsp.jstl-api </artifactId> <version> 1.2.1 </Version> </abhängig> </gruppe </gruppe> </gruppen> </gruppe> javax.ws.rs> </abhängig> </gruppe </gruppen> </gruppe> </gruppen> </gruppe> javax.ws.rS <artifactid> javax.ws.rs-api </artifactId> <version> 2.0 </Version> </abhängig> <depeopecy> <gruppe> javax.websocket </gruppyId> <artifactid> javax.websocket-api </artifactid> <version> 1.0 </Version> </Version> </Version> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fusion> </fung <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>javax.transaction</groupId> <artifactId>javax.transaction-api</artifactId> <version>1.2</version> </dependency> <!--Spring--> <De vorangestellt> <gruppe> org.springFramework </Groupid> <artifactId> Spring-Context </artifactId> </abhängig> <depeopcy> <gruppe> org.springFramework </Groupid> <artifactID> Spring-ormC </artifactid> </abhängig> </gruppe <gruppe <gruppe <gruppe <gruppe> <gruppe </gruppe <gruppe </gruppe </gruppe> <gruppe </gruppe </gruppe <gruppe </gruppe </gruppe </gruppe <gruppe </gruppe </gruppe <gruppe </gruppe </gruppe org. <artifactId> Spring-oxm </artifactId> </abhängig> <abhängigkeit> <gruppe> org.springFramework </Groupid> <artifactId> Spring-Jdbc </artifactId> </abhängig> <Depopact> <Groupid> org.springFramework </GroupID> <artifactid> </artifactid> </artifactid> </artifactid> </artifactid> </artifactid> </artifactid> </artifactid> <gruppeID> org.springFramework </GroupId> <artifactId> Spring-Web </artifactId> </abhängig> <depeopcy> <Groupid> org.springFramework </Groupid> <artifactID> Spring-webmvc </artifactId> </abhängig> <abhängigkeit> <abhängigkeit> <gruppe <gruppe org. <artifactId>spring-aop</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> </dependency> <!--spring-oxm依赖--> <dependency> <groupId>org.codehaus.castor</groupId> <artifactId>castor-xml</artifactId> <version> 1.4.1 </Version> </abhängig> <!-Spring-json 依赖-> <depepecy> <gruppe> com.fasterxml.jackson.core </Groupid> <artifactid> Jackson-Databind </artifactid> <version> 2.9.4 </Version> </abhängig> <! <!-<gruppe> com.fasterxml.jackson.dataFormat </GroupID>-> <!-<artifactId> Jackson-DATAFFORMAT-XML </artifactid>-<!-<version> 2.9.4 </Version>-> <! <artifactId> AspektjWeaver </artifactId> <version> 1.8.13 </Version> </abhängig> <!-上传文件-> <abhängigkeit> <gruppe> commons-fileUpload </gruppeId> <artifactid> commons-fileUpload </artifactID> <version> 1.3.3 </Version> </vl. <gruppe> MySQL </GroupID> <artifactId> mysql-connector-java </artifactId> <version> $ {MySQL.VERSION} </Version> </abhängig> <!-Druid-Druid-> <!-https://mvnrepository> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.9</version> </dependency> <!--Mybatis--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.6</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>1.3.2</version> </dependency> <!-- Mybatis Generator --> <dependency> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-core</artifactId> <version> 1.3.6 </version> <scope> kompilieren </scope> <optional> true </optional> </abhängig> <!-工具集-> <!-操作 json-> <!-https://mvnrepository.com/artifact/com.alibaba/fastjson-> <Deponcy> </gruppe> </gruppe> </gruppe> </gruppe> </gruppe> </gruppe> </gruppe> </gruppe <artifactId> fastjson </artifactId> <version> 1.2.47 </Version> </abhängig> </abhängigkeiten>web.xml
<? http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd "Version =" 3.0 "> <di.-Name> Erstellte Webanwendung </display-name
补充 :
下面看下 Federstiefel Starter Pom 的依赖关系说明
Federschuh 通过 Starter 依赖为项目的依赖管理提供帮助 .starter 依赖起始就是特殊的 Maven 依赖, 利用了传递依赖解析, 把常用库聚合在一起, 组成了几个为特定功能而定制的依赖.
Spring Boot Starter 旨在为具有依赖关系的一组 Jar 包提供统一的条目框架
它们通常应该从项目描述符( pom.xml )继承 , 以便获得配置版本的所有父依赖关系。 在开发者一方没有更多的负担 :
Starter Pom 是一组方便的依赖关系描述符 , 可以包含在应用程序中。 Feder 和相关技术 , 你需要 , 而不必通过示例代码和复制粘贴负载的依赖关系描述符。 例如 , 如果您想要开始使用 feder 和 jpa 进行数据库访问 , 只需在项目中包含 Spring-Boot-Starter-Data-jpa 依赖项 , 您就可以开始使用了。 您就可以开始使用了。 只需在项目中包含 只需在项目中包含 只需在项目中包含 只需在项目中包含 只需在项目中包含 只需在项目中包含 只需在项目中包含 只需在项目中包含
这些 pom 可以用于合成被用于某种项目的依赖 , 例如 , 对于一个简单的 Spring mvc 项目 , 将包括以下工件(分别从 Spring-Boot-Starter , Spring-Boot-Starter-Web , Spring-Boot-Starter-Security 读取) :
Starter 本身在你的应用程序中实际上是空的。 有些包括 meta-inf / feder.provides 文件 , ide 可以使用它来提供 pom 更新的上下文帮助。 在 pom 包装上选择 包装上选择 空 空 空 空 jar 的主要原因是它们更容易使用(你不需要记住添加 pom < / type> )。
总结
以上所述是小编给大家介绍的 Feder 项目常用 pom 文件的依赖 , 希望对大家有所帮助 , 如果大家有任何疑问请给我留言 , 小编会及时回复大家的。在此也非常感谢大家对武林网网站的支持! 小编会及时回复大家的。在此也非常感谢大家对武林网网站的支持! 小编会及时回复大家的。在此也非常感谢大家对武林网网站的支持!