springboot整合mybatis简单demo

1.效果图


boot1.JPG

2.开始整合,项目结构如图:
boot2.JPG
boot3.JPG

3.pom文件:
com.ecjtu
demo
0.0.1-SNAPSHOT
jar

demo
Demo project for Spring Boot


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



    UTF-8
    UTF-8
    1.8



    
        org.springframework.boot
        spring-boot-starter-web
    
    
    
        org.projectlombok
        lombok
    
    
        org.mybatis.spring.boot
        mybatis-spring-boot-starter
        1.3.2
    
    
    
        mysql
        mysql-connector-java
        5.1.46
    
    
    
        com.mchange
        c3p0
        0.9.5.2
    

    
        org.springframework.boot
        spring-boot-starter-test
        test
    
    
        org.springframework.boot
        spring-boot-starter-freemarker
    
    
        com.github.pagehelper
        pagehelper-spring-boot-starter
        1.2.5
    


    
        
            org.springframework.boot
            spring-boot-maven-plugin
        
    

4.配置

你可能感兴趣的:(springboot整合mybatis简单demo)