SpringBoot框架搭建教程分享-创新互联

SpringBoot几乎集成了SpringMVC的所有内容,以及tomcat容器,同时去除了繁复的xml配置文件,开发起来十分方便;页面配合thymeleaf模板渲染也是非常简单,如果是前后端分离的项目,那么SpringBoot就专门负责提供restful风格的api接口,通过json格式与前端进行数据交互。

成都创新互联公司是专业的扶绥网站建设公司,扶绥接单;提供网站设计制作、网站制作,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行扶绥网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

下面pom.xml里面一些依赖

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

 4.0.0

 com.test
 demo
 0.0.1-SNAPSHOT
 
  common
  web
 
 pom

 demo
 a 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
   
    
     org.springframework.boot
     spring-boot-starter-logging
    
   
  
  
   org.springframework.boot
   spring-boot-starter-test
   test
  
  
   org.springframework.boot
   spring-boot-starter-web
  
  
   org.springframework.boot
   spring-boot-devtools
   true
  
  
   org.springframework.boot
   spring-boot-starter-thymeleaf
  

  
   org.apache.tomcat
   tomcat-jdbc
   7.0.47
  

  
   org.springframework
   spring-tx
   4.3.6.RELEASE
  
  
   org.springframework
   spring-jdbc
   4.3.6.RELEASE
  

  
   mysql
   mysql-connector-java
  

  
   org.mybatis.spring.boot
   mybatis-spring-boot-starter
   1.1.1
  

  
   com.alibaba
   druid
   1.0.19
  

  
   net.sf.json-lib
   json-lib
   2.4
   jdk15
   
    
     commons-logging
     commons-logging
    
   
  

  
   commons-httpclient
   commons-httpclient
   3.0.1
  

  
  
   org.apache.logging.log4j
   log4j-slf4j-impl
   2.4.1
  
  
   org.apache.logging.log4j
   log4j-api
   2.4.1
  
  
   org.apache.logging.log4j
   log4j-core
   2.4.1
  
  
   org.slf4j
   jcl-over-slf4j
   1.7.12
  

 

 
  demo
  
   
    src/main/resources
    
     application-dev.properties
     application-prod.properties
     application.properties
    
    true
   
   
    true
    src/main/resources
    
     application-${environment}.properties
     application.properties
    
   
  
 

 
  
   dev
   
    dev
   
   
    true
   
  
  
   prod
   
    prod
   
  

 



文章名称:SpringBoot框架搭建教程分享-创新互联
路径分享:http://pwwzsj.com/article/cdpjcg.html