首页 > 其他分享 >pom.xml

pom.xml

时间:2023-02-10 12:34:24浏览次数:32  
标签:xml spring boot springframework pom starter org cloud

    <!--文件拷贝时的编码 jdk版本-->
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
    </properties>

    <!--spring-boot-->
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.2.RELEASE</version>
        <relativePath/>
    </parent>

    <!--spring-cloud-dependencies-->
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Dalston.RC1</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

  <dependencies>
     
        <!--spring-boot web-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!--spring-boot thymeleaf-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>

        <!--spring-boot jdbc 数据库-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>

        <!-- spring boot test-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

        <!--spring-boot actuator 健康监控-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

        <!--mysql 数据库-->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.11</version>
        </dependency>
        
        <!--druid 数据库-->
        <dependency>
            <groupId>com.alibaba</groupId>
	    <artifactId>druid</artifactId>
	    <version>1.2.5</version>
	</dependency>

        <!--tomcat连接池 数据库-->
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-jdbc</artifactId>
        </dependency>

        <!--mybatis 数据库-->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis</artifactId>
            <version>3.2.8</version>
        </dependency>

        <!--spring集成mybatis 数据库-->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.2.2</version>
        </dependency>

         <!--springboot集成mybatis 数据库-->
        <dependency>	        
            <groupId>org.mybatis.spring.boot</groupId>
	    <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>1.1.1</version>
        </dependency>

        <!--fastjson JSON库-->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.1.43</version>
        </dependency>

        <!--jedis-->
        <dependency>
            <groupId>redis.clients</groupId>
    	    <artifactId>jedis</artifactId>
	</dependency>

        <!--spring-cloud eureka server -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-eureka-server</artifactId>
        </dependency>

        <!--spring-cloud ribbon-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-ribbon</artifactId>
        </dependency>

        <!--spring-cloud feign-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-feign</artifactId>
        </dependency>

        <!--spring-cloud hystrix-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
	    <artifactId>spring-cloud-starter-hystrix</artifactId>
	</dependency>

        <!--spring-cloud hystrix dashboard-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
	    <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
	</dependency>

        <!--spring-cloud zuul 网关路由-->
	<dependency>
	    <groupId>org.springframework.cloud</groupId>
	    <artifactId>spring-cloud-starter-zuul</artifactId>
	</dependency>

        <!--spring-cloud config配置文件-->
	<dependency>
	    <groupId>org.springframework.cloud</groupId>
	    <artifactId>spring-cloud-config-server</artifactId>
        </dependency>

	<!--spring-cloud turbine 断路器集群监控-->
        <!--turbine起到监控数据聚合的作用可以把多台服务器监控数据聚合起来,一起提供给hystrix仪表盘展现-->
	<dependency>
            <groupId>org.springframework.cloud</groupId>
	    <artifactId>spring-cloud-starter-turbine</artifactId>
	</dependency>

	<!--spring-cloud turbine 断路器集群监控-->
	<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-netflix-turbine</artifactId>
	</dependency>
        
        <!--springcloud 调用链路追踪-->
        <dependency>
	    <groupId>org.springframework.cloud</groupId>
	    <artifactId>spring-cloud-starter-zipkin</artifactId>
	</dependency>

        <!--amqp 消息中间件-->
        <dependency> 
            <groupId>org.springframework.boot</groupId>  
	    <artifactId>spring-boot-starter-amqp</artifactId>  
        </dependency>

    </dependencies>

<!--添加了spring-boot-maven-plugin插件后,当运行maven打包的命令,项目会被打包成一个可以直接运行的jar包,使用"java -jar"可以直接运行。
当项目中有两个启动类时,需要制定要执行的类,如果不指定,启动会报错。-->
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

<!--spring-milestones发布里程碑版本,里程碑版本不会在maven仓库中进行发布-->
    <repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>


标签:xml,spring,boot,springframework,pom,starter,org,cloud
From: https://www.cnblogs.com/haveanicedayfh/p/17108487.html

相关文章

  • 使用配置类替代xml配置文件
    创建配置类packagecom.xxx.spring.config;importorg.springframework.context.annotation.ComponentScan;importorg.springframework.context.annotation.Configur......
  • 基于xml的引入外部属性文件
    例:配置druid数据源新建属性文件jdbc.propertiesdruid.driverClassName=com.mysql.jdbc.Driverdruid.url=jdbc:mysql://localhost:3306/testdruid.username=rootdruid......
  • web.xml文件简述
    tomcat的conf中:是全局配置,配置公共信息。Web项目中:是局部配置,只针对本项目有效。加载顺序:ServletContext->context-param->listener->filter->se......
  • pom.xml 阿里mvn云仓库
    <repositories><repository><id>aliyun</id><url>https://maven.aliyun.com/repository/public</url><releases><enabled>t......
  • QT Dom修改xml
    QFilefile("Init.xml");if(!file.open(QFile::ReadOnly))return;QDomDocumentdoc;if(!doc.setContent(&file)){file.close();re......
  • idea删除.iml文件导致pom文件变为灰色删除线的恢复
    1.打开idea的设置settings->Build,Execution,Deployment->BuildTools->Maven->ignoredFiles 2.找到忽略的文件,取消忽略 3.点击maven的刷新按钮,重新导入即可,impl......
  • Java web.xml之contextConfigLocation作用案例详解
    在WEB.xml中通过contextConfigLocation配置spring,contextConfigLocation参数定义了要装入的Spring配置文件。部署applicationContext.xml文件        如果不......
  • 高效XML绑定框架JIBX
    高效XML绑定框架JIBXdemo源码地址https://gitee.com/clover-clover/clover.git具体路径:clover/clover-frame/clover-frame-netty/src/main/java/com/clover/frame/nett......
  • Spring29 - 基于XML的事务管理
    基于XML的声明式事务场景模拟参考基于注解的声明式事务与注解管理事务相同的通用步骤(1)开启组件扫描<!--扫描组件--><context:component-scanbase-package="com.......
  • xml和xsd
    1·XMLschema元素|菜鸟教程(runoob.com)https://www.runoob.com/schema/el-schema.html2·XSD杂项数据类型(MiscellaneousDataTypes)(w3school.com.cn)https://w......