SpringBoot--SSM框架整合

方式一

1 建立一个Spring Starter

2、在available中找到要用的包,配置mybatis

 3、建立file,application.yml 文件

 

spring:
  datasource:
    username: root
    password: 1dkj
    url: jdbc:mysql://110.211.45.10:3306/scw?useSSL=false&useUnicode=true&characterEncoding=UTF-8
    #driver-class-name: com.mysql.jdbc.Driver
    driver-class-name: com.mysql.cj.jdbc.Driver
mybatis:
  config-location: classpath:/mybatis/mybatis-config.xml
  mapper-locations: classpath:/mybatis/mapper/*.xml

 

posted @ 2019-08-05 22:22  keepsummer  阅读(179)  评论(0编辑  收藏  举报