1.在dao上@Mapper與 run()主程序@MapperScan註解是等同的,dao 和mappexml的文件位置也需要配置好
spring.datasource.url = jdbc:mysql://localhost:3306/menhu?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
spring.datasource.username = root
spring.datasource.password = 123456
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
spring.datasource.max-active=20
spring.datasource.max-idle=8
spring.datasource.min-idle=8
spring.datasource.initial-size=10
logging.level.org.springframework.web=DEBUG
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
mybatis.mapper-locations=mybatis/mapper/*xml
mybatis.type-aliases-package=com.lixwucs.muhu.bean