#mybatis的mapper配置
# mybatis配置文件所在路径
mybatis.config-location:classpath=mybatis-config.xml
# 所有的mapper映射文件
mybatis.mapper-locations:classpath*=com/springboot/mapper/*.xml
# mybatis配置文件所在路径
mybatis.config-location:classpath=mybatis-config.xml
# 所有的mapper映射文件
mybatis.mapper-locations:classpath*=com/springboot/mapper/*.xml
2018-12-02
关于dataSource的配置,可以直接在application.properties中进行:
######数据库配置######
spring.datasource.data=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
######数据库配置######
spring.datasource.data=
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=
2018-12-02
最新回答 / 慕设计7581001
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">
2018-11-30