在application.properties添加数据库连接和mapper扫描
server.servlet.context-path=/perf
server.port=8081
spring.datasource.url=jdbc:mysql://10.199.10.199:3307/perf?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
spring.datasource.username=perf
spring.datasource.password=perf
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
mybatis.mapper-locations=classpath:mapper/*.xml
mybatis.type-aliases-package=com.servyou.sqltest.dto
mybatis.configuration.map-underscore-to-camel-case=true
若不添加mapper扫描,则会出现以下错误
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
若不添加驼峰相关配置,则