Sprigmvc项目转为springboot的方法-创新互联

是否有老掉牙的springmvc项目,想转成springboot项目,看这个文章就对了。

我们拥有10余年网页设计和网站建设经验,从网站策划到网站制作,我们的网页设计师为您提供的解决方案。为企业提供成都做网站、网站建设、微信开发、成都微信小程序手机网站制作设计成都h5网站建设、等业务。无论您有什么样的网站设计或者设计方案要求,我们都将富于创造性的提供专业设计服务并满足您的需求。

说明

如果你的项目连maven项目都不是,请自行转为maven项目,在按照本教程进行。


本教程适用于spring+springmvc+mybatis+shiro的maven项目。


1.修改pom文件依赖

删除之前的spring依赖,添加springboot依赖


    org.springframework.boot
    spring-boot-starter-parent
    1.5.9.RELEASE


    
      org.springframework.boot
      spring-boot-starter
    

    
      org.springframework.boot
      spring-boot-starter-test
      test
    
    
      org.springframework.boot
      spring-boot-starter-web

      
      
        
          org.springframework.boot
          spring-boot-starter-tomcat
        
      

    
    
    
      org.springframework.boot
      spring-boot-starter-tomcat
      
    
    
      org.mybatis.spring.boot
      mybatis-spring-boot-starter
      1.3.0
    
    
      org.springframework.boot
      spring-boot-devtools
      true
    
    
    
      org.springframework.boot
      spring-boot-configuration-processor
      true
    
 
  org.apache.tomcat.embed
  tomcat-embed-jasper
 



网页标题:Sprigmvc项目转为springboot的方法-创新互联
标题链接:http://myzitong.com/article/dpdcgp.html