阅读背景:

Mybatis-plus 多表联合查询(注解方式)最简单的方式springboot + mybatis-plus_tod你好的博客_mybatisplus多表关联查询

来源:互联网 

第一步:加入mybatis-plus依赖

第二步:配置数据源

spring:
  thymeleaf:
    cache: false
    encoding: utf-8
    prefix: classpath:/templates/
    suffix: .html
    enabled: true
  datasource:
    url: jdbc:mysql://192.168.1.152:3306/timo?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=GMT%2B8
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: root
    type: com.alibaba.druid.pool.DruidDataSource
mybatis-plus:
    configuration:
         map-underscore-to-camel-case: true
         log-impl: org.apache.ibatis.logging.stdout.StdOutImplspring:
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: