Spring boot pom依赖

1.pom依赖

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

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

    
        
            org.springframework.boot
            spring-boot-devtools
        

2.spring boot连接mybatis

(1)pom.xml
        
        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            1.1.1
        

        
        
            mysql
            mysql-connector-java
        
(2)application.properties
#数据库连接信息
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/ssm?useUnicode=true&characterEncoding=utf8
spring.datasource.username=root
spring.datasource.password=123456

#配置mybatis的信息
mybatis.type-aliases-package=com.movle.domain

#加载mybatis映射文件
mybatis.mapper-locations=classpath:mapper/*Mapper.xml

3.springboot 集成junit测试

(1).pom.xml


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

4.spring boot 集成jpa

(1).pom.xml


        
            org.springframework.boot
            spring-boot-starter-data-jpa
        


        
            mysql
            mysql-connector-java
        

5.spring boot 集成redis

(1)pom.xml

        
            org.springframework.boot
            spring-boot-starter-data-redis
        
(2)application.properties
#redis配置
spring.redis.host=127.0.0.1
spring.redis.port=6379

你可能感兴趣的:(Spring boot pom依赖)