简述springboot及springbootcloud环境搭建-创新互联

springboot使用特定的方式,简化了spring的各种xml配置文件,并通过maven或者gradle,完成所需依赖,使用springboot maven插件,可直接输出可运行的jar包,省去了tomcat等容器的部署,使得基于http的网络应用开发更加方便快捷。

成都创新互联专注于企业营销型网站建设、网站重做改版、刚察网站定制设计、自适应品牌网站建设、H5技术电子商务商城网站建设、集团公司官网建设、成都外贸网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为刚察等各大城市提供网站开发制作服务。

spring中配置文件官方文档http://docs.spring.io/spring-boot/docs/1.5.1.RELEASE/reference/htmlsingle/

springboot基础应用搭建

首先建立maven工程。

pom.xml文件配置如下(每一个maven工程中的,除了自身GAV外,都使用此配置)

<?xml version="1.0" encoding="UTF-8"?>

 4.0.0
 com.mahuan
 producer
 0.0.1-SNAPSHOT
 jar
 producer
 Demo project for Spring Boot
 
 
  org.springframework.boot
  spring-boot-starter-parent
  1.5.1.RELEASE
  
 
 
  UTF-8
  UTF-8
  1.8
 
 
  
   org.springframework.boot
   spring-boot-starter-web
  
  
   org.springframework.boot
   spring-boot-starter-test
   test
  
  
   org.springframework.cloud
   spring-cloud-starter-config
  
  
   org.springframework.cloud
   spring-cloud-starter-eureka
  
  
   org.springframework.cloud
   spring-cloud-starter-eureka-server
  
  
   org.springframework.cloud
   spring-cloud-starter-feign
  
    
   org.springframework.boot
   spring-boot-devtools
   true
  
 
 
  
   
    org.springframework.boot
    spring-boot-maven-plugin
    
     true
    
   
  
 
 
  
   
    org.springframework.cloud
    spring-cloud-dependencies
    Camden.SR6
    pom
    import
   
  
 
  

网站标题:简述springboot及springbootcloud环境搭建-创新互联
网站链接:http://scyanting.com/article/ccdsoj.html