是否有老掉牙的springmvc項(xiàng)目,想轉(zhuǎn)成springboot項(xiàng)目,看這個(gè)文章就對(duì)了。
說明
如果你的項(xiàng)目連maven項(xiàng)目都不是,請(qǐng)自行轉(zhuǎn)為maven項(xiàng)目,在按照本教程進(jìn)行。
本教程適用于spring+springmvc+mybatis+shiro的maven項(xiàng)目。
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