springboot04-整合Mybatis(注解版)-简单整合案例(没有bootstrap)


1.pom文件

SpringBoot项目自动引入的

    
        org.springframework.boot
        spring-boot-starter-parent
        2.4.5
         
    

    
        
        
            org.springframework.boot
            spring-boot-starter-thymeleaf
        

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


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

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

mybatis + thymeleaf + lombok + pageHelper

	   
       
            mysql
            mysql-connector-java
            runtime
        
        
         
        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            2.0.1
        
        
        
            org.projectlombok
            lombok
            1.18.20
        

		
        
            org.springframework.boot
            spring-boot-starter-thymeleaf
        
 
        
        
            com.github.pagehelper
            pagehelper-spring-boot-starter
            1.2.3
        


码云地址

https://gitee.com/kou-chunlei/springboot